Is there such thing? Because I’ve tried it, and it does not work.
I have something like:
_root.memory = _currentframe();
and somewhere else have
gotoAndPlay(_root.memory);
Is there such thing? Because I’ve tried it, and it does not work.
I have something like:
_root.memory = _currentframe();
and somewhere else have
gotoAndPlay(_root.memory);
Where do you have this code?
Switch:
http://www.kirupa.com/developer/actionscript/switchcase.htm
Key listner:
Check F1-help for Key.getCode and the example they have will bring up listner.
allso check AttachMovie() in F1-help for attaching MCs to the stage. Be sure to read everything becouse there is a part about linkage.
Without this you cant chance ‘map’ or ‘level’ .
post in wrong, amagad!
[quote=- Andy -;2328451]Is there such thing? Because I’ve tried it, and it does not work.
I have something like:
_root.memory = _currentframe();
and somewhere else have
gotoAndPlay(_root.memory);[/quote]
Your error lies elsewhere, that should work, just tested it myself. A personal tip though, try to keep all code in the main timeline, if you do you could do something like:
var memory:Number = _currentframe;
yourmovieclip.gotoAndPlay(memory);
Therefore not having to worry about scopes.
yes the main timeline is important but i don’t understand why you are calling the current frame? whats the point of sending it to the point it is already at
also if your doing coding on a movie clip you should invest time into classes they are a huge time saver and help keep different parts of your code separate
:: Copyright KIRUPA 2024 //--