Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

graphic to appear on sprite mouse over

Status
Not open for further replies.

jamieshields

Technical User
Nov 1, 2002
3
GB
Hi there,

I'm brand new to Director and have a fairly simple question to ask, I think.

I've quickly picked up most of the basics and I'm currently working on an electronic Resume. I've a section with a band of small sprites(thumbnails) scrolling across the stage. I want to be able to click on the sprites (Individually) and for a larger image of the thumbnail to appear in a different section of the stage.

I've also been trying a similar thing with a rollover button. I wanted a graphic to appear when the mouse rolls over a button. again seperate from the button and in a diffent location on the stage.

I hope I've explained this well.

I'm sure that this must be a relatively easy thing to do but I cant figure it out.

Any help would be greatly appreciated. Thanks
 
Simple. Make a blank cast member then place it in the coordinates that you want it to appear on the stage. Then for your mouseOver behavoir:

on mouseWithin
sprite(x).member=member("Y")
end

on mouseLeave
sprite(x).member=member("blank")
end

where x is the sprite number of yuor image rollover and Y is the name of the image that appears.

Place this behavoir on your sprite that you want to activate the rollover.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top