_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?
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?