A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Need Urgent Help

Threaded View

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    6

    Need Urgent Help

    Action Script 2.

    I have a count function that counts how many times the buttons in my scene are clicked.

    It counts upwards on each mouse click:

    _root.count+=1

    I know this is working because a trace(_root.count) shows appropriately.

    When count == 6, I need to trigger a sound. My code is as follows;

    onClipEvent(mouseDown)
    if (_root.count==6) {
    snd=new Sound();
    snd.attachSound("click");
    snd.start();
    }
    }


    The problem is, it's not triggering the sound as expected, even though the _root.count trace is showing 6.

    I am in desparate need of a solution. Please help!
    Last edited by foreverdita; 11-07-2009 at 11:34 PM.

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