Old 02-03-2009, 04:45 AM   #1 (permalink)
Junior Member
 
Join Date: Feb 2009
Posts: 1
Default Different Image on rollover ?

Hi there, thanks for your great flash resources I have purchased several bits of your work. Excellent stuff. Thank you.

I have a question. I am trying to get the dock to show a 2nd image on rollover.

I've been looking through the action script and found the below code which I think handles the alpha level on rollover.

Code:
Img.onRollOver = function(){
			
			this._parent.swapDepths(1000);
			this._parent["myImage2"]._alpha=100;
			
			if (this._parent.node.attributes.title != undefined)
				Tooltip.show({tip:this._parent.node.attributes.title, delay:.2, stay:5, follow:true});
			
				
			}
What do I need to add/change in order to get a 2nd image as a rollover ?

I presume that I will also have to define the 2nd image somewhere earlier in the as.

A simple naming convention like 01.png and 01b.png would be great.

Any help much appreciated.

Thanks. Gunz.

Last edited by Gunz; 02-03-2009 at 04:47 AM.
Gunz is offline   Reply With Quote
Old 02-10-2009, 08:17 AM   #2 (permalink)
OXYLUS Staff
 
Razvan's Avatar
 
Join Date: May 2008
Posts: 1,266
Send a message via Skype™ to Razvan
Default

That function handles the glow applied over the image. To load another image there I will have to make some serious modifications. For custom work contact me at razvan@oxylus.ro
Razvan is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:51 PM.