[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 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?
 
   
 





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




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

  



[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 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, 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
 
   
 





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 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.comflexcoders%
 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
  
  
  
 

  



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] wrote:

 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.comflexcoders%
 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
  
  
  
 

  





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 18:48, Sean Clark Hess wrote:

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] wrote:

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