Copy link to clipboard
Copied
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.
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
...Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thanks Rob. Changing the visibility of the item worked
Find more inspiration, events, and resources on the new Adobe Community
Explore Now