Topic: [SOLVED] Change Thumbnails from onClick to onRollOver

I have limited actionscript knowledge, but have a client requesting the thumbnails rollover instead of click (very specific about it too). I think I might have found the actionscript that controls this in the "Thumb.as" file on line 206 (see below) but am unsure how to change this to rollover.

    private function enableMouseActions(){
        mClip_mc.onRelease = Delegate.create(this,onRelease);
        mClip_mc.onPress = Delegate.create(this,onPress);
        mClip_mc.onRollOver = Delegate.create(this,onRollOver);
        mClip_mc.onRollOut = Delegate.create(this,onRollOut);    
        mClip_mc.onDragOut = Delegate.create(this,onDragOut);
        mClip_mc.useHandCursor = false;    
    }
        
    private function onRelease(){
        if (mSelected ) return;
        mBase_mc._x -= Options.thumbnailClickShift;
        mBase_mc._y -= Options.thumbnailClickShift;
        mThumbArea.selectedThumbIndex =  mIndex;
                    
    }
    
    private function onPress(){
        if (mSelected ) return;
        mBase_mc._x += Options.thumbnailClickShift;
        mBase_mc._y += Options.thumbnailClickShift;                    
    }
    
    private function onRollOver(){
        if (mSelected ) return;            
        mFrameTwn.continueTo(Options.thumbnailRollOverFrameWidth,sFrameTweenLen);
        if (Options.showCaptionOnRollover) mStageManager.showCaption(mIndex);
    }
    
    private function onRollOut(){
        if (mSelected ) return;
        mFrameTwn.continueTo(Options.thumbnailFrameWidth,sFrameTweenLen);
        if (Options.showCaptionOnRollover) mStageManager.showCaption(mImageArea.currentImageIndex);
    }
    
    private function onDragOut(){
        if (mSelected ) return;
        onRollOut();
        onRelease();                
    }

I have tried a couple things without success, maybe someone here would have a better idea of how to accomplish this. Thanks

EDIT: Solved, I guess I just needed to play around with the code a little bit more. Example follows:


    private function enableMouseActions(){
        mClip_mc.onRollOver = Delegate.create(this,onRelease);    
        mClip_mc.onDragOut = Delegate.create(this,onDragOut);
        mClip_mc.useHandCursor = false;    
    }

EDIT 2: Also to make sure the thumbnails don't move to the top-left I commented out this:


    private function onRelease(){
        if (mSelected ) return;
//        mBase_mc._x -= Options.thumbnailClickShift;
//        mBase_mc._y -= Options.thumbnailClickShift;
        mThumbArea.selectedThumbIndex =  mIndex;
                    
    }

2

Re: [SOLVED] Change Thumbnails from onClick to onRollOver

DELETED