A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: onClipEvent(enterFrame) and Streaming Sound Issues

  1. #1
    Member
    Join Date
    Dec 2001
    Posts
    86

    onClipEvent(enterFrame) and Streaming Sound Issues

    Hey All,

    I'm having a problem with streaming sound. I have a movieclip on the main stage, which contains roughly a 60-second presentation with various streaming sound elements to it. I call for the movieClip to start playing via:

    onClipEvent(enterFrame) {
    play();
    }

    (The above is attached to the instance of the movie). This causes the sound to skip repeatedly. It sounds like this is because the sounds trying to play every "x" frames because of the onClipEvent(enterFrame). However I don't know how else to start this movie playing, from outside of it (on the main stage).

    Does that make sense? Any suggestions that might help would be greatly appreciated.

    Thanks.

  2. #2
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    Unless the movieclip has a stop() action on it's first frame, you shouldn't need any code at all to play the movieclip - it should play when the main timeline reaches the frame containing the movieclip...

    If you do need to use code to trigger it, use onClipEvent(load) rather than enterFrame...

    K.

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