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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rollover btn, other symbol Changes

Status
Not open for further replies.

GeeWond3r

IS-IT--Management
Sep 5, 2003
65
US
This might be easy one here, but go easy on a newbie!
I've created button symbols and I've created a laptop symbol. My aim is to change the laptop screen image via which button is hovered/mouseovered. aNy suggestions?
 
Here are two ways to do this...

1) you should create two separate pictures- one for your "up" and one for your "over." Create a blank keyframe in the "up" frame and place the first image in there. Then create a blank keyframe in the "over" frame and put the second image in it.

2) make two layers. in the "up" frame of Layer1, insert a blank keyframe and then insert your image (of the full laptop), and in the last 3 layers, just insert frames (so that the image will show up in all states). In Layer2 (which should be on "top" or above your Layer1), make a blank keyframe in the "up" frame. Make another blank keyframe in the "over" frame and insert an image of the changing screen only (the image will have to use transparency), lining it up to match Layer1.

either way you'll get the same results.
 
That's the task i'm trying to avoid.. whereas i've to repeatedly perform the same process for more than 1 buttons & that wud be a nuisance. Is there a way of doing this w/ actionscript via objects (which i am unfamiliar with at the current moment)? I'm thinking something like if a button is on(rollover or something), then laptopOBJ.gotoAndStop(this frame or that frame).
 
If you have your animation in a seperate movie clip, you could have this on your button:

on(rollOver)(
_root.laptopMC.gotoAndPlay(2)//if frame 2
} //starts the animation

just another idea.

Adam
 
That's right... the _root namespace was what i was missing. thanx Adam14!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top