dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Music-PLEASE HELP-

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    2

    Music-PLEASE HELP-

    PLEASE HELP

    I am making a flash game and I noticed I dont want to put 458 frames for my main menu music to play. Is there a way to put a music item to play itself fully through 1 frame and still loop when its done?

    thx,
    Imagepixel

  2. #2
    Programmer
    Join Date
    Aug 2007
    Posts
    173
    yes,

    just import your mp3 and select a single keyframe , go to property's , select your sound and then on the option "sync" set to loop

    so:

    import sound > select keyframe > open property's > select sound > set "sync" to 'loop';

    ---
    when moving away from the frame with the sound, use:

    Code:
    stopAllSounds()
    ----

    this is the simplest way to do it id imagine, however i don't know how buggy it will be.

    i personally would use Actionscript to load the MP3 via a linkage in the library.

    if you have any problems using this method. ill post an Actionscript method and example.

    goodluck
    Freelance: AS2, AS3, PHP, MySQL, JavaScript
    Skype: hunty93

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