NAVIGATION - HOME |  | |
| Preloading mclip.onEnterFrame Help | | Published by: admin 2009-01-07 |
| hi ... i m trying create one EnterFrame function in movieclip that show percentage loaded. this is my script:
/*
this movie code be in frame inside movieclip
when load external swf in this movieclip automatic preload
*/
this.onEnterFrame = function() {
var totBy = this.imagem.getBytesTotal();
var loadBy = this.imagem.getBytesLoaded();
var getBy = loadBy/totBy;
//#
if (totBy > loadBy) {
this.texto.visible = true;
this.texto.text = Math.round(getBy*100)+"%";
};
if (totBy = loadBy) {
this.texto.text = "";
};
};
ActionScript - Archivio del forum HTML.it forum:: Form con php Help ▫ 26-09-2006 18:12 - 2 risposte. ▫ XML - Slideshow ▫ 26-09- 2006 17:47 - 5 risposte. ▫ problemone preload ▫ 26-09-2006 17:26 - 1 http://forum.html.it/forum/forumdisplay/f-33-p-28.htmlHOME | SWF principale che carica swf esterni [Archivio] - ActionScript.it :: 26 posts - Last post: Jun 10, 2006ho creato un mc vuoto e nell' istanza del mclip ho inserito Ora mi manca solo di mettere un semplice preload ad ogni filmato, http://www.actionscript.it/forum/archive/index.php?t-8522.htmlHOME |
:angel:
Anyone can help me ?
Thanks in advance and wating ...
nice ramie... work fine but after clicked the button has the lag to show percentage. but work ... i ll try more. and thanks.
:D
remember that flash will cache the image, so after the first time you load it, it will not need to preload it, therefore making the preloader ineffective. movie '/var/www/localhost/htdocs/flashrip/data/44095/dat.swf :: BJ.mClips.MoveAll(); } } } movieClip 188 coin1 { } movieClip 193 coin5 Preload = new Object(); Preload.SetProgress = function (iPercent) { mcLoading. http://s3.amazonaws.com/mediawombat2/data/44095/as.txtHOME |
i ll change the pictures to see the preload working...
:D
What is the problem? Text not showing up or? :)
no! the text is not show.
:wasted:
i change the code to show the loadBar and no Text, but no work too...
this.onEnterFrame = function() {
filesize = imagem.getBytesTotal();
loaded = imagem.getBytesLoaded();
if (loaded != filesize) {
preloader._visible = true;
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (imagem._alpha < 100) {
imagem._alpha += 10;
}
}
};
sees the sample.
Try this..... (I think this was what you were asking for)
please. anyideas ?
:huh:
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home
|
#If you have any other info about this subject , Please add it free.# | |
|