Sound load with AS - mp3 runs too fast - Hilfeeee!

  • McKay
  • Born
  • Born
  • No Avatar
  • Joined: Jun 18, 2009
  • Posts: 1
  • Status: Offline

Post June 18th, 2009, 3:04 pm

Hi!
I'm new here and I wrote a unsolvable problem:

I invite the following script with an mp3 sound file.
Code: [ Select ]
 
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);
    };
 
 
  1.  
  2. var lautstaerke:Number = 0;
  3.  
  4.  
  5. meinsound = new Sound();
  6. this.meinsound.loadSound("sound.mp3",false);
  7. this.meinsound.onLoad = function(){
  8.     this.stop(0,99);
  9. };
  10.  
  11. this.onEnterFrame = function() {
  12. lautstaerke = this.zeile.regler._x;
  13. this.meinsound.setVolume(lautstaerke);
  14. };
  15.  
  16. this.pause_mc.onRelease =function(){
  17.     this._pare not.meinsound.start(pos);
  18.     this._pare not.start_mc.swapDepths(this);
  19.     };
  20.  
  21. this.start_mc.onRelease =function(){
  22.     this._pare not.meinsound.stop();
  23.     pos = Math.round(this._pare not.meinsound.position/1000);
  24.    
  25.     this._pare not.pause_mc.swapDepths(this);
  26.     };
  27.  
  28.  



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....
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 18th, 2009, 3:04 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post June 18th, 2009, 3:13 pm

does playing another mp3 with the same code produce the same issue?
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 61 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.