Flasher Archive

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


Subject: Re: FLASH: Rules for Call Statements?
From: John Croteau
Date: Wed, 22 Dec 1999 17:59:17 GMT

Hi Gary,

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

No, not quite true, see below.

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

All the commands of a Call are executed as part off the original calling frame.
Only one action to each timeline (main or MC) can be made per Flash frame
(including all associated calls.
No action is taken until all the script is tabulated and the latest Go to jump
is determined for each timeline.

Therefore you can NOT use a Call to do branching.
Any branching in a Call is a final action that is taken (if not superseded)
after the complete change of actions is analyzed.

Treat all actions in a Call as if they are in the original frame that called it.

--
Co-author of Flash 4 Web Animation F/X and Design
Autographed copies now available - http://www.crownmall.com/Flash4/
----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central (The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/




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


Replies
  FLASH: Rules for Call Statements?, DeJarnett, Gary

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