Download free stock photos on Dreamstime. Free registration

Old 12-04-2007, 09:49   #1 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,743
actionscript 3.0

was looking at the flash usage stats earlier and with fp9 up around 55% already i figure i should start reading up on as3. got the language reference and specification already, but does anyone have any decent articles/blog posts on moving from as2 to 3?

anyone made the jump already?

ta
__________________
  Reply With Quote
Old 12-04-2007, 09:51   #2 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,743
just been shown this - might be handy

ActionScript 2.0 to 3.0 Migration Cheatsheets
__________________
  Reply With Quote
Old 12-04-2007, 09:55   #3 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,743
More as3.0 goodness

Quote:
Method closures

Event handling is simplified in ActionScript 3.0 thanks to method closures, which provide built-in event delegation. In ActionScript 2.0, a closure would not remember what object instance it was extracted from, leading to unexpected behavior when the closure was invoked. The mx.utils.Delegate class was a popular workaround; to use it, you would write code as follows:

Code:
myButton.addEventListener("click", Delegate.create(this, someMethod)); Delegate.create(this, someMethod)


This class is no longer needed because in ActionScript 3.0, a method closure will be generated when someMethod is referenced. The method closure will automatically remember its original object instance. Now, one can simply write:

Code:
myButton.addEventListener("click", someMethod);

about fucking time!

Adobe - Developer Center : ActionScript 3.0 overview
__________________
  Reply With Quote
Old 12-04-2007, 10:10   #4 (permalink)
top_buzz
For your health!
 
top_buzz's Avatar
 
Join Date: Jul 2004
Posts: 3,095
cam: what kind of stuff do you do with flash?
  Reply With Quote
Old 12-04-2007, 10:20   #5 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,743
bit of everything really - usually just widgets for use on websites (like the timeline thing i was talking about a while back, or the music player I did for intrlude), but I've also done some bigger projects - an interactive training dvd and these touchscreen presentation thingies i'm doing at the moment.

would love to look into doing something like a game at some point, but haven't had the time yet!
__________________
  Reply With Quote
Old 12-04-2007, 10:23   #6 (permalink)
top_buzz
For your health!
 
top_buzz's Avatar
 
Join Date: Jul 2004
Posts: 3,095
Nice one, I didn't realise you did that much with it. I'd love to do a game too, maybe one day!
  Reply With Quote
Old 12-04-2007, 11:47   #7 (permalink)
John Good
+
 
John Good's Avatar
 
Join Date: May 2005
Location: Tropical Networks
Posts: 1,611
ActionScript 3.0 Cookbook does it for me.
__________________
I'm alive and well, thanks.
  Reply With Quote
Old 12-04-2007, 12:18   #8 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,743
Quote:
Originally Posted by John Good
ActionScript 3.0 Cookbook does it for me.

hmm, that's sat in the office actually. i'll have a read
__________________
  Reply With Quote
Old 12-04-2007, 12:25   #9 (permalink)
John Good
+
 
John Good's Avatar
 
Join Date: May 2005
Location: Tropical Networks
Posts: 1,611
I did not write a single line of AS3 I must say...
hate to have to relearn.
__________________
I'm alive and well, thanks.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
Web Hosting by Heart Internet, vBulletin © 2000-2009 Jelsoft Enterprises Limited.
Search Engine Optimization by vBSEO 3.0.0 RC8
Web Hosting by Heart Internet