🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Fading music after completed preload

#521
From: maliboo
Date: Fri, 11 Jan 2002 23:26
47 lines
1641 bytes
> I want to preload a movie and during the preload a song is playing.

start preload:

s = new Sound()
s.attachSound("sound_in_libary")
s.play()
v = 100

at end make a frame loop:

v -= 10
s.setVolume(v)
if (v<= 0) {
//end loop
}


so final lopp will look like:

1st frame:
s = new Sound()
s.attachSound("sound_in_libary")
s.play()
v = 100

2nd frame:
preloader if loaded goto Nth frame


Nth frame
v -= 10
s.setVolume(v)
if (v<= 0) {
//end loop (dont go to next frame...)
}

(N+1)th frame
goto Nth frame




maliboo

PS: this is a polish group and we write and read in polish beacause we like it and its easier for lotof persons here, and why
netherlands dont understand polish language?! ;)))
Technical Details
Message-ID: <a1nsb0$fr1$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <a1hbns$r3b$1@reader06.wxs.nl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: "maliboo" <flash@macromedia.com.pl>
Newsgroups: alt.pl.programy.flash-5
Subject: Re: Fading music after completed preload
Date: Sat, 12 Jan 2002 00:26:07 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 49
Message-ID: <a1nsb0$fr1$1@news.tpi.pl>
References: <a1hbns$r3b$1@reader06.wxs.nl>
NNTP-Posting-Host: pm62.warszawa.cvx.ppp.tpnet.pl
X-Trace: news.tpi.pl 1010791584 16225 213.76.108.62 (11 Jan 2002 23:26:24 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Fri, 11 Jan 2002 23:26:24 +0000 (UTC)
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit