-
Hide all items not clicked
Hello,
I'm trying to createa menu effect whereas when one item is clicked any previous clicked items will be removed from the stage.
In the code below, I get the item name clicked, then attempt to hide all other items not matching the current selected name.
Any ideas would be greatlyappreciated.
//------------------------------ hide all items not clicked -----
function hideallothers(){
for(var prop in this){
if(this[prop] instanceof MovieClip || this[prop] instanceof Button){
this[prop].onRelease = function(){
trace("this_name=" + this._name);
xpos= this._x;
if(this[prop]=this._name){
this[prop]._x=2000; //hide all other/any current selevceted items
trace("xpos==" + xpos);
}
}
}
}
}
-
Flashmatics
do u mean only the buttons which have been clicked BEFORE dissapear or all the buttons?
-
Flashmatics
do u mean only the buttons which have been clicked BEFORE dissapear or all the buttons?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|