# Page of formulas

**URL:** https://forum.kirupa.com/t/page-of-formulas/6378
**Category:** Uncategorized
**Created:** [October 5, 2002, 8:59pm UTC](https://forum.kirupa.com/t/page-of-formulas/6378 "2002-10-05T20:59:29Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Scootman](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Scootman](https://forum.kirupa.com/u/Scootman)
#### Post date: [October 5, 2002, 8:59pm UTC](https://forum.kirupa.com/t/page-of-formulas/6378/1 "2002-10-05T20:59:29Z")

</div>

I think a really cool thing to do would be to make a page in action script tricks… or somthing… that just lists a bunch of formulas for different effects… this can make it so people dont have to ask for help so much… they dont need you to give them code… they can use the formula and develop their own code…

just a thought…

---

<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: [October 5, 2002, 9:24pm UTC](https://forum.kirupa.com/t/page-of-formulas/6378/2 "2002-10-05T21:24:08Z")

</div>

[kirupa.com](http://kirupa.com) does have an AS tricks section. Ilyas writes most (if not everything) in there. Kirupa’s site is down right now so I can’t get the exact link, but it is there alright.

\<B\>EDIT :\</B\> The site came back up so here is the link…  
[http://www.kirupa.com/developer/actionscript/as\_tricks.asp](http://www.kirupa.com/developer/actionscript/as_tricks.asp)

---

<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: [October 5, 2002, 11:50pm UTC](https://forum.kirupa.com/t/page-of-formulas/6378/3 "2002-10-05T23:50:39Z")

</div>

> \*Originally posted by Scootman \*  
> \*\*I think a really cool thing to do would be to make a page in action script tricks… \*\*  
> Somebody stop me before I KILL HIM!!!

---

<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: [October 6, 2002, 12:25am UTC](https://forum.kirupa.com/t/page-of-formulas/6378/4 "2002-10-06T00:25:09Z")

</div>

no, i mean like within the as tricks page… had formulas for like properties of movie clips… almost like pseudocode or somthin… like just list them all together IE:

* * *

**Scale depending on mouse distance:**

–enter frame–  
mcX= (mouseX - movieClipX)  
mcY= (mouseY - movieClipY)  
distance = (mcX \* mcX) + (mcY \* mcY)  
X and Y scale = distance / ####(speed of scaling)

**Easing to a point:**

–load–  
set start x + y points  
speed = whatever

–enter frame–  
x = end x point  
y = end y point  
movieClipX += (x - MovieClipX)/speed  
movieClipY += (y - MovieClipY)/speed

* * *

i just meant to put up formulas for common effects people ask about all the time… like you said in a different post, pom, for easing a movie clip, no matter what… ITS THE SAME FORMULA =P so i just wanted to see formulas for cool stuff like this thats easy to do… and doesnt take long to write pseudocode type stuff for… to be up on the site somewhere… and it could save you from having to explain stuff over and over to people… and its shorter than writing a whole tutorial

i would like to see stuff like the easing for example… the scaling relative to the mouse… maybe a mouse swarm of some sort… just some cool easy effects… like if you put a little twist on the easing to a point you can have an easy mouse trail… i dunno stuff like that…

only reason i suggest this is that i tried that easing to a point before… and that scaling thing before… but i could never figure it out… and if i knew the **_formula_** it would have been easy to write the code to make the effect i wanted…

---

<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: [October 6, 2002, 12:25am UTC](https://forum.kirupa.com/t/page-of-formulas/6378/5 "2002-10-06T00:25:54Z")

</div>

oops forgot the / on that b 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: [October 6, 2002, 1:23am UTC](https://forum.kirupa.com/t/page-of-formulas/6378/6 "2002-10-06T01:23:46Z")

</div>

OH NO, I THINK I KNOW HOW YOU FEEL ILAYS!

Well I really appreciate you \<B\>\<I\>READING\</I\>\</B\> my tutorials on \<I\>easing\</i\> 😛

---

<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: [October 6, 2002, 4:28am UTC](https://forum.kirupa.com/t/page-of-formulas/6378/7 "2002-10-06T04:28:37Z")

</div>

oh, im sorry lol… i feel stupid now… can we take this post off of the forum? i used to come to kirupa all the time… but then i just started going to the forums… i didnt even realize that there was an easing tutorial… sorry again lostinbeta…:\*(

---

<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: [October 6, 2002, 4:39am UTC](https://forum.kirupa.com/t/page-of-formulas/6378/8 "2002-10-06T04:39:41Z")

</div>

LOL, no problem scootman. I was just messing with you. The easing tutorials were just added not too long ago:) (2 weeks maybe?)

---

<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: [October 6, 2002, 5:38am UTC](https://forum.kirupa.com/t/page-of-formulas/6378/9 "2002-10-06T05:38:25Z")

</div>

hey, is that how you did your footer thingy? with the grass… using the easing thing and just setting different speeds for them…

---

<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: [October 6, 2002, 5:39am UTC](https://forum.kirupa.com/t/page-of-formulas/6378/10 "2002-10-06T05:39:22Z")

</div>

Yeppers:) 100% easing and if statements to keep it from going off the stage.

---

<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: [October 6, 2002, 5:54am UTC](https://forum.kirupa.com/t/page-of-formulas/6378/11 "2002-10-06T05:54:13Z")

</div>

Oh yeah, BTW… Pom, i just actually took a real look at the AS Tricks page… great job… I love the Drawing API and the Dynamic Events ones…

---

<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: [October 6, 2002, 6:01am UTC](https://forum.kirupa.com/t/page-of-formulas/6378/12 "2002-10-06T06:01:53Z")

</div>

I loved all of them =)

---

<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: [October 6, 2002, 7:56am UTC](https://forum.kirupa.com/t/page-of-formulas/6378/13 "2002-10-06T07:56:30Z")

</div>

Thanks 🙂

But you’re right, Scootman, there should be something about useful formulas. Actually, you can find almost everything in the tutorials, but not at the same place: easing in the easing tutorial, random motion in the random motion, elastic motion in the sliding window tutorial… We should put everything at the same location, or at least links pointing to the right tutes.

pom :hat:

---

<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: [October 6, 2002, 1:26pm UTC](https://forum.kirupa.com/t/page-of-formulas/6378/14 "2002-10-06T13:26:37Z")

</div>

I didn’t think post deserved a new thread so that is why i am posting it in here.

```
How would i get a window to open within a flash movie, like a Flash website, where the window is a flash window, with actions such as closing and a tab for moving it around the stage? I heard some mentioning of loading a swf or something along those lines.
```
