onPress for sound help 2004-02-27 - By Richard Carr
Back I thought this would be simple, but I can't get it to work.
On stage 4 instances of holder_mc which contains an mc named mp3_sound.
Adding an onPress function doesn't work ( it works prior to adding) and I know it is a path problem , as the alpha isn't working either, but I can't figure it out.
Thanks! Richard
stop();
myData = new LoadVars()
myData.load("artist.php")
myData.ref = this
myData.onLoad = function(succes){ if(succes){ for(var i=0; i<this.cant; i++){ this.ref["Title_txt"+i].htmlText = "<b>"+this["Title"+i]+"</b>"
this.ref["Comments_txt"+i].text = this["Comments"+i]
this.ref["holder_mc"+i].onPress = function() {//added stopAllSounds(); this.ref["holder_mc"+i].mp3_sound = new Sound(this.ref["holder_mc"+i]);
this.ref["holder_mc"+i].mp3_sound.loadSound(this["Sound"+i], true); this.ref["holder_mc"+i]._alpha=50; }; } } else trace("Error loading data" ) };
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|