A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: song loop

  1. #1
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474

    song loop

    i made a button that plays a song, i cllicked the loop button for the song. its not looping...please help
    BC

  2. #2
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474
    wait i kinda found out why it wassnt doing it. so now my question is: is there a way to say if song is done then song.start()? ive tried simple ones but they didnt work
    BC

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    if you load the song via the loadSound function then you have the properties .duration and .position and when they are the same viloa then end.

  4. #4
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474
    uhh, wat? sorry im new to sound functions.
    BC

  5. #5
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    example
    Attached Files Attached Files

  6. #6
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474
    thanks but it doesnt wokr when exported, any other ideas?
    BC

  7. #7
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474
    nevermind, i fixed it, thanks btw!!
    BC

  8. #8
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    just guessing that you tried it with the filename that I had used?

  9. #9
    Senior Member
    Join Date
    Jan 2003
    Posts
    169
    That's user error at it's finest if Bret's right. LOL

    Bottom Line: Always check everything when dealing with code.
    Jeffrey Davis (3DFA user since 2.x... or was it 3.x?) (Yes, I finally reveal the offline identity of JSDvs9172, being myself of course. Oh, and sorry for stealing your signature idea, blanius, which I see you stopped using.)

  10. #10
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474
    haha, no im not that stupid. Its a long story how i messed up, it was mostly cause the preview window always lies.
    BC

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