PDA

View Full Version : Help - synchronize sound - FMX



liquivision
June 3rd, 2003, 02:44 PM
Hello,

I am trying to synchronize animation(movieclip) with a specific time in second with a sound object. I have defined my sound object in my _root level.

// action script for sound object
sound1 = new Sound(this);
sound1.attachSound("linkagename");


// action script for MC animation to begin once 10 second passed from sound object
this.onEnterFrame = function () {
if (sound1.position/1000 >= 10) {
animation.gotoAndPlay("start")
}
}


I can't seem to get this code to start my MC.

Can anyone help?

Thanks