# Some easing on my captions and ideas?

**URL:** <https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599>\
**Category:** Uncategorized\
**Created:** [May 28, 2004, 6:53pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599 "2004-05-28T18:53:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Post date:** [May 28, 2004, 6:53pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/1 "2004-05-28T18:53:45Z")

</div>

I would really like some easing on my captions.

I have added the following code to my captions, but would really like some easing on the movement.

```auto

onClipEvent (mouseMove) {
   this._x = _root._xmouse;
   this._x = _root._ymouse;
   updateAfterEvent();
}

```

Any information on how to go about this would be superb 🙂

Come on you gurus someone must know 🙂

cheers

---

<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 28, 2004, 7:11pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/2 "2004-05-28T19:11:26Z")

</div>

I guess the second this.\_x must be this.\_y?  
try this

```auto
onClipEvent (enterFrame) {
	this._x += (_root._xmouse-this._x)/8;
	this._y += (_root._ymouse-this._y)/8;
}

```

increase/decrease the “8” if you want slower/faster easing;)

scotty(-:

---

<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 28, 2004, 7:29pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/3 "2004-05-28T19:29:25Z")

</div>

Hi, trevorsaint! Please post your movie (link, swf, fla) so we can take a look at it! I want to see it in action.

Daniel

---

<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 28, 2004, 7:31pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/4 "2004-05-28T19:31:27Z")

</div>

Scotty, how do I apply that code?

---

<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 28, 2004, 7:33pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/5 "2004-05-28T19:33:09Z")

</div>

Hi scotty wonderful it works gr8 as it is.

I hate to be a pain can you please explain how your modified code achieved this. I am think maths right, well I never was good at that, so if you can please explain what is going on. I understand the basics of this as, but not the added

-this.\_y)/8

First look at this code would be minus the clip at x and y axis divided by 8

Sorry for the lack of understanding, but it would be great for a laymans view 🙂

cheers and thnx for the addition.

T

---

<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 28, 2004, 7:34pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/6 "2004-05-28T19:34:45Z")

</div>

Dude

Simply create a box, convert to movie clip, and apply it to the clip. simple as that, its flippin great, if you have design skills think of the potential 🙂

Wonderful

---

<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 28, 2004, 7:53pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/7 "2004-05-28T19:53:27Z")

</div>

I tried and get this error:

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Clip events are permitted only for movie clip instances  
onClipEvent (enterFrame) {

Total ActionScript Errors: 1 Reported Errors: 1

What am I missing?

---

<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 28, 2004, 8:03pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/8 "2004-05-28T20:03:33Z")

</div>

ok I will send a sample fla, give me a few …

---

<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 28, 2004, 8:06pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/9 "2004-05-28T20:06:41Z")

</div>

Well this is just a rectangle, as an example for you.

Hope it helps.

Trev

---

<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 28, 2004, 8:08pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/10 "2004-05-28T20:08:47Z")

</div>

What you did wrong was select the timeline and applied your script to the mc based on the timeline, with this you must select the object itself, i.e the movie clip and apply it this way :).

I have made the same mistake, and I am sure many others have to 🙂

Trev

---

<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 28, 2004, 8:17pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/11 "2004-05-28T20:17:35Z")

</div>

Very nice, glad you took the time to show me that.

What is: \_quality = “low”;

And why is it following the mouse? Wouldn’t it make more sense to have the caption display when it hovers over something?

---

<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 28, 2004, 8:23pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/12 "2004-05-28T20:23:45Z")

</div>

I place quality low, because I feel that when set to high the rectangle can sometimes appear slightly blury, quality low in my own opinion keeps it crisp and pixel perfect.

Well the best bet is to have the hover caption appear when hovering over an object, I have done that, but all I wanted was the smooth easing, hense why I asked.

LOL - I just did it like that for a sample for you, why would you like it to appear on hover over a button say??

T

---

<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 28, 2004, 8:30pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/13 "2004-05-28T20:30:37Z")

</div>

Yes 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 28, 2004, 8:32pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/14 "2004-05-28T20:32:53Z")

</div>

Right ok bare with me, am having a few troubles I will get something as quick as I can.  
I have it working as standard, but I am aiming for that nice easing also. wait a few 🙂

T

---

<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 28, 2004, 8:39pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/15 "2004-05-28T20:39:55Z")

</div>

Ok Steady, here is a quick sample, I am still tring to get the easing applied.

Please be patient.

Trev

This should keep you going for a few …

Well I have tried, but still nothing, I cannot get the easing to work.

Come on any gurus out there, please help us out here. Someone must know.

---

<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 28, 2004, 8:56pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/16 "2004-05-28T20:56:30Z")

</div>

> [@SteadyScene](#):
>
> I tried and get this error:
> 
> **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Clip events are permitted only for movie clip instances  
> onClipEvent (enterFrame) {
> 
> Total ActionScript Errors: 1 Reported Errors: 1
> 
> What am I missing?

you get that error because that code has to be in a mc

thats what it is saying

---

<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 28, 2004, 9:01pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/17 "2004-05-28T21:01:25Z")

</div>

lol

---

<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 28, 2004, 9:44pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/18 "2004-05-28T21:44:15Z")

</div>

That’s a very tiny box;) so there’s not so much room for easing.  
Might not be exactly what you want be replace the onMouseMove with this

```auto
_root.caption1.onEnterFrame = function() {
	if (_root.z == true) {
		this._x += (this._parent._xmouse-this._x)/8;
		this._y += (this._parent._ymouse-this._y)/8;
	}
};

```

scotty(-:

---

<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 28, 2004, 10:06pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/19 "2004-05-28T22:06:28Z")

</div>

lol that was just a demo for steady :), no the one I will be using will be bigger 🙂

I will try it, thanks again scotty 🙂

---

<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 28, 2004, 10:12pm UTC](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599/20 "2004-05-28T22:12:16Z")

</div>

Oops, it’s time to goto bed I think=)

scotty(-:

[Next page](https://forum.kirupa.com/t/some-easing-on-my-captions-and-ideas/111599.md?page=2)
