dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: OnSoundComplete

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    22

    OnSoundComplete

    What can you tell me about OnSoundComplete? I'm creating a basic presentation and I have to add frames until the sound has stopped to synch it up right. WHAT A PAIN!

    Any help would be greatly appreciated.

  2. #2
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi

    Try using it like this, from the reference.
    Code:
    s = new Sound();
    s.attachSound("mySound");
    s.onSoundComplete = function() { trace("mySound completed"); };
    s.start();

    You create a function which executes when the sound finishes
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

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