Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 85594

Seek() Flv in next scene

$
0
0

Hello,

 

I have two different scenes that I am navigating between in my project. From a button in 'scene 1', I would like to seek to a certain time in an external FLV in 'scene 2'. Here is what I have, which doesn't work. I am pretty sure the 'seek' information is not being carried between the two scenes when the button is pushed....and the video (tourvideo2) in "scene 2" autoplays from the beginning. You should be able to see what I am TRYING to do here.

 

Any help would be appreciated!

 

button_46.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_43);

 

function fl_ClickToGoToAndPlayFromFrame_43(event:MouseEvent):void

{

var curr:Number= tourvid.playheadTime;

  tourvid.pause();

  MovieClip(this.root).gotoAndPlay(1, "Scene 2");

  Object(root).tourvid2.seek(curr);

  Object(root).tourvid2.play();

};

 

PS: As you see, I am trying to read the playheadTime from a video (tourvid) in "scene 1", and go to the same time in (tourvid2) contained in "scene 2".

 

Thank you.

Robert


Viewing all articles
Browse latest Browse all 85594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>