Here’s another handy reference for transitioning from AS2 to AS3 from Adobe.com. This follows up to my earlier post from Flashcoder (which had good info but a lot of broken links).
Posts Tagged ‘as2’
ActionScript 2.0 to AS3 Migration Guide (Adobe.com)
Friday, October 31st, 2008Tags: adobe, as2, as3, Flash
Posted in Flash, Interactive, Software | Comments Off on ActionScript 2.0 to AS3 Migration Guide (Adobe.com)
ActionScript 2.0 to ActionScript 3.0 Migration (Flashcoder)
Monday, July 28th, 2008[Editor’s note: I’m just getting the hang of AS2 and now it’s time to learn AS3 to take advantage of the speed optimizations and new features only available in AS3 like the Google Maps Flash Component. The languages are just enough different yet the same to be a pain. This tip sheet should ease the transition.]
Republished from Flashcoder.cn.
Full list there in a prettier graphic design table format. Example below, partial for the MovieClip class. Hyperlink goes to Adobe documentation for property.
AS2 MovieClip Class
AS3 flash.display.MovieClip
Note: Many of the MovieClip methods have been moved to other
classes in AS3. All event handlers have been replaced by event objects in
the new event model.
_alpha Property
flash.display.DisplayObject.alpha
Moved to DisplayObject class. Initial underscore in name
removed.
blendMode Property
flash.display.DisplayObject.blendMode
cacheAsBitmap Property
flash.display.DisplayObject.cacheAsBitmap
_currentframe Property[read-only]
flash.display.MovieClip.currentFrame
Initial underscore in name removed.
_droptarget Property[read-only]
flash.display.Sprite.dropTarget
Moved to Sprite class, initial underscore removed from
name, and changed to CamelCase.
enabled Property
flash.display.Sprite.enabled
Moved to Sprite class.
filters Property
flash.display.DisplayObject.filters
focusEnabled
Property Removed.
_focusrect Property
flash.display.InteractiveObject.focusRect
Moved to InteractiveObject class, removed initial
underscore from name, and changed to use camelCase.
_framesloaded Property[read-only]
flash.display.MovieClip.framesLoaded
Removed initial underscore from name, and changed to use
camelCase.
_height Property
flash.display.DisplayObject.height
Moved to DisplayObject class, removed initial underscore.
_highquality Property
Removed.hitArea Property
flash.display.Sprite.hitArea
Moved to Sprite class.
_lockroot Property
Removed.
menu Property
Removed.
_name Property
flash.display.DisplayObject.name
Moved to DisplayObject class. Removed initial underscore
from name.
opaqueBackground Property
flash.display.DisplayObject.opaqueBackground
_parent Property
flash.display.DisplayObject.parent
Moved to DisplayObject class. Removed initial underscore
from name.
_quality Property
flash.display.Stage.quality
_rotation Property
flash.display.DisplayObject.rotation
Moved to DisplayObject class. Removed initial underscore
from name.
scale9Grid Property
flash.display.DisplayObject.scale9Grid
scrollRect Property
flash.display.DisplayObject.scrollRect
Changed to data type Rectangle.
_soundbuftime Property
flash.media.Sound.soundBufferTime
Moved to Sound class, and renamed to full wording without
initial underscore.
tabChildren Property
flash.display.DisplayObjectContainer.tabChildren
tabEnabled Property
flash.display.InteractiveObject.tabEnabled
_target Property[read-only]
Removed.
_totalframes Property[read-only]
flash.display.MovieClip.totalFrames
Removed initial underscore and changed capitalization.
trackAsMenu Property
flash.display.MovieClip.trackAsMenu
transform Property
flash.display.DisplayObject.transform
_url Property[read-only]
flash.net.URLRequest.url
useHandCursor Property
flash.display.Sprite.useHandCursor
_visible Property
flash.display.DisplayObject.visible
Moved to DisplayObject class and removed initial underscore
from name.
_width Property
flash.display.DisplayObject.width
Moved to DisplayObject class and removed initial underscore
from name.
_x Property
flash.display.DisplayObject.x
Moved to DisplayObject class and removed initial underscore
from name.
_xmouse Property[read-only]
flash.display.DisplayObject.mouseX
Moved to DisplayObject class, changed name to mouseX and
removed initial underscore from name.
_xscale Property
flash.display.DisplayObject.scaleX
Moved to DisplayObject class, changed name to scaleX and
removed initial underscore from name.
Tags: actionscript, as2, as3, Flash, language, migrating, programming, reference, upgrading
Posted in Best practices, Flash, Promote, Software | 1 Comment »