# Simple Question, please help :(

**URL:** https://forum.kirupa.com/t/simple-question-please-help/5330
**Category:** flash
**Created:** [September 8, 2002, 1:59am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330 "2002-09-08T01:59:24Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![dbzfan33](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@dbzfan33](https://forum.kirupa.com/u/dbzfan33)
#### Post date: [September 8, 2002, 1:59am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/1 "2002-09-08T01:59:24Z")

</div>

Sorry if i post too much, and some of it seems for no cause.  
But this is a question i really need help on (For real).

I’m making a banner where when you put the mouse over this button another image appears in a different location.

And it works, but the image that appears also appears when i’m over the image that appears:o. Even when it isn’t there yet!

If you can understand that please reply. 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2002, 2:06am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/2 "2002-09-08T02:06:56Z")

</div>

Select your image and hit F8 and make it in a new movie clip. Make the first frame and empty keyframe and have the image be in the second frame. Both frames should contain stop(); actions.

on your button add this script

```auto

on (rollOver){
_root.imageClip.gotoAndStop(2);
}
on (rollOut){
_root.imageClip.gotoAndStop(1);
}

```

That should work.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2002, 2:14am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/3 "2002-09-08T02:14:18Z")

</div>

Wow!  
You replied very fast, but  
it didn’t work.  
I think it’s me.  
Or maybe it some other code  
in my flash thingy.

## Is there another way of doing this?

Correction:  
I tried it again and it works, but the image doesn’t appear at all.  
But it plays the sound that happens when you over over the button.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2002, 2:22am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/4 "2002-09-08T02:22:03Z")

</div>

The example I gave you required that you give your Movie Clip that contained your image be on the stage at the spot you wanted and given the instance name of “imageClip” (without quotes).

To give it an instance name simply right click on the clip, and choose “Properties”, then where it says instance name, give it the name.

If you did that, it should have worked perfectly.

\<B\>EDIT:\</B\> It also assumes your clip is on the main stage (aka \_root)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2002, 2:28am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/5 "2002-09-08T02:28:27Z")

</div>

ok,

I tried it again and it’s the same.

I see what the code to the button is suppose to do, and understand how everything you said works, but it didn’t work again.

I may find this out myself, but if you can think of something else to say about it please do.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2002, 2:44am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/6 "2002-09-08T02:44:14Z")

</div>

Hmmm, I don’t see any reason why that shouldn’t work.

Do you have multiple instances of on(rollOver) and on(rollOut) on your button? If you do , this could cause conflict. You should always have only one of each if any at all. You probably do only have one, but I really don’t understand why it isn’t working.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2002, 2:52am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/7 "2002-09-08T02:52:51Z")

</div>

oh i just thought about something!!

The image that appears has a motion tween on it to fade from the alpha 0 to 100. and you told me to put the action stop on it.

Is that it?  
If i’m wrong can i attach my file and you look at it yourself?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2002, 2:53am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/8 "2002-09-08T02:53:47Z")

</div>

another update on it.

Now it appears when i’m over the image that appears, and not the button any more.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2002, 3:06am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/9 "2002-09-08T03:06:18Z")

</div>

Ok, well if it is a fade animation, then you should use gotoAndPlay instead of gotoAndStop.

I have included a .zip file of what I think you are trying to do. It contains the .fla only.

I hope it helps.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2002, 3:12am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/10 "2002-09-08T03:12:49Z")

</div>

Update! Update!

I got it working, but i didn’t download that fla of yours,

I just got rid of this frame and some actions i had that had no purpose.  
Werid, but works now.

Thanx =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2002, 3:14am UTC](https://forum.kirupa.com/t/simple-question-please-help/5330/11 "2002-09-08T03:14:10Z")

</div>

Awesome!
