Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Hide a movie clip on click

New Here ,
Mar 19, 2015 Mar 19, 2015

Currently making a escape the room game. How can I write a piece of script that will allow me to click on set movie clips and then they will be hidden.

TOPICS
ActionScript
358
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 19, 2015 Mar 19, 2015

One of many ways:

1. You can change the alpha property of the movieclip to 0. The object will still be active but can't be seen.

2. You can change the visible property of the movieclip to false. The object will not be active and will not be seen.

3. You can change the x or y property of the movieclip to move it off the visible area of the stage.

4. If you added the movieclip to the display list using addChild() to show it on the stage, you can use removeChild() to remove the movieclip from the displ

...
Translate
LEGEND ,
Mar 19, 2015 Mar 19, 2015

One of many ways:

1. You can change the alpha property of the movieclip to 0. The object will still be active but can't be seen.

2. You can change the visible property of the movieclip to false. The object will not be active and will not be seen.

3. You can change the x or y property of the movieclip to move it off the visible area of the stage.

4. If you added the movieclip to the display list using addChild() to show it on the stage, you can use removeChild() to remove the movieclip from the display list and make it disappear.

5. If you added the movieclip to the display list using addChild() then you could change the child order and hide the movieclip behind another, larger, movieclip in the display list.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 08, 2015 Apr 08, 2015
LATEST

Thanks Rob.  Changing the visibility of the item worked

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines