Article View: alt.pl.programy.flash-5
Article #33893Re: Nienawidze F1! Jak dodac volume control?
From: Devoth
Date: Thu, 15 Feb 2007 20:26
Date: Thu, 15 Feb 2007 20:26
52 lines
2906 bytes
2906 bytes
Mr.Jack napisał(a):
> Devoth wrote:
>> Wywal wszystko z drugiej klatki, oraz wszystkie akcje z przycisku
>> stop. i na pierwszej klatce dorzuć:
>
> Dobra, nie dziala :) Tzn da sie tylko wylaczyc dzwiek. Jakichs oczywistych
> rzeczy nie napisales na pewo :) Primo: jak skasowalem wszystko w 2 klatkach,
> to nie mam przycisku play. Jesli przycisk STOP mial dzialac takze jako PLAY,
> to nie dziala - drugie klikniecie w niego nic nei zmienia.
>
pierwsza klatka u mnie:
[AS]
var song_sound:Sound = new Sound();
song_sound.attachSound("loop.wav");
song_sound.start();
isPlaying = true;
volume_mc.top = volume_mc._y;
volume_mc.bottom = volume_mc._y;
volume_mc.left = volume_mc._x;
volume_mc.right = volume_mc._x + 100;
volume_mc._x += 40;
song_sound.setVolume(40);
volume_txt.text = 40;
volume_mc.handle_btn.onPress = function() {
startDrag(this._parent, false, this._parent.left, this._parent.top,
this._parent.right, this._parent.bottom);
};
volume_mc.handle_btn.onRelease = function() {
stopDrag();
var level:Number = Math.ceil(this._parent._x - this._parent.left);
this._parent._parent.song_sound.setVolume(level);
this._parent._parent.volume_txt.text = level;
};
volume_mc.handle_btn.onReleaseOutside = volume_mc.handle_btn.onRelease;
soundstop.onPress = function () {
isPlaying?song_sound.stop():song_sound.start();
isPlaying = !isPlaying;
}
[/AS]
PS. zmieniłem także
volume_mc.handle_btn.onReleaseOutside = volume_mc.handle_btn.onRelease;
jednak to raczej nie w tym problem
--
pozdrawiam
Devoth
Questions? - Do not hesitate to ask!
www.devoth.pl || www.devoth.com (eng. version)
Technical Details
Message-ID:
<er2fko$pve$1@news.lublin.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!news.prz.edu.pl!lublin.pl!news.lublin.pl!not-for-mailReferences:
<er25rj$jg4$1@atlantis.news.tpi.pl> <er2674$ksg$1@atlantis.news.tpi.pl> <er27v9$gqa$1@news.lublin.pl> <er299e$1dl$1@nemesis.news.tpi.pl> <er29uo$2tf$1@nemesis.news.tpi.pl> <er2a3h$711$1@atlantis.news.tpi.pl> <er2ca3$8b5$1@nemesis.news.tpi.pl> <er2cj8$mhg$1@news.lublin.pl> <er2ddj$anq$1@nemesis.news.tpi.pl> <er2eum$p9q$1@news.lublin.pl> <er2flp$fjb$1@nemesis.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!news.prz.edu.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: Nienawidze F1! Jak dodac volume control? Date: Thu, 15 Feb 2007 21:26:01 +0100 Organization: lubman Lines: 52 Message-ID: <er2fko$pve$1@news.lublin.pl> References: <er25rj$jg4$1@atlantis.news.tpi.pl> <er2674$ksg$1@atlantis.news.tpi.pl> <er27v9$gqa$1@news.lublin.pl> <er299e$1dl$1@nemesis.news.tpi.pl> <er29uo$2tf$1@nemesis.news.tpi.pl> <er2a3h$711$1@atlantis.news.tpi.pl> <er2ca3$8b5$1@nemesis.news.tpi.pl> <er2cj8$mhg$1@news.lublin.pl> <er2ddj$anq$1@nemesis.news.tpi.pl> <er2eum$p9q$1@news.lublin.pl> <er2flp$fjb$1@nemesis.news.tpi.pl> NNTP-Posting-Host: host-86-63-144-100.pronet.lublin.pl Mime-Version: 1.0 X-Trace: news.lublin.pl 1171571160 26606 86.63.144.100 (15 Feb 2007 20:26:00 GMT) X-Complaints-To: abuse@news.lublin.pl NNTP-Posting-Date: Thu, 15 Feb 2007 20:26:00 +0000 (UTC) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: <er2flp$fjb$1@nemesis.news.tpi.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit