AlecMcE.com

Coding on the Flash Platform

Archive for the ‘jsfl’ Category

Moving Animations in Flash IDE

View Comments

The designer Colin at our work uses the Flash IDE to create avatars and other animations, which we then import into applications and fiddle about with. He’s not very handy at working out where the registration point of a clip should go before he’s done the animation (for lots of good arty reasons), and we don’t really want him to nest an animation inside another MovieClip to correct the problem because it’s a bit messy to have to drill into the display list to find an animation.

If you have multiple frames of animation over multiple layers, there’s really no good way of moving all the elements in one go (or if there is, neither Colin nor I know about it), so I’ve created this little JSFL script wrapped into a Flash front-end for him.

The Flash plugin is required to view this object.

This swf needs to be installed into your installation folder to function, which depends on your OS and Flash version. The paths for CS3 are:

  • (WinXP) C:\Documents and Settings\[USER]\Local Settings\Application Data\Adobe\Flash CS3\[LANG]\Configuration\WindowSWF
  • (OSX) /Users/[USER]/Library/Application Support/Adobe/Flash CS3/[LANG]/Configuration/WindowSWF

where [USER] is your username, and [LANG] is your language (probably “en”).

What it does is pretty simple: Whatever is on stage at the time will all get moved by the amount you specify. It will not respect locked layers, if it’s an element on stage, it’s getting moved!

Source FLA

FLA

You are welcome to inspect the source, compile it yourself, so-on and so forth. The source FLA is here. If you do download the file, you will note that I embedded the jsfl code into the fla, wrapped into an XML cdata tag. This is just because you’re not allowed to break Strings across lines in the Flash IDE Actions panel.

Written by alec

August 11th, 2009 at 1:05 pm

Posted in animation, jsfl

Tagged with ,