Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | FLASH: Rules for Call Statements? |
| From: | DeJarnett, Gary |
| Date: | Tue, 21 Dec 1999 21:13:06 GMT |
Within a movie clip instance called MasterItem1, I have the following
actions:
On (Release)
Stop Drag
Set Variable: "/:Dropname" = GetProperty ("", _droptarget)
If (/:Dropname eq "/SSNEntry")
Set Variable: "/Library:txtSSN" = Eval("/Library:" &
GetProperty("",_name) & "SSN")
Trace ("About to load projects")
Call ("/Library/:LoadProjects")
Trace ("Projects Loaded")
Set Variable: "/SSNEntry:txtWeek" = /Library:txtWeek
End If
Call ("/Library/:HideMenu")
Set Variable: "/" & /:CurrentMenu & "/:MenuOn" = False
End On
My understanding of the call statement is that all code within the called
routine will be executed before control is returned to the calling instance.
In my LoadProjects routine, I loop back through a couple of frames until all
my variables are loaded, but by watching the trace statements, I can see
that the statements after the call is issued are executed before I ever
break out of the called routine. I even placed the following in the
LoadProjects routine:
Begin Tell Target ("/MasterItem1")
Stop
End Tell Target
to tell this instance to stop executing and then I issue a Play whenever the
variables are loaded, but it didn�t make any difference. It looks like I
just need to read up some more on actionscript control statements (I�ve
ordered John�s book), but am coming up short on helpful material.
Thanks,
Gary (dejarnett
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
Re: FLASH: Rules for Call Statements?, John Croteau
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

