PDA

View Full Version : sending a text variable from mc to _root?


robskinn
11-08-2002, 03:27 PM
Hi,

How would I pass a text variable from a movie clip (called "enter") in my main scene to another movie clip (called "movie") on frame 2 in my main scene.

I have used a onload event to previously read a text variable from the main scene, but I cannot work out how to pass the variable to a movie from another movie.
:)

simontheak
11-08-2002, 03:45 PM
This sounds like a path question I think.

To set a variable on the main time line from a movie clip on that time line, you need to add:

_root.myVariable=variableValue

So if I'm understanding your question right then to pass a variable from 'enter' to 'movie' you need to put the following on 'movie':

myVariable=_root.enter.variableName