Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-15-2005, 04:14 PM   #1
shizny
Senior Member
 
Join Date: Jan 2003
Posts: 153
Default attaching timeline animation mc not playing correctly

Hi,

I am attaching a movieclip that has a timeline based animation in it. I have a layer for the graphic animation and a layer for the actionscript controls.

Frame One Actionscript : stop();
Last frame actionscript: stop();

That's all I have. I attach the movieclip and say movieclip.gotoAndPlay(2). The result is that it just goes to 2 and stops. It doesn't play until the last stop. Each stop frame is a keyframe so the stop command doesn't have an effect on any of the frames of the actual animation. I can play the animation fine if I just but the movieclip on the maintimeline and make a button that when I push it starts the animation at frame 2. Is there something weird about attaching animation movieclips. I tried to attach it and then move to the last frame to make sure the animation is all there and then move back and play it but it doesn't work. If I take out the controls of the animation it works fine but just plays in a loop which doesn't work for me. Any help would be great.

Thanks in advance. Oh also, all the linkage stuff is set up for the attachment and it is being attached.

Josh
shizny is offline   Reply With Quote
Old 04-15-2005, 10:36 PM   #2
shizny
Senior Member
 
Join Date: Jan 2003
Posts: 153
Default

Is the only way I can do this by doing some kind of function on an interval that increments my animation?
shizny is offline   Reply With Quote
Old 04-16-2005, 01:49 AM   #3
shizny
Senior Member
 
Join Date: Jan 2003
Posts: 153
Default

Well, I don't know why this thing isn't working, but I have found a workaround and thought I would post it here in case somebody else has the same problem.. I wrote a class that extended movieclip that controlled the animation clip. the goto stuff etc. I took the timeline actionscript out of the movieclip.
shizny is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:36 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.