/ Published in: ActionScript
Mauro
Expand |
Embed | Plain Text
var miSonido:Sound; var sndObj:Object; miSonido= new Sound(sndObj); onEnterFrame = mx.utils.Delegate.create(this,checkProgress); miSonido.onLoad = mx.utils.Delegate.create(this,onLoadInitSound); mySound.loadSound("elMp3.mp3"); function checkProgress():Void{ if(miSonido.position != miSonido.duration){ trace("La musica se esta escuchando"); }; }; function onLoadInitSound(success:Boolean){ trace("la musica empezo"); miSonido.start(); };
You need to login to post a comment.
