A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to make something invisible?

  1. #1
    Junior Member
    Join Date
    Dec 2010
    ur mama's house :O

    Lightbulb 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:EVENTvoid {" line. Please help me fix it!
    (im using flash cs6, actionscript 3)

  2. #2
    Senior Member somlemeg's Avatar
    Join Date
    Aug 2000
    PHP Code:
    menugroup_mc.visible false;

  3. #3

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

Click Here to Expand Forum to Full Width

HTML5 Development Center