PDA

View Full Version : Changing a image objects filename when mouse is over a button


abcnormal
12-24-2005, 07:16 PM
Hi,
I have tried to change the image objects filename for a while now, and I am not able to do so successfully.

I use the following code in the buttons On Enter event:

pic="AutoPlay\Images\raketter.png";
Image.Load("productImage",pic);

I have a image object on the page called productImage
This is set to "AutoPlay\Images\blank.png" at default, meaning this is the image that apears when a user goes into the page.

Is the Image.Load function just loading, without displaying the image on the page, or is it not ment for that at all??

Confused.

Corey
12-24-2005, 07:19 PM
Hi, in AMS you have to escape slashes in paths. Try this:

pic="AutoPlay\\Images\\raketter.png";

:yes

abcnormal
12-24-2005, 07:34 PM
Thanks, that solved it.

Thanks for great and FAST feedback.

I've had to problems so far. Both of them solved in this forum, not long after by other members of the forum.

Thanks to you all. Some day, I will be good enough in this program to be able to help others. Then I will. (Second day I own this software now :))

Intrigued
12-24-2005, 08:09 PM
@abcnormal

I know the feeling. It started pretty much from the beginning (wanting to help others with AMS concerns). Hopefully that's seen as a positive reflection upon my character, as well as yours.

:yes

Corey
12-24-2005, 08:13 PM
You're nothing if not a positive character Intrigued. :)

Every single person here started from zero at some point. AMS is totally worthwhile to learn though, it's astounding the sort of stuff you can do with it. I've even released freeware which was built with it:

http://www.download.com/Interval-Trainer-For-Guitar/3000-2133-10445742.html?part=dl-IntervalT&subj=dl&tag=button

:yes

azmanar
12-25-2005, 12:41 AM
You're nothing if not a positive character Intrigued. :)

I've even released freeware which was built with it:

http://www.download.com/Interval-Trainer-For-Guitar/3000-2133-10445742.html?part=dl-IntervalT&subj=dl&tag=button

:yes

BRAVO !!!!!!!!!

Intrigued
12-25-2005, 12:27 PM
Thanks Corey... hey, over 1000 downloads too! It's really picking up steam over there at it's new home of download.com. Congratulations!