🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.pl.programy.flash-5
6 messages
6 total messages Started by P.W. te Lintel Hekkert Wed, 09 Jan 2002 12:06
Fading music after completed preload
#516
Author: P.W. te Lintel Hekkert
Date: Wed, 09 Jan 2002 12:06
16 lines
1370 bytes
Hello!

The more I have made with flash. the more new questions I have :-)

I want to preload a movie and during the preload a song is playing. When the
loading is done I don't just want the music to stop but gently fade away.
How can I achieve such a thing? Because loading times are different for
visitors, I can't just put a fade after, let's say loop 4 or 5. I think I
need a piece of actionscript...... do I ?

I hope you can help me!


Greetz,

Peter :-)
Re: Fading music after completed preload
#517
Author: kolak
Date: Wed, 09 Jan 2002 12:33
19 lines
1562 bytes
"P.W. te Lintel Hekkert" <peter.te.lintel.hekkert@planet.nl> wrote in
message news:a1hbns$r3b$1@reader06.wxs.nl...
> Hello!
> The more I have made with flash. the more new questions I have :-)
> I want to preload a movie and during the preload a song is playing. When
the
> loading is done I don't just want the music to stop but gently fade away.
> How can I achieve such a thing? Because loading times are different for
> visitors, I can't just put a fade after, let's say loop 4 or 5. I think I
> need a piece of actionscript...... do I ?
>
> I hope you can help me!
>

It's a polish group !!!


kolak
www.kkolak.prv.pl
Re: Fading music after completed preload
#518
Author: P.W. te Lintel Hekkert
Date: Wed, 09 Jan 2002 12:36
15 lines
1134 bytes
So you mean the Polish can't read, write and speak English then?


Greetz,

Peter :-)


> It's a polish group !!!
>
>
> kolak
> www.kkolak.prv.pl
>
>
Re: Fading music after completed preload
#519
Author: RNAcid
Date: Wed, 09 Jan 2002 13:15
17 lines
1695 bytes
"P.W. te Lintel Hekkert" <peter.te.lintel.hekkert@planet.nl> wrote in
message news:a1hdgp$h4i$1@reader06.wxs.nl...
> So you mean the Polish can't read, write and speak English then?

:)) You know, it's like everything else in this country - some of us can and
some of us can't... ;))) Fortunately for me i can read your message and i do
understand what the problem is. Unfortunately for you i have absolutely no
idea how to help you with it :(((
Anyway - try to ask the same question in the other groups - f.e.
uk.comp.graph.flash AFAIR...

Greetz & Remember - beware stereotypes ;)))

________________________________
]---Remigiusz "RNAcid" Nowakowski---[
]---Mirage Interactives graph. designer---[
]--------[ www.RatHunt.com ]-----------[
Re: Fading music after completed preload
#520
Author: Mrc
Date: Wed, 09 Jan 2002 13:17
34 lines
1860 bytes
"P.W. te Lintel Hekkert" <peter.te.lintel.hekkert@planet.nl> wrote in
message news:a1hbns$r3b$1@reader06.wxs.nl...
> Hello!
>
> The more I have made with flash. the more new questions I have :-)
>
> I want to preload a movie and during the preload a song is playing. When
the
> loading is done I don't just want the music to stop but gently fade away.
> How can I achieve such a thing? Because loading times are different for
> visitors, I can't just put a fade after, let's say loop 4 or 5. I think I
> need a piece of actionscript...... do I ?
>
> I hope you can help me!
>
>
> Greetz,
>
> Peter :-)
>
>

You have to use Sound object.
Define object and start play it in loop. (default sound volume is 100)
when loading is finished run two-frames loop.
In first frame
    x=x-1
    soundobject.volume(x).
in second frame: .
    if (x==0) {sound is off, continue play movie}
        else {gotoAndPlay(first frame)}

Mrc
Re: Fading music after completed preload
#521
Author: 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?! ;)))
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads