Topic: Need to use mIndex variable in the FLA

Hi,

Great product btw!

I need to use the mIndex [image number] variable or another variable that would do the same job in the FLA.

I'm creating a gallery that has a separate mp3 file for each image [for an art exhibition].

My AS skills are mediocre at best, any help would be appreciated.

cheers

-ab

Re: Need to use mIndex variable in the FLA

Never mind, figured it out on my own.

For other people's reference, I created a variable on the first frame of the fla (trackIndex) and have the function showImage [in Image.as] update it with the correct value. Note the last line:

function showImage(){
        resizeImage();
        mClip_mc._visible = true;    
        //bring to top
        mClip_mc.swapDepths(999999);
        
        //wait imageFadeLength frames to fade up
        mFadeTween.continueTo(0,1);
        mFadeTween.fforward();
        mFadeTween.continueTo(0,Options.imageFadeLength);
        mFadeTween.onMotionFinished = Delegate.create(this,onFadeWaitDone);        
        _root.trackIndex = mIndex;
    }