Topic: thumbnail alpha for a glowing effect?

Hello again!
So far I'm 0/3 in answered (acknowledged?) posts. Maybe I'm asking the wrong questions?  wink

On to a new one, then!

Is it possible to modify the alpha of the thumbnail images so that the normal state is at 50% and the hover/click state is at 100%?

Thanks again!
Joshua

Re: thumbnail alpha for a glowing effect?

hello again!
been trying, searching the forums, to no avail! can anyone help??

Re: thumbnail alpha for a glowing effect?

hello again!!
is anyone out there??? lol

so in thumb.as line 203-244 you can modify the thumbnail alpha like so, paying special attention to the modification of line 208:

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._alpha = 50;
        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;    
        mClip_mc._alpha = 100;
    }
    
    private function onRollOver(){
        if (mSelected ) return;            
        mFrameTwn.continueTo(Options.thumbnailRollOverFrameWidth,sFrameTweenLen);    
        mClip_mc._alpha = 100;
    }
    
    private function onRollOut(){
        if (mSelected ) return;
        mFrameTwn.continueTo(Options.thumbnailFrameWidth,sFrameTweenLen);    
        mClip_mc._alpha = 50;
    }
    
    private function onDragOut(){
        if (mSelected ) return;
        onRollOut();
        onRelease();    
    }

the only problem is that when i select another thumbnail, the previously selected thumbnail remains at 100% alpha. i've tried diff combinations with onRelease, etc. but nothing seems to work.

my goal is to have the thumbnails load at 50%alpha, when i rollover them they go to 100%alpha,when i rollout from them they are 50%alpha, when i click them they are 100% alpha, but when i select another thumbnail the previously selected thumbnail returns to 50% alpha.

is there any way to accomplish this? is there anybody here that can help??
maybe even just point me in the right direction? maybe just acknowledge me???

Re: thumbnail alpha for a glowing effect?

Acknowledged.

I don't have an answer.

You can assume the following:

No-one is reading your questions. (unlikely)

The one person who knows the answer hasn't read your question. (possible)

You're the only person who has asked this question and once you have figured it out will be the only person who knows the answer. (also possible).

Good Luck

SimpleViewer is free. Don't have too high expectations.

Regards
Phil
http://www.phillipnorman.com

Re: thumbnail alpha for a glowing effect?

Hi,

you are on the right track, but you need to use the select() and unselect() functions to set the alpha of the thumbnail when the thumb is selected or unselected.

Felix Turner
SimpleViewer Support Team.

Re: thumbnail alpha for a glowing effect?

this is exactly what i am looking for.. was this ever resolved?