Reset Flash After Video
hello:
i have animation in scene1 , have button launches user video in scene 2. in scene2 have following actionscript play video:
var nc:netconnection = new netconnection();
nc.connect (null);
var ns:netstream = new netstream(nc);
thevideo.attachvideo (ns);
ns.play("homepage.f4v");
the video plays fine, how flash reset scene1, frame 1 when it's finished?
any thoughts?
thanks!
-q
use loop repeatedly check ns.time. when ns.time equal f4v's duration (you can use onmetadata function find duration), use goto method return frame 1.
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment