all groups > flash actionscript > july 2005 >
You're in the

flash actionscript

group:

Seamless animation through scenes



Seamless animation through scenes KeithRT
7/20/2005 10:31:05 PM
flash actionscript: I have an animation that i created with swift 3d. The animation is on the
stage in the same (x,y) position for all of my scenes. Everytime i go back and
forth between scenes, the animation starts from the beggining. Is there any
way to make it a continuous loop throughout all of the scenes. I suspect even
without scenes i would still have this problem since i would be jumping to
different frames. Any help would be greatly appreciated. :-)

-Keith
Re: Seamless animation through scenes kglad
7/20/2005 11:57:50 PM
yes, you could put a keyframe at the end of each scene and record the
_currentframe of your animation and upon entry to the next scene, set the
_currentframe of your animation to the recorded frame plus 1.
Re: Seamless animation through scenes KeithRT
7/21/2005 12:00:00 AM
Re: Seamless animation through scenes kglad
7/21/2005 12:00:00 AM
if the instance name of your animation is yourAnimation on the _root timeline,
then attached to the last frame of scene N-1 you can use:

yourAnimation_frame=_root.yourAnimation._currentframe;

and attached to the first frame of scene N, you would use:

_root.yourAnimation._currentframe=yourAnimation_frame+1;


Re: Seamless animation through scenes KeithRT
7/21/2005 12:00:00 AM
it doesnt seem to be working. Scene 1 "Main" is one frame long. In scene 2,
"Films", i want it to skip to frame 5 and start from there. If you want you
can take a look at it here:

http://homepage.mac.com/steelraven15/KRT.zip

Thanks!
Re: Seamless animation through scenes kglad
7/21/2005 12:00:00 AM
Re: Seamless animation through scenes KeithRT
7/21/2005 12:00:00 AM
Re: Seamless animation through scenes kglad
7/22/2005 12:00:00 AM
first, don't use scene information to navigate. label your frame and use those
labels to navigate. for example:

this.onRelease = function() {
_root.KRTlogo_frame = _root.KRTlogo._currentframe;
_root.gotoAndPlay("films");
};

second, case (usually) counts in flash. kRTlogo is not the same as KRTlogo.
correct those typos.

third, use the code above for the movieclip buttons that cause the transition
from one KRTlogo keyframe to another. use the code in my original message for
timeline keyframe changes and put in your actionscript layer so you're not
creating more keyframes on your logo layer:

_root.KRTlogo_frame=_root.KRTlogo._currentframe; /* on a keyframe just before
another instance of KRTlogo is instantiated */

_root.KRTlogo._currentframe = _root.KRTlogo_frame+1; /* on the keyframe where
a new instance of KRTlogo has been instantiated.
Re: Seamless animation through scenes KeithRT
7/22/2005 9:25:29 PM
What do you think about loading the movie clip onto another level? If i load
the mc into another level though, is there anyway that i can tell the _root
level to be above it (since text appears above the mc later on) ignoring the
fact that i could just make the text on a higher level? Also, since the text is
a button that takes you back to the first frame, the movie would reload and
cause the same problem again, except only when going back to the first frame.
loading the mc onto another level seems like a way easier idea then the way i
was going about it, its a lot less code which equals a lot less possibility for
mistakes or complexity. suggestions?
Re: Seamless animation through scenes kglad
7/23/2005 12:00:00 AM
the only relevent fact is whether you're going to have more than one instance
of that movieclip on-stage and whether you want the transition from one
instance to the next to be seamless. if the answer is no to any of the above,
then there's no problem.
Re: Seamless animation through scenes kglad
7/23/2005 12:35:35 AM
nothing in _level0 will above anything in any other _level. and it wouldn't
matter: your problem is caused by having new instances of KRTlogo appear at
various keyframes. it wouldn't matter whether that was occuring in _level0 or
any other _level.

i'll think about it, but there's no way around using code that executes each
time the playhead enters a new frame unless you do as i suggested above.
Re: Seamless animation through scenes KeithRT
7/23/2005 1:02:53 AM
Re: Seamless animation through scenes KeithRT
7/26/2005 9:33:24 PM
Re: Seamless animation through scenes kglad
7/27/2005 12:00:00 AM
AddThis Social Bookmark Button