help on FLV AUTO LOOP ( play the movie for ever on and on )

  • jalexduran1
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Oct 29, 2008
  • Posts: 12
  • Status: Offline

Post October 31st, 2008, 6:48 am

Hi:

I'm playing a "flv" movie on this site that I made
http://robertomorales.com

the background video movie that I like to play over and over http://robertomorales.com/videos/bgnd.flv

this flv is running on a "swf" file called "video0.swf"

now; the code that I used on ADOBE flash CS3 script(2) on a frame is:
----------------------------------------------
stop();

import mx.video.*;
var listenerObject1:Object = new Object();
listenerObject1.cuePoint = function(eventObject:Object):Void {
var cuePtName = eventObject.info.name;
if (cuePtName == "endLoop") {
my_FLVPlybk.seekToNavCuePoint(0);


}
};
my_FLVPlybk.addEventListener("cuePoint", listenerObject1);
--------------------------------------------
I encoded the movie with cuepoint:
at the start:
name: cuePoint 00:00:00:0000 event
at the end:
name: endLoop 00:01:16:900 event
----------------------------------------------
the "flv" movie is running ok, but at the end go to the begining and "stop". I like to keep "loop"

The parameteres in cs3 for the movie is:
movie size= W 950 X H =600 px

autoPlay =true
autoRewind=true
autoSize =flase
bufferTime=5
contentPath=http://robertomorales.com/videos/bgnd.flv
cuePoints=[{cuePoint,00:00:00.000,Event},{endLoop,00:01:06:900,Event}]
islive=false
maintainAspectRatio=false
skin=ClearOverAll.swf (*)
skinAutoHide=true
totalTime=0
version_1_0_2= ?
volume=0
=============================================
I try but still not loop the movie, at the end Auto Return and Stop..I missing something ? ..can some expert help me in that .....if so letme know, if is any charge let me know too.

emailme at: support@compumiami.net

thanks for your time.
Alex
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 31st, 2008, 6:48 am

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 31st, 2008, 8:53 am

Hey Alex First of all when you click on the video component on your stage does it say "my_FLVPlybk" in the Instance Name field?

Second you need to add a "play" command after you go to the cue point

Code: [ Select ]
stop();

import mx.video.*;
var listenerObject1:Object = new Object();
listenerObject1.cuePoint = function(eventObject:Object):Void {
    var cuePtName = eventObject.info.name;
    if (cuePtName == "endLoop") {
     my_FLVPlybk.seekToNavCuePoint(0);
     my_FLVPlybk.play();
    }
};
my_FLVPlybk.addEventListener("cuePoint", listenerObject1);
  1. stop();
  2. import mx.video.*;
  3. var listenerObject1:Object = new Object();
  4. listenerObject1.cuePoint = function(eventObject:Object):Void {
  5.     var cuePtName = eventObject.info.name;
  6.     if (cuePtName == "endLoop") {
  7.      my_FLVPlybk.seekToNavCuePoint(0);
  8.      my_FLVPlybk.play();
  9.     }
  10. };
  11. my_FLVPlybk.addEventListener("cuePoint", listenerObject1);


You other option is to use the built in callback for "complete" You can see it's usage on Adobe's LiveDocs.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • jalexduran1
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Oct 29, 2008
  • Posts: 12
  • Status: Offline

Post October 31st, 2008, 9:51 am

Thanks.....I try it and work perfect. the movie loops for ever never stop
thanks again

Alex
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 31st, 2008, 9:52 am

you welcome.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • jalexduran1
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Oct 29, 2008
  • Posts: 12
  • Status: Offline

Post October 31st, 2008, 10:18 am

Hi again:

I think I have another error, play ok only one's, now when star to play again, is intermitent in the start point (star and stop on point 0) why ?

thanks
Alex
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 31st, 2008, 10:25 am

Sometimes cue points can do funny things or the flv can miss them somehow.

I think I would use the "complete" callback instead of the cue points. So when it completes seek to 0 and then play.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • jalexduran1
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Oct 29, 2008
  • Posts: 12
  • Status: Offline

Post October 31st, 2008, 10:53 am

Hi:

I find the problems

I can not have another movie running in the same time...thats all
now is ok

thanks

Alex
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 31st, 2008, 11:14 am

Could you be a little more specific? Can't play 2 movies at the same time as in they don't run well on your computer or that the code seems to be fighting?
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • jalexduran1
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Oct 29, 2008
  • Posts: 12
  • Status: Offline

Post October 31st, 2008, 11:57 am

I means:

the first movie load on a positions on this stage load flash video1.swf on con1
Time duration = 3 min
the other video load as a background called bgnd.swf duration time = 1.5 min


in that case the code affect and try to jump in position "0"(play/stop)on and off at start up cuepoint....

now, if I unload video1.swf and try to play (infinite loop) perfect you can see now
in the sample: http://robertomorales.com

thanks
Alex
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 31st, 2008, 12:32 pm

make sure both flv's have a different Instance Name in the box and make sure that your code refers to only one of the instance names.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • derelict88
  • Born
  • Born
  • No Avatar
  • Joined: Jul 29, 2010
  • Posts: 1
  • Status: Offline

Post July 29th, 2010, 8:13 pm

Select the video (flv) in on the stage than add the script as per below

on (complete) {
this.autoRewind =true;
this.play();
}


done. have a jollygoodday.

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 82 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.