🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Nienawidze F1! Jak dodac volume control?

#33888
From: Mr.Jack
Date: Thu, 15 Feb 2007 19:25
60 lines
2892 bytes
Casiel wrote:
> Użytkownik "Mr.Jack" napisał w wiadomości
> news:er29uo$2tf$1@nemesis.news.tpi.pl...
>> Mr.Jack wrote:
>> Ok, znowu sobie odpowiadam. >
>> --
> I tak właśnie powinien wyglądać idealny subskrybent grupy - zapyta,
> odpowie i sam wszystko wyjaśni :c)))

Dobra, ale na to nie znajde rozwiazania.

var song_sound:Sound = new Sound();
song_sound.attachSound("loop.wav");
song_sound.start();

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 = slider_mc.handle_btn.onRelease;

I teraz dorobilem sobie 2 mc play i pause. W zwiazku z tym dodalem 1 klatke 
(w sumie mam 2 i 3 warstwy). Stopowi dalem:

on (release) {
 stopAllSounds();
 }
on (release) {
 _root.gotoAndPlay(2);
 }

a Play:

on (release) {
_root.gotoAndPlay(1);
}

Problem polega na tym, ze jak klikne stop, a nastepnie play, to mi sie 
przycisk do przesuwania glosnosci przesuwa w prawo za kazdym razem jak 
uruchomie stop/play. Jak zrobic, zeby ten przycisk (MC) zostal w miejscu, w 
ktorym byl wczesniej?

-- 
Jacek "Mr.Jack" Sawicki
http://www.motocykl.org
http://www.motocykl.org/portfolio/mrjack_portfolio.rar 
Technical Details
Message-ID: <er2ca3$8b5$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "Mr.Jack" <mrjack@WYTNIJTOCOTUJESTmotocykl.org>
Newsgroups: alt.pl.programy.flash-5
Subject: Re: Nienawidze F1! Jak dodac volume control?
Date: Thu, 15 Feb 2007 20:25:14 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 62
Message-ID: <er2ca3$8b5$1@nemesis.news.tpi.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>
NNTP-Posting-Host: aasz84.neoplus.adsl.tpnet.pl
X-Trace: nemesis.news.tpi.pl 1171567747 8549 83.5.237.84 (15 Feb 2007 19:29:07 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 15 Feb 2007 19:29:07 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit