I'm not sure how to detect when it finished playing. Anyone? On Thu, Jul 3, 2008 at 11:35 AM, carloveparade <[EMAIL PROTECTED]> wrote:
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Sean > Clark Hess" <[EMAIL PROTECTED]> > wrote: > >OKOKOKOK, Im using flex and i need to put a swf publicity on my > panel, im using swfloader and after publicity is on the end i need > to go to another panel or canvas using a viewstack. but i need to go > to the other canvas after the publicity ends and do ti > automatically. > im using a viewstack an i was thinking in goto another selected > index when the publicity end but how i know on my code if the > movieclip ended?.... what do you thing about not to use a viewstack > and use a panel and when the publicity end load the next swf on the > same panel? i dont know what to do , maybe some event when the swf > ends. could you help me? > > SWFLoader has a content property. As soon as it is fully loaded > and content > > is defined, try something like this. > > > > var movie:MovieClip = mySwfLoader.content as MovieClip; > > movie.addEventListener( ... uhhh > > > > Actually, I've never worked with flash movieclips in as3 (I've > only used > > flex stuff). Why doesn't movieclip have an "end" or "stop" > event??? > > > > I guess you could always use enterFrame as the event handler, and > check for > > the last frame in good old as2 style > > > > On Thu, Jul 3, 2008 at 9:18 AM, carloveparade <[EMAIL PROTECTED]> > > wrote: > > > > > --- In flexcoders@yahoogroups.com > > > <flexcoders%40yahoogroups.com><flexcoders% > 40yahoogroups.com>, "Sean > > > Clark Hess" <seanhess@> > > > wrote: > > > > > > > > > > > Is the loaded swf written the same version of actionscript as > the > > > loader? > > > > > > > > On Thu, Jul 3, 2008 at 8:21 AM, carloveparade > <carlos.robinson@> > > > > wrote: > > > > > > > > > I had been working with the SWFLoader to embed external swf > > > > > aplications on my flex application. Now I need to start a > second > > > embed > > > > > swf when the first one ( a movieclip) is on the end of the > > > movie. In > > > > > other words I need to star a new movie when the first is > endes, > > > but i > > > > > cant put a next button so i need start the second one > > > automatically. > > > > > Could you help me? > > > > > > > > > > > > > > > > > > >ys its actionscript 3 > > > > > > > > > > > > > >