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

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

    Default Embedding Sound in Title Page

    I've scoured the interwebs for days now looking for a solution or tutorial to my problem with no avail, so I turn here. I'm using Flash CS3 and AS3.

    I'm currently working on creating an animated version of a webcomic that I create (it will basically look like intro animations from an old SNES game). I've currently got the PLAY button scripted to begin the comic upon clicking, but I'm having some sound issues. I wanted a background song to play during the Title Screen and stop once the PLAY button is pressed, as other background music would begin (ideally). My script currently looks like:

    Code:
    stop();
    function set_quality_low(evt:MouseEvent): void { stage.quality = StageQuality.LOW; }
    Play_btn.addEventListener(MouseEvent.MOUSE_UP, set_quality_low);
    Play_btn.addEventListener(MouseEvent.MOUSE_UP,
    						 function(evt:MouseEvent): void {
    							 gotoAndPlay(2); } );
    
    var sound:Sound = new Sound(new URLRequest("/Users/Coby/SMAS/Music/WAV Files/MP3/SilverAgeofPeace.aif"));
    var sc:SoundChannel = sound.play();
    
    Play_btn.addEventListener(MouseEvent.MOUSE_UP, stopMusic);
    
    function stopMusic(evt:Event):void 
    {
    	sc.stop(); 
    	}
    The problem I'm having now is that the sound is not auto-playing like it should. Any ideas why this might be happening or how I might resolve this?
    Last edited by CobeSlice; 06-16-2011 at 12:44 AM.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     

Thread Information

Users Browsing this Thread

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

     

Tags for this Thread

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