Ac3 migracion

Solo disponible en BuenasTareas
  • Páginas : 17 (4155 palabras )
  • Descarga(s) : 0
  • Publicado : 27 de febrero de 2012
Leer documento completo
Vista previa del texto
AS2

ActionScript 3.0
www.actionscriptcheatsheet.com
info@seantheflashguy.com

AS3 Migration
AS2
_accProps _focusrect _global _highquality _level maxscroll _parent _quality _root scroll _soundbuftime this

AS3
flash.accessibility.AccessibilityProperties flash.display.InteractiveObject.focusRect Removed flash.display.Stage.quality Removed flash.text.TextField AS2flash.display.DisplayObject.parent flash.display.Stage.quality flash.display.DisplayObject.stage flash.text.TextField flash.media.SoundMixer.bufferTime this

AS2
#endinitclip #include #initclip

AS3
Removed Removed Removed

Compiler Directives

Global properties
AS2 AS3
flash.text.TextField dispatches event: link Removed Removed AS2 flash.utils.clearInterval() flash.utils.clearTimeout()flash.display.MovieClip.MovieClip() Removed flash.system.fscommand() Removed flash.utils.getTimer() flash.net.navigateToURL() flash.system.Capabilities.version flash.display.MovieClip.gotoAndPlay() flash.display.MovieClip.gotoAndStop() flash.display.MovieClip.framesLoaded int() String.length flash.display.Loader flash.display.Loader AS2 flash.net.URLLoader flash.net.URLLoader String.fromCharCode() String.lengthString.charCodeAt() String.substr() flash.display.MovieClip.nextFrame() flash.display.MovieClip.nextScene() flash.events.EventDispatcher flash.events.EventDispatcher String parseInt() flash.display.MovieClip.play() flash.display.MovieClip.prevFrame() flash.display.MovieClip.prevScene() flash.printing.PrintJob flash.printing.PrintJob flash.printing.PrintJob flash.printing.PrintJob Math.random()Removed flash.utils.setInterval() Removed flash.utils.setTimeout() flash.profiler.showRedrawRegions() flash.display.Sprite.startDrag() flash.display.MovieClip.stop() flash.media.SoundMixer.stopAll() flash.display.Sprite.stopDrag() String.substring() Removed Removed flash.display.Stage.quality trace() flash.display.Loader.unload() flash.display.Loader.unload() flash.events.TimerEvent.updateAfterEvent()Global functions
asfunction call() chr() clearInterval() clearTimeout() duplicateMovieClip() eval() fscommand() getProperty() getTimer() getURL() getVersion() gotoAndPlay() gotoAndStop() ifFrameLoaded() int() length() loadMovie() loadMovieNum() loadVariables() loadVariablesNum() mbchr() mblength() mbord() mbsubstring() nextFrame() nextScene() on() onClipEvent() ord() parseInt() play()prevFrame() prevScene() print() printAsBitmap() printAsBitmapNum() printNum() random() removeMovieClip() setInterval() setProperty() setTimeout() showRedrawRegions() startDrag() stop() stopAllSounds() stopDrag() substring() targetPath() tellTarget() toggleHighQuality() trace() unloadMovie() unloadMovieNum() updateAfterEvent()

Constants
false NaN newline null undefined false NaN Removed nullundefined

Operators
add eq gt ge instanceof lt le and not or ne Removed Removed Removed Removed Removed is Removed Removed Removed Removed Removed Removed delete import Removed private Removed super

AS2

AS3

Array class
CASEINSENSITIVE Constant DESCENDING Constant length Property NUMERIC Constant RETURNINDEXEDARRAY:Cnst UNIQUESORT Constant AS2 Array Constructor push() Method sort() MethodsortOn() Method splice() Method unshift() Method Array.CASEINSENSITIVE Array.DESCENDING Array.length Array.NUMERIC Array.RETURNINDEXEDARRAY Array.UNIQUESORT Array.Array() Array.push() Array.sort() Array.sortOn() Array.splice() Array.unshift()

Statements
delete import intrinsic private set variable super

AS2

AS3

arguments class
caller Property Removed

BitmapData class
heightProperty[read-only] rectangle Property[read-only] width Property[read-only] copyChannel() Method draw() Method fillRect() Method floodFill() Method getColorBoundsRect() Method getPixel() Method getPixel32() Method hitTest() Method loadBitmap() Method merge() Method noise() Method perlinNoise() Method pixelDissolve() Method scroll() Method setPixel() Method setPixel32() Method threshold() Method...
tracking img