# SIMPLE Action Script Problem

**URL:** https://forum.kirupa.com/t/simple-action-script-problem/139082
**Category:** Uncategorized
**Created:** [February 28, 2005, 10:26am UTC](https://forum.kirupa.com/t/simple-action-script-problem/139082 "2005-02-28T10:26:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JeBuZ](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jebuz/32/1137_2.png) [@JeBuZ](https://forum.kirupa.com/u/JeBuZ)
#### Post date: [February 28, 2005, 10:26am UTC](https://forum.kirupa.com/t/simple-action-script-problem/139082/1 "2005-02-28T10:26:52Z")

</div>

Hey, I’m having trouble with some action script… I’m pretty new to this  
I want some text to be visible when the mouse is hovering over a button,  
but for it to dissapear when the mouse has left the button area.

I’ve tried:  
[size=1]"{(News.onRollOver){}  
Newstext.\_visible = true}

{(Newstext.onRollOut){  
Newstext.\_visible = false}"[/size]

It keeps giving me this error:  
\*[size=1]"Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: ‘;’ expected  
{(News.onRollOver){}

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 4: ‘;’ expected  
{(Newstext.onRollOut){" etc etc[/size]\*

Then I tried:  
[size=1]“on(rollOver){  
NewsText.\_alpha = 100;  
}”

[/size]And nothing happens at all…

What am I doing wrong? Can anyone help? Thanks.  
~JeBuZ
