A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] crazy music button

  1. #1
    flash animator guy
    Join Date
    Oct 2006
    Location
    Daly City
    Posts
    219

    [F8] crazy music button

    I have a MC "button" that loads an external mp3

    the external mp3 is called "block_party.mp3"
    the button instance is "song1".

    can any one tell me why this doesn't work. My code is as follows:

    __root.song1.onRelease = function() {
    this.createEmptyMovieClip ("song1", this.getNextHighestDepth());
    var song1:Sound = new Sound (mcSong1);
    song1.loadSound("block_party.mp3", flase);
    song1.onLoad = function (bSuccess:Boolean):Void {
    if(bSuccess) {
    this.start();
    };
    };
    var nInterval:Number = setInterval (checkProgress, 500);
    function checkProgress():void {
    }
    }


    Thanks.

    RSB
    Last edited by belotte; 04-10-2007 at 03:41 AM.

  2. #2
    Senior Member
    Join Date
    Feb 2004
    Posts
    312
    not sure might it be cause you'r creating a movie clip type called song1 and at the same time and level creating a sound type of song1?
    what kind of an error are you getting?

  3. #3
    flash animator guy
    Join Date
    Oct 2006
    Location
    Daly City
    Posts
    219
    Thanks for pointing that out. I'm not sure if that's the problem or not, but I'll try that. I also found a typo.

    Thanks for the input!!!

    RSB

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center