# From AS2 to AS3

**URL:** <https://forum.kirupa.com/t/from-as2-to-as3/261989>\
**Category:** Uncategorized\
**Created:** [June 2, 2008, 2:18pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989 "2008-06-02T14:18:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [June 2, 2008, 2:18pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/1 "2008-06-02T14:18:14Z")

</div>

I have been programming with AS since flash 5, and was really lazy about going to as3.

Not only you have to learn lots of things, but the whole thinking scheme is different.  
Creating listeners and handlers for a simple roll over… :puzzle:  
All the root/stage confusion… :puzzle:  
No more duplicateMovieClip, loadMovie, getURL, or attachMovieClip… :puzzle:

But… I did my first job in as3 during this weekend and I have only one thing to say about it:

Don’t be lazy!!! Learn AS3 as soon as you can!!! AS3 is the sh\*\* !!! :love:

Faster, Stronger, Better, lots of new features… hell even the timeline tweens move smoother and faster.

No, really, it’s more work but you get a lot more, plus in the long run (and not so long) as2 will die. It’s the natural order of things…

Just wanted to share this revelation with you 🙂

---

<div class="post-metadata">

**Author:** ![rumblesushi](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Post date:** [June 2, 2008, 2:29pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/2 "2008-06-02T14:29:25Z")

</div>

Funnily enough, I’ve been playing with AS3 this weekend too, I was talking to creatify about it.

It’s power became evident pretty quickly, but god I feel lost with no attachMovie, duplicatemovieclip etc etc.

And it’s just so unforgiving, throwing error messages at you like they’re going out of fashion.

One thing though, for some reason I find classes easier to understand in AS3 than AS2.

Which did you do in AS3 pier?

And what is the equivalent of duplicateMovieClip?

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [June 2, 2008, 2:43pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/3 "2008-06-02T14:43:26Z")

</div>

Hey!

I borrowed senocular’s version of duplicateMovieCLip for AS3 and from somewhere else a getURL for as3 (just google as3 getURL) that I have implemented in my own classes as a static method.

Yeah I find classes easier to understand in AS3… but that could be because I never tried so hard understanding classes in AS2 😉

I did this, a dynamic splash screen loader, plus the big interstitial (banner). No big deal, but you have to start from somewhere 🙂

[http://82.194.74.55/plantour/plannet/html/promociones/promo.php](http://82.194.74.55/plantour/plannet/html/promociones/promo.php)

You won’t be able to navigate though…

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 2, 2008, 2:52pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/4 "2008-06-02T14:52:41Z")

</div>

cs3 this cs3 that _runs and hides under a rock_

cs4 will come out soon enough 😛

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 2, 2008, 3:17pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/5 "2008-06-02T15:17:03Z")

</div>

I agree. It’s not easy to pick up and I have so much to learn, but I am learning a lot. I too have been using Flash since Flash 5 and haven’t really gotten deep into classes etc. But it really is awesome. Glad you are picking it up.

My problem is I don’t have that much time to dedicate into AS 3. So it’s been a slow process.

---

<div class="post-metadata">

**Author:** ![rumblesushi](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Post date:** [June 2, 2008, 4:53pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/6 "2008-06-02T16:53:03Z")

</div>

Cool Pier, not bad. Incidentally, did you use 100% classes for this, or did you fall back on your trusty AS2, timeline ways? 🙂

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [June 2, 2008, 7:05pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/7 "2008-06-02T19:05:15Z")

</div>

[QUOTE=rumblesushi;2334886]Cool Pier, not bad. Incidentally, did you use 100% classes for this, or did you fall back on your trusty AS2, timeline ways? :)[/QUOTE]

Hey thanks, I’m glad you liked it.

Yeah I did everything with classes and tweenLite 😉

The banner animation was done half by hand and half by script.

Basically a document class for the loading process, animating the whole container, and processing some vars given by php. Then my class utilsPier for things such as the getURL, trigonometry and also my animPier class with an explode method (the 20s on the banner).

Oh BTW TweenLite/Max is great! I’m an ex fuse user since I tried tweenLite on this project two days ago 🙂

randomagain: I don’t think the jump from 3 to 4 will be so huge… Well, I hope… 😃

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [June 2, 2008, 7:56pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/8 "2008-06-02T19:56:43Z")

</div>

I shall continue to be lazy…there are still plenty of questions asked about slash notation and tellTarget to keep me occupied here. 😉

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 2, 2008, 8:03pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/9 "2008-06-02T20:03:46Z")

</div>

^ lol 🙂

---

<div class="post-metadata">

**Author:** ![prg9](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prg9](https://forum.kirupa.com/u/prg9)\
**Post date:** [June 2, 2008, 8:52pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/10 "2008-06-02T20:52:21Z")

</div>

[QUOTE=Pier25;2334989]Oh BTW TweenLite/Max is great! I’m an [COLOR=“Red”]ex fuse user[/COLOR] since I tried tweenLite on this project two days ago :)[/QUOTE]

:thumb: Now you can go report in your other thread…

your favorite tween engine and why

> **[kirupaForum](https://forum.kirupa.com)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [June 2, 2008, 9:10pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/11 "2008-06-02T21:10:21Z")

</div>

Thx! I’ve seen you already did it for me 🙂

---

<div class="post-metadata">

**Author:** ![rumblesushi](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Post date:** [June 2, 2008, 11:42pm UTC](https://forum.kirupa.com/t/from-as2-to-as3/261989/12 "2008-06-02T23:42:44Z")

</div>

> [@glosrfc;2335035](#):
>
> I shall continue to be lazy…there are still plenty of questions asked about slash notation and tellTarget to keep me occupied here. 😉

Don’t tell me you haven’t mastered AS3 glos :bandit:
