-
How to make something invisible?
so they name of the movie clip i want to make invisible is called menugroup_mc .
I want to make it invisible when you enter the frame, so i tried this code
Actionscript Code:
menugroup_mc.addEventListener(EVENT.ENTER_FRAME, hideObject);
function hideObject (event:EVENT:(void { menugroup_mc.visible = false; }
but every time I check it it says "Scene 1, Layer 'Actions', Frame 1, Line 8 1084: Syntax error: expecting rightparen before colon."
line 8 is the "function hideObject (event:EVENT void {" line. Please help me fix it!
(im using flash cs6, actionscript 3)
-
Senior Member
PHP Code:
menugroup_mc.addEventListener(Event.ENTER_FRAME, hideObject);
function hideObject(e:Event):void
{
menugroup_mc.visible = false;
}
-
Senior Member
Tags for this Thread
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
|