On rollover --> display an image on screen?

I usejd the search function but couldn’t come up with anything… maybe i worded it wrong.

Anyway, I was wondering if there’s an easy way to have an image pop-up on the screen when a button is rolled over. I have a dynamic text box that uses external text files, and instead of putting the image in a separate frame or scene, I want it to appear while preserving the text in the box. Right now, I have the most recent blog entry load into the box initially, but if I put the image in another frame and use the goto command on the rollover, I’d have to set it to go back to the initial frame on rollout. This would mean that regardless of which entry the person is reading, it will reload the most recent entry into the text box. So, is there any way that i can have this image pop up without having to switch between frames?

Thanks!

i think i get the gist of your question…

if you need to have something (picture, whatever) appear on a rollover and you don’t want it on the main timeline just create another timeline for the picture to exist on. You can do this by creating movie clip with the picture inside of it. put a stop action on the first frame of the movieclip, that way the picture only shows when you call the frame the picture’s on (frame 2 or even better give it a label).

then you can call it for your button rollover state with actionscript like this:

on (rollOver) {_root.mymovieclip.gotoAndPlay("pictureappears");}

you need to reference the movie clip with your picture in it according to it’s level. in this case it’s existing at the root level and is named “mymovieclip”. “pictureappears” would be the frame label your picture is on. this code would go on your button.

hope that helps…

Hmm… how do i know which level to put it on? I’ve done everything but it doesn’t work, so I’m assuming it has something to do with the level.

where is your button? on the root timeline or inside a movie clip or what?
make a movie clip on the same level as your button.
by level i mean relationship to _root, not a layer…

yeah, i got a symbol behaving as a button on the main timeline, and a movie clip with an image inside in another layer on the main timeline.

Hi, here’s an example being discussed here. Very simple.

takecare

how do you come up with the name of your movie clip (myMC, in this case)? I mean, where is it defined? My movie is basically the exact same as yours, so i’m guessing that’s the problem

oh wait, i figured it out. sweeeeet. thanks!

i just made up the instance name of “myMC”. It’s typed into the instance name of the little, white circle in the properties panel.

edit: your welcome. :slight_smile: