Flasher Archive

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


Subject: Re: FLASH: Croteau: How 2 pass var bet MC's
From: John Croteau
Date: Mon, 3 Jan 2000 12:27:39 GMT

Hi Suraj,

> Can I pass variables between two MC's located in different frames of the
> same movie?
> This is kind of urgent so i'd really appreciate any help.

The main concern here is to make sure the second MC exists and will continue
to exist so it will retain the values stored in that MC.

For instance say you have a movie clip MC20 that starts in frame 20 and you
want to pass variables to a movie clip MC30 in frame 30. You can not do that
from frame 20. And you can do that from frame 30 and later only if MC20
still exists (it needs to be in its own layer with empty frames following
it.
You of course can use a Park frame to make an MC exist but not visible
(controlled by Tell Target).

The path to the other MC is easy. Generally don't use relative paths but
ones based on a MC's position from the root (main timeline) and you will
have an easy time.

Begin Tell Target ("/MC30")
Set Variable: "price20" = "123.20"
End Tell Target

For more on Tell Target see ---->
http://www.FlashBible.com/members/TellTarget/

--
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
  Re: FLASH: pop-up window positioning que, Quack the Duck
  FLASH: Croteau: How 2 pass var bet MC's, Suraj Prabhu

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