Hi!
I'm new here and I wrote a unsolvable problem:
I invite the following script with an mp3 sound file.
var lautstaerke:Number = 0;
meinsound = new Sound();
this.meinsound.loadSound("sound.mp3",false);
this.meinsound.onLoad = function(){
this.stop(0,99);
};
this.onEnterFrame = function() {
lautstaerke = this.zeile.regler._x;
this.meinsound.setVolume(lautstaerke);
};
this.pause_mc.onRelease =function(){
this._pare not.meinsound.start(pos);
this._pare not.start_mc.swapDepths(this);
};
this.start_mc.onRelease =function(){
this._pare not.meinsound.stop();
pos = Math.round(this._pare not.meinsound.position/1000);
this._pare not.pause_mc.swapDepths(this);
};
-
- var lautstaerke:Number = 0;
-
-
- meinsound = new Sound();
- this.meinsound.loadSound("sound.mp3",false);
- this.meinsound.onLoad = function(){
- this.stop(0,99);
- };
-
- this.onEnterFrame = function() {
- lautstaerke = this.zeile.regler._x;
- this.meinsound.setVolume(lautstaerke);
- };
-
- this.pause_mc.onRelease =function(){
- this._pare not.meinsound.start(pos);
- this._pare not.start_mc.swapDepths(this);
- };
-
- this.start_mc.onRelease =function(){
- this._pare not.meinsound.stop();
- pos = Math.round(this._pare not.meinsound.position/1000);
-
- this._pare not.pause_mc.swapDepths(this);
- };
-
-
Everything works great, unfortunately the sound file is running twice as fast as it should, sounds like a chipmunk. Other sounds to sound normal, only that matter is too fast.
anyone here has any idea why this is? Can someone help me? That would be super!
Thanks in advance! I'm desperate....