I am new to AS3 and building a simple flash banner. There will be four movie
clips consisting of just one word each (in the sample below I'm just using
rectangle for now). When moused over each word will show a rectangle with a
message in it, like a large tool tip. I have a rudimentary version working
fine, see code below.
Question 1: Is there a way to just write on function which will work with all
four buttons changing the message, say using variables like AS2?
Question 2: Does the code below look relatively efficient? I'm sure there are
better ways to write it.
Here's a link to the rudimentary version,
http://www.rivergraphics.net/tests/button3.html, that should give you an idea
of what I'm trying to do.
Thanks.
this.cloud1.visible=false;
this.message1.visible=false;
this.message2.visible=false;
this.message3.visible=false;
this.message4.visible=false;