Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Absolute and relative paths in Actionscript 1

Status
Not open for further replies.

mancroft

Programmer
Oct 26, 2002
267
GB
_root.placeholder3.square1.button1._visible = false;

turns off the visibility of a button.

The problem is this:

When developing the code, I use:

_root.square1.button1._visible = false;

because i need to be able to see what is happening as i go along BUT

the final .swf file goes into an empty placeholder movie clip called placeholder3 so i have to change the code to:

_root.placeholder3.square1.button1._visible = false;

This I understand.

How do i use _ parent and/or this to create relative paths so i don't have to muck about changing the code?
 
You could check:

About absolute and relative target paths in the MX AS dictionary. It's fairly well explained.

Or this:

But the AS dictionary description is better. Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top