# Ok, last question. hehehe

**URL:** <https://forum.kirupa.com/t/ok-last-question-hehehe/2188>\
**Category:** flash\
**Created:** [May 11, 2002, 2:52am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188 "2002-05-11T02:52:32Z")\
**Posts on this page:** 14\
**Page:** 1

<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:** [May 11, 2002, 2:52am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/1 "2002-05-11T02:52:32Z")

</div>

I have this background image right, and i have a cursor in it.  
(horizontal and vertical lines)

How do i make it so when the user roles over this particular background the cursor shows up within that background. And when the user rolls off that particular background the cursor dissappears?

At the moment i have the background image. And i have the cursor as a new symbol and i just dragged it onto the stage from the library… But i just dont know how to do the above!

can someone help please! 🙂

---

<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:** [May 11, 2002, 3:14am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/2 "2002-05-11T03:14:41Z")

</div>

Do you have any buttons on the stage at this point that need to be used?

If not it’s easy. If you do, then it will take a little more work around.

---

<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:** [May 11, 2002, 9:03am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/3 "2002-05-11T09:03:17Z")

</div>

Nah i dont have any buttons…

Everything is a graphic and a movieclip…

So what do i have to 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:** [May 11, 2002, 10:01am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/4 "2002-05-11T10:01:34Z")

</div>

Well then it’s pretty easy. Click on the picture, and hit F8. Make it a button and give it a library reference name

Remember also that the cursor movie clip (or clips) must have instance names. For the example here I’ve used “myCursorMC” as the instance name.

this script goes on the button you created.

on(rollOver){  
myCursorMC.\_visble=true;  
}  
on(rollOff){  
myCursorMC.\_visible=false;  
}

if you had the cursor as two separate movie clips then you’d do something like

on(rollOver){  
myCursorMCHorizontal.\_visble=true;  
myCursorMCVerticle.\_visible=true;  
}  
on(rollOff){  
myCursorMCHorizontal.\_visible=false;  
myCursorMCVerticle.\_visible=false;  
}

* * *

Note… if you don’t want them to show up when the movie loads, then the cursor clips themselves would have to have this script on them.

onClipEvent(load){  
\_visible=false;  
}

---

<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:** [May 12, 2002, 12:11am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/5 "2002-05-12T00:11:17Z")

</div>

Hey Upuate8,

I entered that code into my image that i converted into button. I placed the cursor from the Library palette onto the stage. But when i entered the code:

on(rollOver){  
myCursorMC.\_visble=true;  
}  
on(rollOff){  
myCursorMC.\_visible=false;  
}

It says:  
“The actions on the clipboard contain an error. Actions with errors cannot be pasted into normal modes”

And then this came up:  
Clipboard Actions: Line 4: Invalid mouse event specified.  
on(rollOff){

Clipboard Actions: Line 5: Statement must appear within on handler  
myCursorMC.\_visible=false;

Clipboard Actions: Line 6: Unexpected ‘}’ encountered  
}

What did i do wrong? I gave my cursor an instance and all the other things you said to do but i obviously did something wrong, but i dont know where? ☹

What do you think?

Jak…

---

<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:** [May 12, 2002, 4:12am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/6 "2002-05-12T04:12:18Z")

</div>

oops

it’s rollOut and rollOn

sorry

---

<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:** [May 12, 2002, 7:17am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/7 "2002-05-12T07:17:40Z")

</div>

arrrggghh…

Man it’s not working still for some reason?

Do you think you could import an image, create the cursor and how it fades in/out when the user puts thier mouse over it and send it to me? If thats not too much trouble… im probably asking for too much but… ☹

jak…

---

<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:** [May 12, 2002, 12:00pm UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/8 "2002-05-12T12:00:50Z")

</div>

no that’s fine.

---

<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:** [May 12, 2002, 12:29pm UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/9 "2002-05-12T12:29:02Z")

</div>

I need an email. It’s done. Just send me a note at [upuaut@centerspin.com](mailto:upuaut@centerspin.com), if you don’t want to reveal your email on the board.

---

<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:** [May 13, 2002, 12:38am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/10 "2002-05-13T00:38:33Z")

</div>

Thanks heaps hey 🙂  
Here’s my e-mail addy…

[endless\_summer69@hotmail.com](mailto:endless_summer69@hotmail.com)

I’ll e-mail you as well just incase…

jak…

---

<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:** [May 13, 2002, 8:45am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/11 "2002-05-13T08:45:01Z")

</div>

Just sent it. 🙂

---

<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:** [May 13, 2002, 9:49am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/12 "2002-05-13T09:49:22Z")

</div>

Thanks heaps man…  
Yours works good but mine is still a bit off… haha  
For some reason it’s still not working but i’ll figure it out…

Thanks for all your help hey! 🙂

JAK

---

<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:** [May 13, 2002, 1:55pm UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/13 "2002-05-13T13:55:56Z")

</div>

Ill bet it has to do with your movie clips. The lines, did you select both of them and turn them both into a movie clip so that you could reuse it?

If so, the addressing in the button needs to be altered slightly.

Why not send yours to me, I’ll see what I can figure out about it.

---

<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:** [May 14, 2002, 2:01am UTC](https://forum.kirupa.com/t/ok-last-question-hehehe/2188/14 "2002-05-14T02:01:09Z")

</div>

Oh man you read my mind hey…  
I was just coming back here to see if you could have a look at where im going wrong…

It’s annoying this crap out of me… I’ll send you the testcursor and tell me what you think?

Thanks heaps man hey…

Jak…
