dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Sound Play Script

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    2

    Sound Play Script

    can someone help me make it so that this script only plays once on the frame that the "if" statement becomes "true"??

    Code:
    //Death Routine
    if(hp < 1) {
    element ("death").play()
    }

  2. #2
    Senior Member SirN's Avatar
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    142
    are you forgetting ; after .play? remember the semicolon after commands in scripts!
    http://www.sdax.se Chess, Trotting and Blog

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