Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : MouseOver Swap Instance - HELP!



cuttie
4/8/2004 8:52:15 PM
Hi there

I have what I hope will be a pretty straightforward query you might be able to
help me out with.

I have an button. I want the button to perform a 'SwapImage' kind of function
(Dreamweaver users will know what I mean) to a seperate instance when rollover
occurs, then back to original state on mouseOut.

To clarify, its probably best you look at my URL - [L=click here for the
site]http://www.mediajustice.co.uk[/L]

Go to the 'Our Work' section. You will see some tiny icons. When you click on
them they load a seperate .swf, but what i want them to do in addition is to
replace the instance that is currently the 'About Us' text with a different
batch of text, or another instance, so that the viewer has more info before
even clicking the icon.

Hopefully that makes sense, I would really appreciate some help as I have
scoured the 'net and can't find any reference to what I want to do here.

Thanks in advance

Cuttie
loudmouth72
4/8/2004 9:09:32 PM
First of all your stuff looks great!

Are you a dynamic Text box?

yourButton.onRollOver = function(){
Path.textfield.text = "DescriptionOfSite and anything else you want to
put";
}
I would think that you would not need a onRollOut because people will be
rolling over many buttons.

this is a solution, maybe not the best, but it will work.

loudmouth72
cuttie
4/8/2004 9:15:17 PM
thanks for the kind words!

the text is an instance (graphic at moment but can change to movie clip if
actionscript requires)

the reason it needs to stay as an instance is that the instance that will
replace the original one will include a thumbnail image as well as the text.

hopefully that might help you in the solution. i just cant seem to find the
answer!
cuttie
4/12/2004 11:54:27 AM
Hi

just to put this message back to the top to see if anyone can help?!

thanks in advance

AddThis Social Bookmark Button