Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-19-2007, 05:58 AM   #1
Crimson
Fun LeArNinG WiTh Flash
 
Join Date: Apr 2006
Posts: 70
Default how i know if external swf file finish or not ?

hello,




i want to load external swf file the first swf file ( Movie1.swf ) and when this movie finish load other swf file ( Movie2.swf ) ....etc. is it possible to know if Movie1.swf finish with actionscript or not ?


Regards,
Crimson
Crimson is offline   Reply With Quote
Old 10-19-2007, 06:24 AM   #2
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

best way it to dispatch and event from the loaded swf saying it's done. But it depends on your set up.

easiest (not best) way to to make a global variable in movie1.swf called isDone and set it to true when movie1.swf is finished. Have an onEnterFrame running in the master swf checkign for _global.isDone to be true and then load the next movie.
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 10-19-2007, 06:45 AM   #3
Crimson
Fun LeArNinG WiTh Flash
 
Join Date: Apr 2006
Posts: 70
Default

thanks Flash Gordon


and what's the best way ?
Crimson is offline   Reply With Quote
Old 10-19-2007, 06:52 AM   #4
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

Quote:
Originally Posted by Flash Gordon View Post
best way it to dispatch and event from the loaded swf saying it's done.
but you have to decode my poor grammar.
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 10-19-2007, 07:01 AM   #5
Crimson
Fun LeArNinG WiTh Flash
 
Join Date: Apr 2006
Posts: 70
Default



Quote:
Originally Posted by Flash Gordon View Post
best way it to dispatch and event from the loaded swf saying it's done. But it depends on your set up.
is it possible to show me a sample example


i appreciate your help
Crimson is offline   Reply With Quote
Old 10-21-2007, 02:05 AM   #6
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

I don't know how to for AS 2.0 without reading the docs. Read up here:
http://www.actionscript.org/resource...her/Page1.html
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 10-21-2007, 01:17 PM   #7
Crimson
Fun LeArNinG WiTh Flash
 
Join Date: Apr 2006
Posts: 70
Default

thanks
Crimson is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to control the child of an external swf? Plisskin76 ActionScript 2.0 16 06-29-2007 04:24 PM
problem with load external swf al3loo Flash 8 General Questions 6 06-12-2007 09:39 PM
Content in scrollPane loading *beneath* external SWFs loaded with loadMovie roodycantfail Components 1 04-04-2007 02:48 AM
What are the actionscript to send the variables to a SWF file? cshong ActionScript 2.0 0 03-08-2007 06:31 AM
popup with javascript & external txt file worf Server-Side Scripting 3 04-16-2002 09:19 AM


All times are GMT. The time now is 11:19 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.