๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.programy.flash-5
Article #33934

Re: Link do dzialajacego preloadera

#33934
From: Devoth
Date: Mon, 19 Feb 2007 20:44
34 lines
1703 bytes
Mr.Jack napisaล‚(a):
> Mozecie podrzucic link do tutoriala z dzialajacym preloaderem? Bo ten 
> ponizej nie dziala (flash sie dlugo wczytuje i pojawia od razu to co ma byc 
> ladowane):

najlepszy preloader to jednoklatkowy, dodaj:

[AS]
this.stop();

this.onEnterFrame = function () {

> var loadedbytes = getBytesLoaded();
> var totalbytes = getBytesTotal();
> _root.loader.procent = Math.ceil((loadedbytes/totalbytes)*100) + "%";

// imo lepiej floor lub round
_root.loader.procent = Math.floor((loadedbytes/totalbytes)*100) + "%";

> 
> frame = int(loadedbytes/(totalbytes/100));
> _root.loader.gotoAndStop(_root.frame);
> 
> if (loadedbytes >= totalbytes) {
>  gotoAndPlay(3);
> }
}
[/AS]

-- 
pozdrawiam
Devoth
Questions? - Do not hesitate to ask!
www.devoth.pl || www.devoth.com (eng. version)
Technical Details
Message-ID: <erd26t$vvk$1@news.lublin.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!lublin.pl!news.lublin.pl!not-for-mail
References: <erd1gm$cch$1@atlantis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!lublin.pl!news.lublin.pl!not-for-mail
From: Devoth <MojAdresJestNaMojejWWW--www.devoth.pl--asfdsf@dasd.pl>
Newsgroups: alt.pl.programy.flash-5
Subject: Re: Link do dzialajacego preloadera
Date: Mon, 19 Feb 2007 21:44:15 +0100
Organization: lubman
Lines: 34
Message-ID: <erd26t$vvk$1@news.lublin.pl>
References: <erd1gm$cch$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: host-86-63-144-100.pronet.lublin.pl
Mime-Version: 1.0
X-Trace: news.lublin.pl 1171917853 32756 86.63.144.100 (19 Feb 2007 20:44:13 GMT)
X-Complaints-To: abuse@news.lublin.pl
NNTP-Posting-Date: Mon, 19 Feb 2007 20:44:13 +0000 (UTC)
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
In-Reply-To: <erd1gm$cch$1@atlantis.news.tpi.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit