Switch from timeline to script?

Posted on 2005-04-21
Last Modified: 2010-04-03
This is a really dumb question, so I'll apologize in advance.

I have created a flash animation using the timeline feature of Flash. I want to switch it to using the scripting feature as that should allow me to use more frames, and thus increase the overall quality of the animation.

Is there any way to convert, or to view the Flash generated script and modify from there, or do I have to start over?

Thanks in advance...

Question by:VeeVan
    LVL 18

    Expert Comment

    It would be a case of cut and pasting the various frames of the animation into several different mcs (and using attachMovie/loadMovie, and removeMovieClip/unloadMovie to position the animation dynamically), using static images for backgrounds, reusing the various elements of the animation to decrease file size etc.
    It really depends on how complex the animation is and what exactly you need to do with it - but if you upload the fla for us to view we may be able to give some more accurate pointers on how to rework it.

    LVL 1

    Author Comment

    The animation itself really isn't that complicated. It's just a couple of fade ins and outs and motion tweens. The challenge is, I didn't set it up with enough frames per second, and now, in order to create a smoother motion, I want to make the animation take up more frames and significantly increase the frames per second. If there's an easier way to do this, I would love to hear about it.

    Also, the animation is currently residing on my server. Where should I upload it for you to view?

    LVL 18

    Accepted Solution

    I would need to see the fla, not the swf, but if have that there, just provide the link so it can be downloaded.

    For fadeins and fadeouts and motion tweening, it is a simple enough thing to do action script wise -

    on a clip to be faded, you convert it to a movieclip (if it hasn't already been), give it an instance name (or leave it in the library and set the linkage identifer to export for action script - probably the best way)

    then on the _root time line, in its own keyframe, add this code, assuming the linkage identifier name of the mc is 'mymc_mc'
    this._alpha +=5;//fading out would be this._alpha -=5;
    this._x +=5;//moves the clip to the right across the screen

    and to remove the movieClip when you are done:

    This is very simple of course - and just provides the idea - not necessarily the functionality for your purposes.
    I will take a look when/if you upload.



    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
    This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
    In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
    The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now