The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 11 of 11

Thread: How do i put music on my flash layout...?

  1. #1

    How do i put music on my flash layout...?

    hi i am doing a web site layout in flash mx and i want to put a thing where u can play music in the bg, when u load the flash file it automaticly starts and u can choose to turn it of or on by clicking on some text...does anyone know how to fo this? if so please reply!

  2. #2
    yep, give the zipped fla and sound

  3. #3
    cant u tell me how to do it here?

  4. #4
    ello,

    well there are two ways you can do what you want:

    1. Easier but less control : Make a movieClip and drop the soundfile in the first frame of the movieClip (or use the properties panel for the first frame). Add a stop action (stop() to the first frame. Then make a keyframe (in the second frame). Add a stopAllSounds (stopAllSounds() action to this second frame. After that add a stop action to the second frame. So now you have one frame with a sound file playing and a second frame with a stopAllSounds action (which of course stops the sound from playing... but also stops all other playing sounds). Now drag and drop the movieClip onto the main Scene. Name the movieClip something (like "music" or something). You do this using the properties panel. The sound should start playing as soon as the movie hits the frame in which you put the movieClip (judging by what you said, this should be frame 1).
    You can stop the music by just making a button (outside of the movieClip) and adding the following code to it :

    Code:
    on (release){
    
    _root.name_of_Movie_Clip.gotoAndPlay(2);
    
    }
    To play the music again you can duplicate the button and change the code to read:

    Code:
    on (release){
    
    _root.name_of_Movie_Clip.gotoAndPlay(1);
    
    }
    Well there's the easy way. Now you cant control volume, or panning or pausing etc. The "harder" method lets you do this. Please reply if you need volume and stuff too.. Cause I dont wanna explain the whole thing here if not needed.

    Hope I helped.

    -Aditya

  5. #5
    im gettin confused here...:S cud u make a .fla file for me and i just edit it...or.... u cud tell me in an easyer way i am a beginner at flash but i know some of the basics...i have a pic of text that says On and i selected it and gone to libary and dragged the sound file over to that now what do i do?

  6. #6
    oki I will make a fla.. give me two min..

    -Aditya
    sorry I confused you =D

  7. #7
    ok...thanks but how ill u send it me?

  8. #8
    Oki.. me all done

    Some of my instructions or tips are in the actions panel so keep that open..

    Fla : http://simvision.sytes.net/Random/bu...stop_music.fla

    well hope thats what u need

    -Aditya

  9. #9
    thanks dude u rule do u have msn messenger

  10. #10
    ive put it into my .fla layout and when i change it to my music it doesnt play in the preview but only when i change it to "start" but when i click the button it doesnt stop what shall i do?its current;y on "stream"but it doesnt play
    Last edited by dangeta; July 5th, 2003 at 05:47 PM.

  11. #11
    why dont you IM me..

    my messenger is adityagaddam@hotmail.com

    -Aditya
    I didn't get that last post.. of your..confusing...

Thread Information

Users Browsing this Thread

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

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012