# Timeline vs movieclip

**URL:** <https://forum.kirupa.com/t/timeline-vs-movieclip/102270>\
**Category:** Uncategorized\
**Created:** [February 21, 2004, 4:19pm UTC](https://forum.kirupa.com/t/timeline-vs-movieclip/102270 "2004-02-21T16:19:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ichido](https://avatars.discourse-cdn.com/v4/letter/i/43a26b/32.png) [@ichido](https://forum.kirupa.com/u/ichido)\
**Post date:** [February 21, 2004, 4:19pm UTC](https://forum.kirupa.com/t/timeline-vs-movieclip/102270/1 "2004-02-21T16:19:59Z")

</div>

I been experiment actionscript this few day, some question pop up.

inputing actionscript on a movie clip to make rotation

onClipEvent(enterFrame){  
this.\_rotation=this.\_rotation+=50;  
}

wat happen if you wan the script to be on the timeline and not the movieclip itself…?

this.\_rotation=this.\_rotation+=50;

doeen’t work on the timeline.

---

<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:** [February 21, 2004, 4:22pm UTC](https://forum.kirupa.com/t/timeline-vs-movieclip/102270/2 "2004-02-21T16:22:39Z")

</div>

```auto
theclip.onEnterFrame = function(){
this._rotation+=50; 
}

```

---

<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:** [February 21, 2004, 4:50pm UTC](https://forum.kirupa.com/t/timeline-vs-movieclip/102270/3 "2004-02-21T16:50:51Z")

</div>

You’ve mixed two operators. += is an operator that adds a value to the existing value, while = is an assignment operator.

```auto

anumber = 5;
anumber+=3;
//this is the same as saying
anumber = anumber+3;

```

= operator: [http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary041.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary041.html)  
+= operator: [http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary035.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary035.html)
