#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    6
    Rep Power
    0

    syncronizing mc's to the sound


    I'm stuck.

    How do I trigger the appearance of my mc's to the mc.position of a dynamically loaded mp3 sound object. I've already determine each position in seconds, but the coding necessary to trigger the appearance in sync on stage with the sound object is beyond me.

    Help.
  2. #2
  3. No Profile Picture
    flash junkie
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Location
    CO, USA
    Posts
    172
    Rep Power
    12
    well, probably the easiest way to do it is to just set up an onEnterFrame function, looking at the position of the sound.:

    PHP Code:
    this.onEnterFrame = function(){
        if(
    mySound.position>2000){
            
    //play one movieclip
        
    }
        if(
    mySound.position>5000){
            
    //play another movieclip
        
    }
        
    mySound.onSoundComplete = function(){
            
    delete this.onEnterFrame;
        }

    it would take up some resources with the onEnterFrame... but it's probably the easiest method.

    cheers,

    bret

IMN logo majestic logo threadwatch logo seochat tools logo