Flasher Archive

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


Subject: Re: FLASH: passing variables to other swfs?
From: John Croteau
Date: Tue, 23 Nov 1999 06:13:40 GMT

Hi Phillip,

> trying to set a variable from a loaded movie in level 1 to the main
> movie (level 0).
The following sets newVar1 in level zero (or any place you set the
equation) to the variable Var1 found on the main timeline of the movie
loaded in Level one:

Set Variable: "newVar1" = _level1:Var1

Note, there is often no need to set a variable to another variable since
all variables on timelines that continue to exist in Flash are available
from everywhere in Flash with the complete path.

> To identify a variable in a specific movie or movie clip, prefix the
> variable name with the path to the movie or movie clip. Use a colon to
> separate the path from the variable name. For example, this phrase
> specifies the variable Timer in the movie clip Explosion:
> /Explosion:Timer
> **so**
> does this mean you can only set variables to and from the same level?
No, the slash / refers to the main timeline in the same movie.
So, /Explosion:Timer refers to the varaible Timer associated with the
timeline of the movie clip Explosion set on the main timeline in the
same movie.

Whereas, _level5/Explosion:TimerB refers to the varaible TimerB
associated with the timeline of a movie clip Explosion set on the
timeline of the movie loaded with Load Movie in level 5.

More information on Movie Clip and variable paths are found at:
http://www.FlashBible.com/members/TellTarget/

--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
----------- -----------------------
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
  Re: FLASH: passing variables to other sw, 2Nerotik

Replies
  FLASH: passing variables to other swfs?, Phillip M. Torrone

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