Tag: flash

How to analyze Captivate Movie structure

If you want to create widgets that control Captivate files with new functions, other than the standard playbar functions, you will need to develop them in flash. Here’s how to figure out what is going on in a Captivate movie file:

Create a Captivate movie, and publish it (Captivate 2) or export it to Flash (Captivate 3). To create my faster-slower widgets, I had to decompile it into an .fla (I used SWFdecompiler )

Open it in Flash, and start exploring the structure. If you are using version 3, by far the best tool you can use include the “debug movie” command.

Continue reading

Using dynamic text to toggle a play/pause button

I’ve been building a simple flash video player based on the one here and had the idea to use dynamic text to easily toggle the play button between the play and pause states. The Webdings font character for the play state is “4” and for the pause state is “;”

To avoid problems with fonts not displaying on some machines, click the “Embed” button on the text properties panel when creating the dynamic text, and embed the numerals.

Continue reading

Accessing the main timeline from a loaded SWF on another level.

I have a flash file which loads an external SWF (call it external.swf) into the main timeline, on level 10. In this case, using _root or _parent to call the symbols on the main timeline will not work, since _root or _parent would refer to items on _level10.

The main timeline also contains a movie clip called “swapColors_mc” with two frames called “red” and green”.

To control the color change of swapColors_mc by clicking a button in external.swf once it is loaded, open “external.fla” (the original flash file from which external.swf is created) and add this actionscrip to the button:


on (release) {
_level0.swapColors_mc.gotoAndPlay("green");
}

Continue reading