PDA

View Full Version : double dot notation in flash


niobi xd
05-02-2004, 10:00 PM
hi guys,

i've searched high and low to understand what this means in flash. Like exactly what it refers to.

here is an example of what i mean:

mouseposX = int(getProperty("../dragscale", _x));
mouseposY = int(getProperty("../dragscale", _y));

what i'm trying to do is change the "../" to something like _root.nameOfMC.dragscale

when i try to do that, the file wont work. any ideas?

i'm not sure, but is this some form of earlier flash actionscript notation??


thanks,
niobi

CyanBlue
05-02-2004, 10:05 PM
Howdy... :)

.. means something that is in the parent timeline of wherever you are in right now...
So, that probably will be...

mouseposX = int(getProperty("../dragscale", _x));
// to
mouseposX = Math.round(_parent.dragscale._x);
// or
mouseposX = Math.round(this._parent.dragscale._x);

Forgot to tell you... That's Flash 4 syntax which you should avoid if you are using higher version... :)

niobi xd
05-02-2004, 10:11 PM
thanks heaps cyanBlue!

and yeah..i figured it was old ..that was why i was trying to change it. its actually from a tutorial i downloaded a while ago.

thanks again!