0
votes

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.

2
Any help or leads would be great. - Matthew Pontarolo

2 Answers

0
votes

Did you mean :

this.root.variable 

or

this.parent.variable
0
votes

Try

Movieclip(parent).variable