…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]