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

  • jalexduran1
  • Newbie
  • Newbie
  • jalexduran1
  • Posts: 12

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

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.
  • jalexduran1
  • Newbie
  • Newbie
  • jalexduran1
  • Posts: 12

Post 3+ Months Ago

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

Alex
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

you welcome.
  • jalexduran1
  • Newbie
  • Newbie
  • jalexduran1
  • Posts: 12

Post 3+ Months Ago

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
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

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.
  • jalexduran1
  • Newbie
  • Newbie
  • jalexduran1
  • Posts: 12

Post 3+ Months Ago

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
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

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?
  • jalexduran1
  • Newbie
  • Newbie
  • jalexduran1
  • Posts: 12

Post 3+ Months Ago

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
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

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.
  • derelict88
  • Born
  • Born
  • derelict88
  • Posts: 1

Post 3+ Months Ago

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 10 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.