A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] Pause Music Located in an External SWF

  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    57

    resolved [RESOLVED] Pause Music Located in an External SWF

    Ok, I have a site that loads an external mp3 player. Now I want to pause the sound when the "video" button is pressed. In the mqin swf file, there is a movie clip called "MP3_Player", in that clip is the loaded mp3 player. I used this method to call the mp3 swf file.

    Code:
    this.createEmptyMovieClip("image", this.getNextHighestDepth());
    image.loadMovie("mp3.swf");
    image._x = 0;
    image._y = 0;
    This code pauses the music.

    Code:
    playbtn.icon.gotoAndStop(1);
    playbtn.sound.stop();
    playing = false;
    Now what path/s do apply to the button in the main swf file to get the music to pause.

    Thank you in advance.

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    The mp3.swf contains the music you want to pause? Why aren't you load the MP3 file directly?
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  3. #3
    I know nothing.
    Join Date
    Feb 2008
    Posts
    315
    This is a bit confusing... could you post your FLA?

Tags for this Thread

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