Topic: SV - Added Main Image Link w/ additional XML, need hover effect

Hello,


I used a tutorial to add a image link to the simpleviewer gallery and additional xml stuff

using this:
www.ajmconsults.com/Latest-News/Hyper-Linking-Main-Gallery-Images-in-SimpleViewer-Pro.html

the original structure:
<image>
<filename></filename>
<caption></caption>
<image>

becomes:
<image>
<filename></filename>
<caption></caption>
<link></link>
<image>

this works great, however, I need to add some kind of hover or mouseover effect so the user knows the main image is a link.

something like:
- border on mouseover
- change mouse "arrow" to "pointer"
- pop-up text that says "buy this image"

any help would be appreciated.

If this is something you'd like to be paid for, please get in contact with me

thank you

Re: SV - Added Main Image Link w/ additional XML, need hover effect

You can just add .useHandCursor = true; to which ever movie clip you would like to use the hand cursor.

yourMovieClip.useHandCursor = true;

Mike Richards
SimpleViewer Support Team.

Re: SV - Added Main Image Link w/ additional XML, need hover effect

miker wrote:

You can just add .useHandCursor = true; to which ever movie clip you would like to use the hand cursor.

yourMovieClip.useHandCursor = true;



would that go in the actionscript?
- which AS file?
- recompile the flash after ,etc ?


or the js that loads the movie?


im not very knowledgable on flash stuff







I tried to add it to the actionscript files... but get an error when publishing


ImageClickArea.useHandCursor = true;

"There is no property with the name 'usehandcursor'


mImageClickArea.useHandCursor = true;

"There is no property with the name 'usehandcursor'


neither of the above seem to work... probably a placement issue?

not sure wher/ or which fiels to edit

Last edited by enlightenmental (2009-10-06 16:27:10)

Re: SV - Added Main Image Link w/ additional XML, need hover effect

Sorry thought you might have an idea if you were able to follow the tutorial. Thinking about it I get a different cursor when I mouse over my image after changing my image to be a button, but don't remember if I added anything.

The simplest way to do it maybe to change RolloverButton.as line 42 mClip_mc.useHandCursor = flase; to true. This will give you a hand cursor over any of the buttons. If you don't like how this looks there are some other ways to do it but it maybe a little more difficult.

recompile the flash after ,etc ?

You always need to republish your swf after making changes to the fla or as files.

Mike Richards
SimpleViewer Support Team.

Re: SV - Added Main Image Link w/ additional XML, need hover effect

Cool, thank you

that added the "hand" cursor to the main image and nav buttons...

got anything more advanced I could try?

I was wondering If I could "hook" into any of the existing rollover effect... the thumbnails for example....

im guessing having any kind of "text" pop-up will require a new movieclip or button, etc..


either way, thank you

Re: SV - Added Main Image Link w/ additional XML, need hover effect

I have tried this and the cursor doesn't change when I mouse over the thumbnails
does .useHandCursor control the thumbnails also?