Flasher Archive

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


Subject: Re: FLASH: GETTING VARIABLE VALUE FROM _LEVEL0 to _LEVEL3?
From: Cheri Harder
Date: Fri, 21 Jan 2000 03:59:04 GMT

http://www.flashzone.com/actionscript/storedata.html has some good Variables
information, including:

" Referring to Variables Across Timelines

Variables are associated with Timelines. So, if you create a variable XYZ
in one of the Keyframes on the main timeline, you
can simply refer to it by name anywhere else on the main timeline.
Similarly, if you create a variable in Movie Clip symbol,
you can refer to it by name from within that Movie Clip.

If you're familiar with the Tell Target action, you'd remember that
FlashPlayer Movies have a specific way of referring to
Movie Clip instances across Timelines and Levels. Variable addressing is a
simple extension of this existing system. Here are
a few examples:

Set Variable("XYZ","some_value")
Create or set a variable named XYZ in the same timeline as this
Keyframe or Button instance.

Set Variable("/Some_clip:XYZ","some_value")
Create or set a variable named XYZ in the timeline of /Some_clip,
which would be a Movie Clip instance placed
somewhere on the main timeline.

Set Variable("/:XYZ","some_value")
Create or set a variable named XYZ in the main timeline of this
Level.

Set Variable("_level1/Some_clip:XYZ","some_value")
Create or set a variable named XYZ in the timeline of /Some_clip, a
Movie Clip instance located on the main timeline
of the FlashPlayer Movie loaded into Level 1.

Notice that all that really changes here is the addressing prefix that
appears in front of the variable name."

This is from a tutorial on The Flash Zone.

HTH!

~~~~Cheri Harder~~~~~
charderatawsolution [dot] com
Advantage Web Solution
"Developing your internet storefront"
www.awsolution.com
----- Original Message -----
From: "David Doggett" <daveatfunmark [dot] com>


> What is the code to get the value of a variable on _level0 when I am on
> _level3?




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: Converting MP3's to SWF's instan, Edwin van Rijkom
  FLASH: GETTING VARIABLE VALUE FROM _LEVE, David Doggett

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