开发者

AS2 -problems with loaded object

I have a loder that loades swf that plays on enterFrame event .

I want the sound from the loaded swf will start on RollOver event , and not开发者_如何学运维 at the moment when the obhect is loaded.


Did you try simply create an rollOver event, and move there your code that start sound? I would suggest also create some flag which you will set in loader, this way you will know if the sound is already available or not

some_object.onRollOver = function() {
  if(sound_available == true){
    //your play sound code here
  }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜