Image

Imagefozwalla wrote in Imageflashdev

All right, no more beginner's questions about the Flash UI, which I gather are taboo, or something.

I'm wondering something about Actionscript:

Say I put a movie clip on the stage (instance name symbol_mc), and I add some functionality that lets the user move the movie clip/symbol left or right by giving him buttons to push. I also put two dynamic text boxes on the stage. One has its Var property set to symbol_mc.posX (I let posX equal _x inside the movie clip), and the other text box has its Var property set to symbol_mc._x. So, one box is supposed to display posX, and the other _x.

How come, when the file runs, and as the user moves the symbol around, the value in the dynamic text box set to symbol_mc.posX updates, but the one set to symbol_mc._x doesn't? The one set to symbol_mc._x displays the initial x position of the symbol only, while the other text box updates according to what posX is currently equal to (which is _x).

Are you supposed to avoid setting a dynamic text box's Var property to any of a given symbol's default properties? (_x, _y, _alpha, etc)

Or am I doing something wrong?

(Or does this not make any sense?)