I cannot get the Loader to work when using
its api directly. But, the tag equivalent
works.
My code looks like api usage looks
like...
_loader = new Loader();
_loader.visible = false;
_loader.load("fileIO.swf");
_loader.addEventListener("complete", mx.utils.Delegate.create(this, libLoaded));
_loader.visible = false;
_loader.load("fileIO.swf");
_loader.addEventListener("complete", mx.utils.Delegate.create(this, libLoaded));
The libLoaded handler is never called and
0 bytes are loaded.
The tag that
works...
<mx:Loader
id="myLoader"
visible="false"
autoLoad="true"
source="fileIO.swf"
complete="libLoaded(event)"
/>
id="myLoader"
visible="false"
autoLoad="true"
source="fileIO.swf"
complete="libLoaded(event)"
/>
The libLoaded handler is
called and some count of bytes are
loaded.
It is the same absolute
url, so I can't see why one works and one does
not.
-S
--
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.

