plaing with LibLoader and external SWF. However, this has been
unsuccessful. If I launch coolImage.swf as standalone in browser then
the image loads successfully. lib is not null or undefined when I
trace it. Any suggestions?
MXML file:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*"
width="100" height="100">
<LibLoader source="clientLib/coolImage.swf"
libLoaded="registerLib(event)" width="100" height="100" />
<mx:Script>
<![CDATA[
private function registerLib(event):Void
{
var lib = event.handle;
//loading of the gif is implemented insde
of coolImage.swf
}
]]>
</mx:Script>
</mx:Canvas>
=================================================================
coolImage.fla action script
stop();
var mc:MovieClip = createEmptyMovieClip("mc", 30);
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.loadClip("../bitmaps/add.gif", mc);
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.