0

I am trying to alter a variable within the parent or root of a movieclip with:

this(root).variable

So far I've only encountered errors, and I'm not sure how to fix them. The variable is on the stage.

The current error is:

TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@28b7ef99 to flash.display.MovieClip.

Does anyone know what I'm doing wrong?
It seems like that works for everyone else.

4

2 に答える 2

0

試す

Movieclip(parent).variable
于 2012-08-23T17:24:36.643 に答える
0

もしかして :

this.root.variable 

また

this.parent.variable
于 2012-08-23T13:50:17.080 に答える