?
Solved

Switch from timeline to script?

Posted on 2005-04-21
3
Medium Priority
?
269 Views
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...

V
0
Comment
Question by:VeeVan
  • 2
3 Comments
 
LVL 18

Expert Comment

by:Billystyx
ID: 13833803
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.

Billystyx
0
 
LVL 1

Author Comment

by:VeeVan
ID: 13833944
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?

Thanks.
V
0
 
LVL 18

Accepted Solution

by:
Billystyx earned 2000 total points
ID: 13834226
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'
dep=_root.getNextHighestDepth();
attachMovie("mymc_mc","mymc_mc",dep);
mymc_mc._x=100;
mymc_mc._y=100;
mymc_mc._alpha=0;
mymc_mc.onEnterFrame=function(){
//fading
if(this._alpha<100){
this._alpha +=5;//fading out would be this._alpha -=5;
}
//motion
if(this._x<500){
this._x +=5;//moves the clip to the right across the screen
}
}


and to remove the movieClip when you are done:
mymc_mc.removeMovieClip();


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.

Billystyx

0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

571 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