PDA

View Full Version : Hey, SetProperty


johnl
05-21-2002, 02:09 PM
Hey guys,
I have an instance of 'min' called 'min'. At the start, it turns itself invisible. I want my button to turn min visible again. I think i have the variable path wrong.

on(release)
{
setProperty(min,_visible,true);
}


thanks!
johnl

pinkaboo
05-21-2002, 02:33 PM
is either the button or "min" inside another movie clip?
you probably just need to put the full path to "min" in your code so you are right it is a pathing issue.
have you read the
Paths to Objects and Variables (http://www.actionscripts.org/tutorials/beginner/paths/index2.shtml) tutorial in the tutes section? that might help you.

JRBT
05-23-2002, 04:43 PM
sounds like pathing to me as well.........

try an experiment to see if it is the pathing:

go onto the named instance, and add the following code:

onCLipEvent(load){
this._visible = 1;
}


OR

onClipEvent(load){
setProperty(this, _visible, 1);
}

(the number one and true become the same thing at run time)

I type 1 because I'm lazy.

If the lines I gave you work, you know that the function can be done - your path to the instance is wrong - open up your movie explorer to double check your path, or try an absolute path from the main timeline beginning with _root. good luck!