Why doesn't the text disappear?

wat is wrong wif this coding?
when the page is loaded, it is the text(mns) is suppose to be invincible until i mousover the grapic., but y once the page is loaded, all the text will appear at once, n i have 2 mouse over the graphic to make it work properly…

the script:

on (rollout)
{
mns._visible = false;
mns1._visible = false;
}
on (rollOver)
{
mns._visible = true;
mns1._visible = true;
}

You need to tell flash that you want the text to be hidden in the first place, only when you rollover and rollout the code would execute.

try this…


// in your timeline frame//
mns._visible = false;
mns1._visible = false;

// keep your script the same on the button/mc.

on (rollout) {
mns._visible = false;
mns1._visible = false;
}
on (rollOver) {
mns._visible = true;
mns1._visible = true;
}

:slight_smile:

um… thanks… but mind telling me where is the timeline frame?

your main timeline… I usually make a layer called actions. put that top part of the code in the actions layer on the frame where the text appears on the timeline.

this way will it affect other things that appear on the same frame?usually when i 1 2 stop a particular graphic (say text) fron animation on frame 55, i put the stop script in frame 55 of the text layer.
but the other graphics that animates till say frame 80 on another layer,will also stop at frame 55.
y does this happens?