# So simple

**URL:** <https://forum.kirupa.com/t/so-simple/232398>\
**Category:** Uncategorized\
**Created:** [July 13, 2007, 11:39am UTC](https://forum.kirupa.com/t/so-simple/232398 "2007-07-13T11:39:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesanto](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jesanto](https://forum.kirupa.com/u/jesanto)\
**Post date:** [July 13, 2007, 11:39am UTC](https://forum.kirupa.com/t/so-simple/232398/1 "2007-07-13T11:39:36Z")

</div>

…but I do not know how to do it. Sorry, the title is not very clear, but I explain my problem.  
I am trying to learn how to add small actionscript to improve flash animations, but I’ve never wrote a single line of programming in any language ever (only html, but that doesn’t count).

AS may not be the best place to start, but it is a start.

Here’s what I want to do:  
I have to images, actually it’s the same image, but in different size. I want the large image to be invisible but it has to become visible when the mouse roll over the small image.

Here’s what I have done so far:  
I created a movie clip with the image; then created two instances for the _mc_ (pq for the small and \*gd \*for the large). Each instance is on a different layer (but I think this is not relevant).

I started for making _gd_ invisible by writing  
gd.visible=false;  
in the actions panel

Then, on the actions panel of _pq_ I wrote  
on(rollOver){  
gd.visible=true;  
}

When I try to preview I get this message (and nothing happens, both images are visible at all times)  
[SIZE=1] **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on/onClipEvent handler  
gd.visible=false;

Total ActionScript Errors: 1 Reported Errors: 1

[SIZE=2]I know this is SO simple, and I’ve been trying to fix this on my own, but today I just gave up and decided to ask for help.  
Be gentle 😉 and thank you  
Joana  
[/SIZE]

[/SIZE]
