Skip navigation
Currently Being Moderated

Hey guys quick question.

Mar 18, 2013 2:50 AM

Hey adobe =D.


so in the pursuit of my flash game i need a bit of help.


(i am using Flash MX, and am very new to flash)



So i want to make a movie clip that has 2 frames in it. FRAME 1: contains an image and a red cross drawn onto it. FRAME 2: has just the image and no cross.


using _global.lunchbox = 0; id like it to change from cross to no cross when _global.lunchbox = 1;


to be honest i dont even have a clue as to what code is responsible for switching a movie clip.

please use simple english =D.



Thank you.

  • Currently Being Moderated
    Mar 18, 2013 4:40 AM   in reply to stask

    When the value of lunchbox changes, change the frame of the movieclip using the instance name of that movieclip to target it....


    _global.lunchbox = 1;  // you hvae this already somewhere


    image_mc.gotoAndStop(2);  // to tell the movieclip to go to frame 2

    Mark as:
  • Currently Being Moderated
    Mar 19, 2013 6:08 AM   in reply to stask

    You're welcome

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points