[flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread carloveparade
--- In flexcoders@yahoogroups.com, Sean Clark Hess [EMAIL PROTECTED] wrote: yes, both as3 Is the loaded swf written the same version of actionscript as the loader? On Thu, Jul 3, 2008 at 8:21 AM, carloveparade [EMAIL PROTECTED] wrote: I had been working with the SWFLoader to embed

[flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread carloveparade
--- In flexcoders@yahoogroups.com, Sean Clark Hess [EMAIL PROTECTED] wrote: Is the loaded swf written the same version of actionscript as the loader? On Thu, Jul 3, 2008 at 8:21 AM, carloveparade [EMAIL PROTECTED] wrote: I had been working with the SWFLoader to embed external swf

Re: [flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread Sean Clark Hess
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

[flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread carloveparade
--- In flexcoders@yahoogroups.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

Re: [flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread Sean Clark Hess
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

Re: [flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread Sean Clark Hess
Oh, i know what to do. On the last frame of your animation, put the following in. dispatchEvent(new Event('lastFrame')); Then, you can listen for that event to know when to start the next one, using the idea I wrote before On Thu, Jul 3, 2008 at 11:47 AM, Sean Clark Hess [EMAIL PROTECTED]

Re: [flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread Simon Bailey
From what I recall another point is that if your gonna dispatch an event from any frame other than the first, the Event type when declared i.e. var lastF:String; needs to be declared on the first frame! I may stand to be corrected here? Cheers, Simon newtriks.com On 3 Jul 2008, at