Wednesday, April 09, 2008

LegacyCaptivateLoader: dealing with pre-existing scripts in your Captivate SWF

New: LegacyCaptivateLoader class for Flash lets you embed Captivate in Flash and communicate between them


Pipwerks has published a great article that addresses some issues that plague Captivate users who need a little extra control and customisation.

"Many of us use a Flash-based course interface (a.k.a. ‘player’) to load Captivate SWFs and other content. A well-known stumbling block for this kind of ‘loaded SWF’ approach has been Captivate’s lack of ActionScript support — Captivate won’t allow a user to add a simple line of custom ActionScript anywhere. This means that Captivate does not natively support direct SWF-to-SWF communication.

Here’s a common scenario where this might be a problem:

A developer wants to load a Captivate SWF into a ‘player’ SWF. She wants the Captivate SWF to automatically unload when it’s done playing. To do this, she’d simply like the Captivate SWF to call an ActionScript function named “unloadMe()” at the end of the movie.

Since Captivate doesn’t support custom ActionScript, this seemingly innocent bit of scripting can’t be done… at least not natively."


Read the whole article here.

No comments: