This content has been marked as final. Show 4 replies
> you can't access variables that are in movieclips,
> can you ?
I /think/ you can, and that it's a matter of addressing the clip and
variable properly. For example:
would suggest that sprite 1 points to a #flash cast member which has a
movieClip in the _root timeline named myClip which in turn contains a
variable named myVariable
As Sean said, yes, you can drill through the Flash member to get to individual movieclips and their properties and variable values. Be sure to wait for the Flash sprite to instantiate itself before you query it. Don't try to get the value of a variable or property on a beginSprite function. Most Flash sprites need at least one enterframe cycle before they will respond.
I did my best but I couldn't.
In fact, you cannot even see the variables within the object inspector
(even with the movie running).
I'll have a try with a very basic movie anyway...
You're both right : it works !
I did a very basic test and I could read and set the variable.
You cannot see it in the Object Inspector, though...