larcho
January 20th, 2004, 01:52 PM
Is it posible to make a preloader of a SWF that loads an external JPG?
Thanks
:red:
larcho
January 20th, 2004, 02:12 PM
This is what I'm using to load the JPG into the SWF ... and basecally the same to load the SWF into the SWF containing the JPG.
onClipEvent (load) {
this._visible = false;
//JPG HOLDER
mc_jpgholder = this._parent.createEmptyMovieClip("loadContainer", 2);
mc_jpg = new MovieClipLoader();
mc_jpg.loadClip ("9_centro.jpg", "mc_jpgholder");
mc_jpgholder._x = 180
mc_jpgholder._y = 117
}
onClipEvent (enterFrame) {
this._visible = true;
totalBytes = mc_jpgholder.getBytesTotal();
receivedBytes = mc_jpgholder.getBytesLoaded();
percentage = Math.round((receivedBytes/totalBytes)*100);
}
How can I transfere the info on getBytesTotal(); to the SWF containging the SWF with the JPG ?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.