Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

+ Reply to Thread
Results 1 to 2 of 2
  1. #1

    Default Volume slider won't work since i changed audio to streaming

    it worked fine when i had the audio within the swf.
    slider:

    slider_1.onPress = function(){
    this.startDrag(true, groove_1._x -8, groove_1._y, groove_1._x -78, groove_1._y);
    }
    slider_1.onRelease = function(){
    this.stopDrag();
    }
    stop_btn.onRelease = function(){
    stopAllSounds();
    }
    slider_1.onMouseMove = function(){
    newPoint = new Object();
    newPoint.x = this._x
    newPoint.y = this._y
    groove_1.globalToLocal(newPoint);
    foffMusic.setVolume(-1*newPoint.x);
    }

    i understand that the sound object i created before was called foffMusic but now i've changed to this script to stream instead of attachSound

    on(release){
    stopAllSounds();

    //Load Streaming mp3 behavior
    if(_global.Behaviors == null)_global.Behaviors = {};
    if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
    if(typeof this.createEmptyMovieClip == 'undefined'){
    this._parent.createEmptyMovieClip('BS_ftomm',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
    _global.Behaviors.Sound.foffMusic = new Sound(this._parent.BS_ftomm);
    } else {
    this.createEmptyMovieClip('_ftomm_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
    _global.Behaviors.Sound.foffMusic = new Sound(this.BS_ftomm);
    }
    _global.Behaviors.Sound.foffMusic.loadSound("-wont let me post url!!-ftomm.mp3",true);

    // Play Sound Behavior
    _global.Behaviors.Sound.foffMusic.start(0,1);
    // End Play Sound Behavior
    }

    i thought that in this method i had named the sound object foffMusic (streaming the file ftomm.mp3). the sound plays fine but ive gone through alot of trial and error and trawled every forum for the solution bu i can't get it to work!
    can anybody help?
    thanks, Luke

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default Re:

    I like to listen music in cellphone when I'm in office. When I'm in home, I used to listen music in my amplifier sound system.


    _______________
    p.s. Check out my royalty free music

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial