Hey all , just wondering if it is possible to disable a level much like you can disable a button.
If it is possible what would be the best way to do that with being able to toggle on and off with a button on another level.
Hey all , just wondering if it is possible to disable a level much like you can disable a button.
If it is possible what would be the best way to do that with being able to toggle on and off with a button on another level.
you can’t really disable it, but you can make it disappear:
_level0._visible = false;
of course, you can change 0 to whatever level you want disabled.
Thanks thor. So there no way to disable a level, hmm :-\
Well i can disable the external because its loaded in on a mc, right? But what i want is also to disable the root just for the moment when the level loads in. then be able to re-enable them when i exit this section.
Another Q
::: If i was to disable these movieclips and such, when they are re-enabled do they start from the beginning of their timeline or from where it was before, say on a stop action on its last frame?
i don’t think there’s really a way to disable _root, as that’s where everything appears. since its level is 0, the lowest possible, (i think) everything else would disappear.
to answer your second question, it depends what you consider “disable”. if you make it invisible (_visible = false), then it would disappear, surely, but it would keep playing unless it gets stopped. now if you completely take it out of the movie, say by removeMovieClip (only works on certain instances…explanation if asked), then bringing it back to the stage completely reset the MC.
yeah i get what you mean, just thought i might be able to disable or should i say pause all activity on a level , such as the root, but be able to un pause the action as well.
: what i want to do , is that i have a flash movie, that i load a external movie in, and in this external when i select a button i m going to have a level load in which with have a shape to make the background fade away(like a black fading in to make the underneath content look “greyout or inactive” and then a little menu. so i wanted to basically pause all animations and disable all button ( or mc) activity in the _root, and the external loaded in to the mc.
I Have a idea on how to, just checking my options before i get into it.
well the best way to find out is to experiment :). that’s the best way to go around in flash. how do you think i learned actionscript? by reading a book? (well that’s partly a way).
yeah i know, i do experiment alot, just checking my limitations before i go ahead and experiment, like i said i had a fair idea on what i want to do and how to achieve it , just checking if there are method of AS for what i was trying to achieve.
All good though, :thumb: I’ll work it out
:: I ordered Mooks second edition actionscript book and the designers actionscipt reference, still waiting on them to come, amazon is taking there time! Cant wait till they do!!
:: Copyright KIRUPA 2024 //--