Skip to main content
April 20, 2006
Answered

easy flash question

  • April 20, 2006
  • 2 replies
  • 251 views
I am sure this is very easy. I have tried a couple of different things with no luck.

What I want to do it.

When you move your mouse over a certain area of the swf file a see through box apears (alpha at 40%) so you can still read what is under neath it and when you click it takes you to an external website.
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer sneakyimp
if you have already put the objects on your stage with the alpha at 40 while you are authoring the fla, then you can actionscript in the first frame to hide them. assuming they are given instance names of seeThruBox1, etc., do this:

seeThruBox1._visible = false;
seeThruBox2._visible = false;
//etc

//then further assuming the object to be moused over is named 'obj' then you can do this:

obj.onRollOver = function() {
seeThruBox1._visible = true;
}
obj.onRollOut = function() {
seeThruBox1._visible = false;
}
obj.onRelease = function() {
getURL(" http://hotmail.com");
}

2 replies

sneakyimpCorrect answer
Inspiring
April 20, 2006
if you have already put the objects on your stage with the alpha at 40 while you are authoring the fla, then you can actionscript in the first frame to hide them. assuming they are given instance names of seeThruBox1, etc., do this:

seeThruBox1._visible = false;
seeThruBox2._visible = false;
//etc

//then further assuming the object to be moused over is named 'obj' then you can do this:

obj.onRollOver = function() {
seeThruBox1._visible = true;
}
obj.onRollOut = function() {
seeThruBox1._visible = false;
}
obj.onRelease = function() {
getURL(" http://hotmail.com");
}
April 20, 2006
That did it!!!!

Thank you