# 5 to MX code conversion

**URL:** <https://forum.kirupa.com/t/5-to-mx-code-conversion/17132>\
**Category:** flash\
**Created:** [April 1, 2003, 7:22pm UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132 "2003-04-01T19:22:36Z")\
**Posts on this page:** 11\
**Page:** 2

<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:** [April 2, 2003, 8:49am UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/21 "2003-04-02T08:49:46Z")

</div>

Go into File/Publish Settings

When you open up the file it is set to publish as Flash 5, if you click on the Flash tab and tell it to Publish as Flash 6, it won’t work.

At least it hasn’t for any of us… seems kinda strange that it works just for you :crazy:

---

<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:** [April 2, 2003, 9:05am UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/22 "2003-04-02T09:05:22Z")

</div>

Nevermind… I get it now… Hmm That’s strange… I’ll have a further look into this coding… BTW… I don’t think it’s that main code… Try looking at the 10+ code blotches thrown around everywhere else in the file 😉

playamarz :player:

---

<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:** [April 2, 2003, 4:57pm UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/23 "2003-04-02T16:57:44Z")

</div>

I think the problem lies in the sticky\_update prototype as that is the prototype that gets this puppy sticky.

---

<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:** [April 2, 2003, 5:46pm UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/24 "2003-04-02T17:46:27Z")

</div>

you are deffinetly right about that LIB. It seems like the update just stops working. THe icon pulls out a bit but then settles back into place and then stops moving all together. Marz i took out those extra “;”. Allthough the don’t seem to be the main problem i’m sure it was good to get rid of them thianks every one for helping so far. I jsut hope we can get this soon. You have all been a great help.

---

<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:** [April 2, 2003, 6:04pm UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/25 "2003-04-02T18:04:17Z")

</div>

lol i just was playing wiht it and tried clicking it. the thing shot off like a rocket. So whats up with that?

---

<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:** [April 2, 2003, 6:09pm UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/26 "2003-04-02T18:09:43Z")

</div>

Hmm… Hasn’t done that for me… Albeit… Hmm… If I wasn’t so focused on PHP today I’d crack open Flash for another gander 😉

hehe playamarz :player:

---

<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:** [April 2, 2003, 7:05pm UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/27 "2003-04-02T19:05:41Z")

</div>

OK so i broke down and found a commponet that works. It kind of sucs to have to use one but u guess i’ll have to. thanks for all your help u guys and if any body wants to keep at it please do because it would be soem great code to have. Thanks again u guys

---

<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:** [April 2, 2003, 7:14pm UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/28 "2003-04-02T19:14:44Z")

</div>

Yeah, this thing is driving me friggin nuts. Everything looks perfectly fine to me… I DON’T GET IT!!!

As long as the component works, I guess that is all that matters :-\

Sorry I couldn’t help at all ☹

---

<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:** [April 2, 2003, 7:16pm UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/29 "2003-04-02T19:16:23Z")

</div>

No no no everybody was a great help and i thank u all for the time u guys put in. Thanks alot all of u

---

<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:** [April 2, 2003, 7:25pm UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/30 "2003-04-02T19:25:07Z")

</div>

> _Originally posted by sintax321_  
> **No no no everybody was a great help…**

hey! at least i got it partially working!! 😛 **jk** 😉

seriously now…  
this sucks! i have no idea what’s wrong :-\

i’ll keep trying though 😉

---

<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 3, 2003, 3:51am UTC](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132/31 "2003-05-03T03:51:00Z")

</div>

ok… i’m bored today and i remembered about this thread so… 😛

```auto
// prototype
MovieClip.prototype.sticky = function(r, a, c) {
	this.cx=this._x, this.cy=this._y;
	this.onEnterFrame = function() {
		if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
			this._x = _root._xmouse-(_root._xmouse-this.cx)/r;
			this._y = _root._ymouse-(_root._ymouse-this.cy)/r;
		} else {
			this.x=this.x*a+(this.cx-this._x)*c, this._x += this.x;
			this.y=this.y*a+(this.cy-this._y)*c, this._y += this.y;
		}
	};
};
// usage
MovieClip.sticky(6, .8, .4);

```

[Previous page](https://forum.kirupa.com/t/5-to-mx-code-conversion/17132.md?page=1)
