Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-10-2005, 12:48 PM   #1
overbyte
more bytes than sense
 
overbyte's Avatar
 
Join Date: Nov 2005
Posts: 66
Default flash mx execution order problem

i'm having some really wierd execution order happening at the moment.

Do loadVars.load and xml.load functions execute after everything else? and is there a way that i can pause the script so that the load function can fully execute before the script continues?

i tried setting a boolean on _root called scriptPaused and then an if statement at the start of all functions to see if scriptPaused was true and if not then run the function but that didn't do anything

here is a trace list from it running now

Code:
---------> order 3.0 :: show array list
---------> order 1.0 :: loadMenu
---------> order 2.0 :: setCurrentPage
setCurrentPage.setSection is news
---------> order 1.1 :: loadMenu.XMLVars.onLoad
---------> order 1.2 :: parseNews

loading news.xml
i is 0 // --> from loadMenu()

---------> order 1.3 :: parseText
loading about.txt
i is 1 // --> from loadMenu()

---------> order 1.3 :: parseText
loading how.txt
i is 2 // --> from loadMenu()

>>parsing not yet written <-- will parse something not yet wriiten

---------> order 1.3 :: parseText
loading contact.txt
i is 4 // --> from loadMenu()

---------> order 1.3 :: parseText
loading vacancies.txt
i is 5 // --> from loadMenu()

>>parsing not yet written <-- will parse something not yet wriiten

news content success <-- in the onLoad function of parseNews
text content success <-- in the onLoad function of parseText
text content success <-- in the onLoad function of parseText
text content success <-- in the onLoad function of parseText
text content success <-- in the onLoad function of parseText
i've been told to insert a callback from within the for loop and a pause until the other method finishes before continuing the for-loop but i obviously haven't done that properly

could you tell me what i've done wrong please?
overbyte 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


All times are GMT. The time now is 03:15 PM.

///
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.