Archive for the ‘Extensions’ Category

FrameLabelMovieClip & UIFrameLabelMovieClip

Monday, April 13th, 2009

FrameLabelMovieClip and UIFlameLabelMovieClip (Flex), dispatch FrameLabelEvent’s when their playhead encounters a frame label. The FrameLabelEvent contains the FrameLabel object containing the name and frame number of the frame label.

Examples

FrameLabelMovieClipExampleLoadSWF – an example of loading an SWF with our library class and creating an instance of a FrameLabelMovieClip exported from the library.
UIFrameLabelMovieClipExampleSWC – an example of using a SWC in a Flex project that contains a UIFrameLabelMovieClip.

The classes themselves can be downloaded from our Google code library.

Classes

ws.tink.display.FrameLabelMovieClip
ws.tink.events.FrameLabelEvent
ws.tink.flex.flash.UIFrameLabelMovieClip

To enable ease in the Flash IDE I’ve also knocked up an extension that installs 2 utility commands for creating FrameLabelMovieClip’s and UIFrameLabelMovieClip’s. The extension also includes 2 class library components that contain the classes required by FrameLabelMovieClip (FrameLabelMovieClipBase) and UIFrameLabelMovieClip (TinkFlexComponentBase).

Commands

1. Convert Symbol to FrameLabelMovieClip
Creates FrameLabelMovieClip’s for use with Flash IDE and ActionScript 3.0 Projects, out of all the selected MovieClip’s in the library. The command also adds the FrameLabelMovieClipBase component to the library that contains the nessessary classes to compile a SWF or SWC.

2. Convert Symbol to Flex UIFrameLabelMovieClip
Creates UIFrameLabelMovieClip’s for use with the Flex framework out of all the selected MovieClip’s in the library. The command also adds the TinkFlexComponentBase component to the library that conatins the necessary classes to compile a SWF or SWC.

Components

1. FrameLabelMovieClipBase
Contains the necessary classes to use a FrameLabelMovieClip as a base class for a library symbol.

2. TinkFlexComponentBase
Contains the necessary classes to use a UIFrameLabelMovieClip as a base class for a library symbol.

MXI

FrameLabelMovieClip Creator

Copy Fill as AS3

Tuesday, November 4th, 2008

The ‘Copy Fill as AS3′ command adds the ActionScript required to create the current fill in the toolbar to the systems clipboard. This can then be pasted into you favorite code editor.

The command is especially useful when re-creating complex gradient fills in code that were created in the Flash IDE.

This command is accessed through;

Commands > Copy Fill as AS3

Copy Fill as AS3.mxp

Create Classes Command & Panel

Monday, June 4th, 2007

If your developing anything in Flash on a decent scale you should get out of the Flash IDE. If you working with Flash 9 and ActionScript 3.0 I would recommend Flex Builder, at £370 (or $499 if you have a friend in the states), its well worth it’s money.

That said, the two products don’t integrate seemlessly which is the reason for this post. Everything you want to export from your Flash library now has to linked to a class, and if you don’t have a class file saved locally with the same name (i.e. you don’t need to add any extra functionlity to the class) then Flash with ‘auto-generate’ the class for you. This doesn’t mean that Flash actually creates the class locally, but it auto-generates the class when you export the movie.

This sounds a great idea and works well until you switch back to Flex Builder and try to use the auto-genetared class. Because their is no local copy of the class Flex Builder is unable to find it and therefore shows errors where the class is used. If you switch back to Flash to export the same script will work fine as Flash knows about the class. One of the biggest advantages of developing in Flex Builder is that fact that you are show errors without having to export your application, but if the problems panel is littered with problems which aren’t actually problems it removes the usefullness of this feature.

To solve this here’s a little JSFL command and panel that runs through your library and creates a local copy of any classes/packages in the library that it can’t find a local copy of, in a classpath you have specified. This means that when you switch back to Flex Builder it can find a local copy and doesn’t show the errors where these classes are used. The class generated looks like the following example… (more…)

Feedup with the Flash StartPage?

Wednesday, February 8th, 2006

Well if you are Mr Skinner has put a new one together.

Publish and Test

Saturday, September 24th, 2005

Heres a tiny weeney JSFL Command wrapped in an MXP written by my buddy Dan Wood, who I’m working with at the moment.

I’ve been working with lots of external SWF’s that load into a main movie. This command publishes the movie your currently working on and then tests the movie that was opened first (which if your sensible will be your main movie ;) ). This means you don’t have to test your current movie, switch the your main movie, test that, and then switch back to the movie you were working on. Run this and all will be well.

Cheers Dan!

Download

Rename MovieClips Command

Monday, August 29th, 2005

All you might be able to tell by now i’ve been trying to get into JSFL today. These commands were created as they would have been very useful to me last week (and the week coming as a matter of fact).

The ‘Rename MovieClips’ Command enables you to select a group of MovieClips in a single folder and reanem them all with a coma deliminated list eg. ‘clip 1,clip 2,clip 3,clip 4′. (more…)

Change Type Command

Sunday, August 28th, 2005

Another simple little JSFL extension. The other day i got a file with a shed load of Graphic’s in the library that i needed to change to MovieClip’s. This extension enables you to select items in your library and then change their type to either MovieClip, Button or Graphic.

Download here.

*** edit ***
I have just updated this extension so that it only affects MovieClip’s, Button’s and Graphic’s. All other items are now ignored.

Draw Rectangle Command

Sunday, August 28th, 2005

I’ve been playing with MovieClip.scale9Grid a bit (its a fantastic addition and so easy to use) recently. A problem I came across, and have come across before in the past, is thats its very difficult to draw a rectaangle on the Stage at a specific size with a specific corner radius. (more…)