# As Crib notes?

**URL:** <https://forum.kirupa.com/t/as-crib-notes/159844>\
**Category:** Uncategorized\
**Created:** [August 21, 2005, 1:14am UTC](https://forum.kirupa.com/t/as-crib-notes/159844 "2005-08-21T01:14:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tripdragon](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tripdragon](https://forum.kirupa.com/u/tripdragon)\
**Post date:** [August 21, 2005, 1:14am UTC](https://forum.kirupa.com/t/as-crib-notes/159844/1 "2005-08-21T01:14:33Z")

</div>

I want to know if anyone keeps notes on constant reused common code. Like crib notes!

I have a few so far

```auto

//<------ How to convert aan old methofd of code <----
on (rollOver) {
        tellTarget ("/s3b") {
                gotoAndPlay("s1");
        }
}
on (rollOut) {
        tellTarget ("/s3b") {
                gotoAndPlay("s2");
        }
}

//_- ____-_____ - ___-__ - __-_-_-_-_-_--_-__
//Complicated way
num_buttons = 10;
for (i=1; i<=num_buttons; i++) {
     b = this["button"+i];
     b.onRollOver = function() {
          someClip.gotoAndPlay("label"+i+"_over");
     };
     b.onRollOut = function() {
          someClip.gotoAndPlay("label"+i+"_out");
     };
}

//Easy way..
buttonname.onRollOver = function(){
s3b.gotoAndPlay("s1");
}

buttonname.onRollOver = function(){
s3b.gotoAndPlay("s2");
}
//<------------------
//<------------------

//<--------- Move a Mouse text scrool ???????
var mouseHook:Object = new Object();
mouseHook.onMouseWheel = function(turns) {
        trace(turns);
}
Mouse.addListener(mouseHook);
//<--------------

//<------------- Make something move smooth<------------

#include "lmc_tween.as"
//place object on screen
amoon_mc._x = 150;
amoon_mc._y = 450;

// move object
amoon_mc.tween("_y", 100, 4.4, mx.transitions.easing.Strong.easeOut);
amoon_mc._alpha("_alpha", 70, 8, mx.transitions.easing.Strong.easeIn);
amoon_mc.tween("_x", 720, 4.4, mx.transitions.easing.Strong.easeOut);

<---------------------

//basic crap you HAve to knwpoo ! 
_x
_y
_xscale
_yscale

```

But I could use some more like basic 3d and zoom size and rotation, ( i will add those as soon as I can figure out the tutorials here :D)

But it does not hurt to ask or help out
