Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Rules for Call Statements?
From: Dave Hollinden
Date: Wed, 22 Dec 1999 16:59:08 GMT

It may be that your Call statements aren't being executed due to improper
syntax. I normally use:

Call ("/Library:LoadProjects")

rather than:

Call ("/Library/:LoadProjects")


Dave Hollinden
Web Design Team Lead
dhollindenatsonicfoundry [dot] com

-----Original Message-----
From: DeJarnett, Gary [a3gddattechmail [dot] admin [dot] ttu [dot] edu (mailto:a3gddattechmail [dot] admin [dot] ttu [dot] edu)]
Sent: Tuesday, December 21, 1999 3:01 PM
To: 'flasheratchinwag [dot] com'
Subject: FLASH: Rules for Call Statements?


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 (dejarnettatttu [dot] edu <dejarnettatttu [dot] edu (mailto:dejarnettatttu [dot] edu)> )


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 helpatchinwag [dot] com


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 helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]