Skip to main content
April 24, 2010
Answered

Question on animation

  • April 24, 2010
  • 1 reply
  • 462 views

Hi, me again.  I was moving on with my little project, and I am trying to think of the best way to do something.  So, on the user input, I am going to call up animated letters for each letter inputted (At the moment it is working with still images).

So, should I create everything in one script, or should I create a flash movie for every letter of the alphabet?  I would prefere to do the latter, but my worry is that this means each letter will only be limited to its animation within its own stage, and will not pertrude onto the main stage.  Ideally, I want everything to look natural, not as if each letter is limited in its animation.

Whats the best way I could do this?  I was thinking about making a script for every letter within the same file, but I am not sure if this involves packages or everything like that?  I havnt learnt this yet, but I am willing to give anything a try based on professional advise.

Any advise appreciated as usual.

cheers

This topic has been closed for replies.
Correct answer Ned Murphy

So when you say there is no need to make a swf for each letter, your not suggesting I do everything in one as file are you?  You think the best idea is to make a package, and to have different classes controlling different animations, and just call these up in the main class as needed?


Personally, I'd probably have 26 images sitting in a folder on the server, one movieclip for animating any one of them that I duplicate as needed (unless the animation was codable), and one fla file.  I don't do classes/packages... I'm not that smart... classes still escape my ability to reason them out.  If you can envision a practical and efficient approach to a design, try it out and see... I don't often learn anything by getting things right--mistakes are my friends.

1 reply

Ned Murphy
Legend
April 25, 2010

I'm not really clear on the intent, but it would seem to be an unnecessary undertaking to create 26 images (or more) and then create 26 swf files (or more) out of them.  With what you have now you should have all you need, except possibly for placing the loaded content into movieclips or some other object form that you can manipulate freely.

April 25, 2010

Generally, when I was using the jpg images for each letter, this was to get used to what I needed to do for my intended goal.  Really, I want the user to type in their name, and each letter of their name will animate.  This animation will be done instandard flash, as I am unsure I will be able to do it all in as3.

So, for the images of each letter, I had 26 image files.  I was wondering if I should do the same for the amination.  Create 26 seperate animations for each letter, and then load them in like i did the images.  But then my worry about doing this was stated in the original post.

The other option was to start using packages, so everything is working on one stage.  I could create a class for each letter, and perform the animation in flash within each class.  I could then instantiate the classes within the main stage class as needed.  This would mean each letter was not restricted to its own seperate stage, as would be the case if they were their own swf.

I could do it all in one class also, but I feel this would be too much for one class, and defies the point of oo programming.

I was just wondering how you would do something like this?

cheers

Ned Murphy
Legend
April 25, 2010

It all boils down to what your intentions are for animating things.  If the animation can be done using code, or a combination of a movieclip and code, then there is no reason to create an swf for each.  In any case, if the animations involve using images, you can save file size by loading the images dynamically.