• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
as3
 

as3

on

  • 838 views

 

Statistics

Views

Total Views
838
Views on SlideShare
838
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    as3 as3 Document Transcript

    • AS2 ActionScript 3.0 AS3 Migration www.actionscriptcheatsheet.com AS2 AS3 AS2 AS3 info@seantheflashguy.com Compiler Directives Global properties #endinitclip Removed _accProps flash.accessibility.AccessibilityProperties #include RemovedAS2 AS3 #initclip Removed _focusrect flash.display.InteractiveObject.focusRectGlobal functions _global Removed _highquality flash.display.Stage.quality Constantsasfunction flash.text.TextField dispatches event: link false falsecall() Removed _level Removed NaN NaNchr() Removed maxscroll flash.text.TextField AS2 _parent AS2 flash.display.DisplayObject.parent newline RemovedclearInterval() flash.utils.clearInterval() null nullclearTimeout() flash.utils.clearTimeout() _quality flash.display.Stage.quality undefined undefinedduplicateMovieClip() flash.display.MovieClip.MovieClip() _root flash.display.DisplayObject.stageeval() Removed scroll flash.text.TextField Operatorsfscommand() flash.system.fscommand() _soundbuftime flash.media.SoundMixer.bufferTime Removed addgetProperty() Removed this this eq RemovedgetTimer() flash.utils.getTimer() gt RemovedgetURL() flash.net.navigateToURL() AS2 AS3 ge RemovedgetVersion() flash.system.Capabilities.version <> Removed Array classgotoAndPlay() flash.display.MovieClip.gotoAndPlay() instanceof is CASEINSENSITIVE Constant Array.CASEINSENSITIVE lt RemovedgotoAndStop() flash.display.MovieClip.gotoAndStop() DESCENDING Constant Array.DESCENDING le RemovedifFrameLoaded() flash.display.MovieClip.framesLoaded length Property Array.length and Removedint() int() Removed NUMERIC Constant Array.NUMERIC notlength() String.length or Removed RETURNINDEXEDARRAY:Cnst Array.RETURNINDEXEDARRAYloadMovie() flash.display.Loader ne Removed UNIQUESORT Constant Array.UNIQUESORTloadMovieNum() flash.display.Loader AS2 Array Constructor AS2 Array.Array() StatementsloadVariables() flash.net.URLLoader push() Method Array.push() delete deleteloadVariablesNum() flash.net.URLLoader sort() Method Array.sort() import importmbchr() String.fromCharCode() Removed sortOn() Method Array.sortOn() intrinsicmblength() String.length private private splice() Method Array.splice()mbord() String.charCodeAt() set variable Removed unshift() Method Array.unshift()mbsubstring() String.substr() super supernextFrame() flash.display.MovieClip.nextFrame() AS2 AS3 arguments classnextScene() flash.display.MovieClip.nextScene() caller Property Removedon() flash.events.EventDispatcher BitmapData class flash.display.BitmapDataonClipEvent() flash.events.EventDispatcher height Property[read-only] flash.display.BitmapData.heightord() String rectangle Property[read-only] flash.display.BitmapData.rectparseInt() parseInt() width Property[read-only] flash.display.BitmapData.widthplay() flash.display.MovieClip.play() copyChannel() Method flash.display.BitmapData.copyChannel()prevFrame() flash.display.MovieClip.prevFrame() draw() Method flash.display.BitmapData.draw()prevScene() flash.display.MovieClip.prevScene() fillRect() Method flash.display.BitmapData.fillRect()print() flash.printing.PrintJob floodFill() Method flash.display.BitmapData.floodFill()printAsBitmap() flash.printing.PrintJob getColorBoundsRect() Method flash.display.BitmapData.getColorBoundsRect()printAsBitmapNum() flash.printing.PrintJob getPixel() Method flash.display.BitmapData.getPixel()printNum() flash.printing.PrintJob getPixel32() Method flash.display.BitmapData.getPixel32()random() Math.random() hitTest() Method flash.display.BitmapData.hitTest()removeMovieClip() Removed loadBitmap() Method RemovedsetInterval() flash.utils.setInterval() merge() Method flash.display.BitmapData.merge()setProperty() Removed noise() Method flash.display.BitmapData.noise()setTimeout() flash.utils.setTimeout() perlinNoise() Method flash.display.BitmapData.perlinNoise()showRedrawRegions() flash.profiler.showRedrawRegions() pixelDissolve() Method flash.display.BitmapData.pixelDissolve()startDrag() flash.display.Sprite.startDrag() scroll() Method flash.display.BitmapData.scroll()stop() flash.display.MovieClip.stop() setPixel() Method flash.display.BitmapData.setPixel()stopAllSounds() flash.media.SoundMixer.stopAll() setPixel32() Method flash.display.BitmapData.setPixel32()stopDrag() flash.display.Sprite.stopDrag() threshold() Method flash.display.BitmapData.threshold()substring() String.substring()targetPath() Removed BlurFilter classtellTarget() Removed quality Property flash.filters.BlurFilter.qualitytoggleHighQuality() flash.display.Stage.qualitytrace() trace() Accessibility class flash.accessibility.AccessibilityunloadMovie() flash.display.Loader.unload() isActive() flash.accessibility.Accessibility.activeunloadMovieNum() flash.display.Loader.unload() updateProperties() flash.accessibility.Accessibility.updateProperties()updateAfterEvent() flash.events.TimerEvent.updateAfterEvent() AsBroadcaster class flash.events.EventDispatcher _listeners Property[read-only] flash.events.EventDispatcher.willTrigger()Color class flash.geom.ColorTransform addListener() Method flash.events.EventDispatcher.addEventListener()Color Constructor flash.geom.ColorTransform.ColorTransform() broadcastMessage() Method flash.events.EventDispatcher.dispatchEvent()getRGB() Method flash.geom.ColorTransform.color initialize() Method RemovedgetTransform() Method Removed removeListener() Method flash.events.EventDispatcher.removeEventListener()setRGB() Method flash.geom.ColorTransform.colorsetTransform() Method Removed capabilities class flash.system.Capabilities Date class DateConvolutionFilter class getUTCYear() Method Date.getUTCFullYear() getYear() Method Date.getFullYear()clone() Method flash.filters.ConvolutionFilter.clone() setYear() Method Date.setFullYear()
    • AS3 Migration AS2 AS3 Camera class flash.media.Camera activityLevel Property[read-only] flash.media.Camera.activityLevel AS2 AS3 bandwidth Property[read-only] flash.media.Camera.bandwidth Button class flash.display.SimpleButton currentFps Property[read-only] flash.media.Camera.currentFPS _alpha Property flash.display.DisplayObject.alpha fps Property[read-only] flash.media.Camera.fps blendMode Property flash.display.DisplayObject.blendMode height Property[read-only] flash.media.Camera.height cacheAsBitmap Property flash.display.DisplayObject.cacheAsBitmap index Property[read-only] flash.media.Camera.index enabled Property flash.display.SimpleButton.enabled motionLevel Property[read-only] flash.media.Camera.motionLevel filters Property flash.display.DisplayObject.filters motionTimeOut Property[read-only] flash.media.Camera.motionTimeout _focusrect Property flash.display.InteractiveObject.focusRect muted Property[read-only] flash.media.Camera.muted _height Property flash.display.DisplayObject.height name Property[read-only] flash.media.Camera.name _highquality Property Removed names Property[read-only] flash.media.Camera.names _name Property flash.display.DisplayObject.name quality Property[read-only] flash.media.Camera.quality _parent Property flash.display.DisplayObject.parent width Property[read-only] flash.media.Camera.width _quality Property Removed get() Method flash.media.Camera.getCamera() _rotation Property flash.display.DisplayObject.rotation onActivity() EventHandler flash.events.ActivityEvent.ACTIVITY scale9Grid Property flash.display.DisplayObject.scale9Grid onStatus() EventHandler flash.media.Camera dispatches event: status _soundbuftime Property flash.media.SoundMixer.bufferTime setMode() Method flash.media.Camera.setMode() tabEnabled Property flash.display.InteractiveObject.tabEnabled setMotionLevel() Method flash.media.Camera.setMotionLevel() tabIndex Property flash.display.InteractiveObject.tabIndex setQuality() Method flash.media.Camera.setQuality() _target Property[read-only] Removed trackAsMenu Property flash.display.SimpleButton.trackAsMenu ContextMenu class flash.ui.ContextMenu _url Property[read-only] Removed builtInItems Property flash.ui.ContextMenu.builtInItems useHandCursor Property flash.display.SimpleButton.useHandCursor customItems Property flash.ui.ContextMenu.customItems _visible Property flash.display.DisplayObject.visible ContextMenu Constructor flash.ui.ContextMenu.ContextMenu() _width Property flash.display.DisplayObject.width copy() Method flash.ui.ContextMenu.clone() _x Property flash.display.DisplayObject.x hideBuiltInItems() Method flash.ui.ContextMenu.hideBuiltInItems() _xmouse Property[read-only] flash.display.DisplayObject.mouseX onSelect() EventHandler flash.ui.ContextMenu dispatches event: menuSelect _xscale Property flash.display.DisplayObject.scaleX FileReference class flash.net.FileReference _y Property flash.display.DisplayObject.y postData Property flash.net.URLRequest.data _ymouse Property[read-only] flash.display.DisplayObject.mouseY size Property[read-only] flash.net.FileReference.size _yscale Property flash.display.DisplayObject.scaleY addListener() Method flash.events.EventDispatcher.addEventListener() getDepth() Method flash.display.DisplayObjectContainer.getChildIndex() browse() Method flash.net.FileReference.browse() onDragOut() EventHandler flash.display.InteractiveObject dispatches event: mouseOut download() Method flash.net.FileReference.download() onDragOver() EventHandler flash.display.InteractiveObject dispatches event: mouseOver removeListener() Method flash.events.EventDispatcher.removeEventListener() onKeyDown() EventHandler flash.display.InteractiveObject dispatches event: keyDown upload() Method flash.net.FileReference.upload() onKeyUp() EventHandler flash.display.InteractiveObject dispatches event: keyUp onCancel Listener flash.net.FileReference dispatches event: cancel onKillFocus() EventHandler flash.display.InteractiveObject dispatches event: focusOutActionScript 3.0 onComplete Listener flash.net.FileReference dispatches event: complete www.actionscriptcheatsheet.com onPress() EventHandler flash.display.InteractiveObject dispatches event: mouseDown onHTTPError Listener flash.net.FileReference dispatches event: httpStatus onRelease() EventHandler flash.display.InteractiveObject dispatches event: mouseUp onIOError Listener flash.net.FileReference dispatches event: ioError onReleaseOutside() EventHandler flash.display.InteractiveObject dispatches event: mouseUp onOpen Listener flash.net.FileReference dispatches event: open onRollOut() EventHandler flash.display.InteractiveObject dispatches event: mouseOut onProgress Listener flash.net.FileReference dispatches event: progress onRollOver() EventHandler flash.display.InteractiveObject dispatches event: mouseOver onSecurityError Listener flash.net.FileReference dispatches event: securityError onSetFocus() EventHandler flash.display.InteractiveObject dispatches event: focusIn onSelect Listener flash.net.FileReference dispatches event: select GlowFilter class flash.filters.GlowFilter onUploadCompleteData flash.net.FileReference dispatches event: complete color Property flash.filters.GlowFilter.color info@seantheflashguy.com quality Property flash.filters.GlowFilter.quality FileReferenceList class flash.net.FileReferenceList GlowFilter Constructor flash.filters.GlowFilter.GlowFilter() addListener() Method flash.events.EventDispatcher.addEventListener() clone() Method flash.filters.GlowFilter.clone() browse() Method flash.net.FileReferenceList.browse() removeListener() Method flash.events.EventDispatcher.removeEventListener() GradientBevelFilter class flash.filters.GradientBevelFilter onCancel Listener flash.net.FileReferenceList dispatches event: cancel quality Property flash.filters.GradientBevelFilter.quality onSelect Listener flash.net.FileReferenceList dispatches event: select clone() Method flash.filters.GradientBevelFilter.clone() GradientGlowFilter class flash.filters.GradientGlowFilter Error class Error quality Property flash.filters.GradientGlowFilter.quality ExternalInterface class flash.external.ExternalInterface GradientGlowFilter Constructor flash.filters.GradientGlowFilter.GradientGlowFilter() addCallback() Method flash.external.ExternalInterface.addCallback() clone() Method flash.filters.GradientGlowFilter.clone() call() Method flash.external.ExternalInterface.call()
    • AS3 Migration AS2 AS3 IME class flash.system.IME AS2 AS3 ALPHANUMERIC_FULL Constant flash.system.IMEConversionMode.ALPHANUMERIC_FULL ALPHANUMERIC_HALF Constant flash.system.IMEConversionMode.ALPHANUMERIC_HALF Key class flash.ui.Keyboard CHINESE Constant flash.system.IMEConversionMode.CHINESE BACKSPACE Constant flash.ui.Keyboard.BACKSPACE JAPANESE_HIRAGANA Constant flash.system.IMEConversionMode.JAPANESE_HIRAGANA CAPSLOCK Constant flash.ui.Keyboard.CAPS_LOCK JAPANESE_KATAKANA_FULL Constant flash.system.IMEConversionMode.JAPANESE_KATAKANA_FULL CONTROL Constant flash.ui.Keyboard.CONTROL JAPANESE_KATAKANA_HALF Constant flash.system.IMEConversionMode.JAPANESE_KATAKANA_HALF DELETEKEY Constant flash.ui.Keyboard.DELETE KOREAN Constant flash.system.IMEConversionMode.KOREAN DOWN Constant flash.ui.Keyboard.DOWN UNKNOWN Constant flash.system.IMEConversionMode.UNKNOWN END Constant flash.ui.Keyboard.END addListener() Method flash.events.EventDispatcher.addEventListener() ENTER Constant flash.ui.Keyboard.ENTER getConversionMode() Method flash.system.IME.conversionMode ESCAPE Constant flash.ui.Keyboard.ESCAPE getEnabled() Method flash.system.IME.enabled HOME Constant flash.ui.Keyboard.HOME removeListener() Method flash.events.EventDispatcher.removeEventListener() INSERT Constant flash.ui.Keyboard.INSERT setConversionMode() Method flash.system.IME.conversionMode LEFT Constant flash.ui.Keyboard.LEFT setEnabled() Method flash.system.IME.enabled _listeners Property[read-only] flash.events.EventDispatcher.willTrigger() onIMEComposition Listener flash.system.IME dispatches event: imeComposition PGDN Constant flash.ui.Keyboard.PAGE_DOWN PGUP Constant flash.ui.Keyboard.PAGE_UP DisplacementMapFilter class flash.filters.DisplacementMapFilter RIGHT Constant flash.ui.Keyboard.RIGHT color Property flash.filters.DisplacementMapFilter.color SHIFT Constant flash.ui.Keyboard.SHIFT componentX Property flash.filters.DisplacementMapFilter.componentX SPACE Constant flash.ui.Keyboard.SPACE componentY Property flash.filters.DisplacementMapFilter.componentY TAB Constant flash.ui.Keyboard.TAB DisplacementMapFilter Constructor flash.filters.DisplacementMapFilter.DisplacementMapFilter() UP Constant flash.ui.Keyboard.UP clone() Method flash.filters.DisplacementMapFilter.clone() addListener() Method flash.events.EventDispatcher.addEventListener() LocalConnection class flash.net.LocalConnection getAscii() Method flash.events.KeyboardEvent.charCode LocalConnection Constructor flash.net.LocalConnection.LocalConnection() getCode() Method flash.events.KeyboardEvent.keyCode allowDomain() EventHandler flash.net.LocalConnection.allowDomain() isAccessible() Method flash.ui.Keyboard.isAccessible() allowInsecureDomain() EventHandler flash.net.LocalConnection.allowInsecureDomain() isDown() Method Removed close() Method flash.net.LocalConnection.close() isToggled() Method Removed connect() Method flash.net.LocalConnection.connect() removeListener() Method flash.events.EventDispatcher.removeEventListener() domain() Method flash.net.LocalConnection.domain onKeyDown Listener flash.display.InteractiveObject dispatches event: keyDown onStatus() EventHandler flash.net.LocalConnection dispatches event: status onKeyUp Listener flash.display.InteractiveObject dispatches event: keyUp send() Method flash.net.LocalConnection.send() flash.media.Microphone Mouse class flash.ui.Mouse Microphone class flash.events.EventDispatcher.addEventListener() addListener() Method index Property[read-only] flash.media.Microphone.index hide() Method flash.ui.Mouse.hide() rate Property[read-only] flash.media.Microphone.rate flash.media.Microphone.silenceTimeout removeListener() Method flash.events.EventDispatcher.removeEventListener() silenceTimeOut Property[read-only] get() Method flash.media.Microphone.getMicrophone() show() Method flash.ui.Mouse.show() onActivity() EventHandler flash.media.Microphone dispatches event: activity onMouseDown Listener flash.display.InteractiveObject dispatches event: mouseDown onStatus() EventHandler flash.media.Microphone dispatches event: status onMouseMove Listener flash.display.InteractiveObject dispatches event: mouseMoveActionScript 3.0 www.actionscriptcheatsheet.com setGain() Method flash.media.Microphone.gain onMouseUp Listener flash.display.InteractiveObject dispatches event: mouseUp setRate() Method flash.media.Microphone.rate onMouseWheel Listener flash.display.InteractiveObject dispatches event: mouseWheel setSilenceLevel() Method flash.media.Microphone.setSilenceLevel() setUseEchoSuppression() Method flash.media.Microphone.setUseEchoSuppression() NetConnection class flash.net.NetConnection LoadVars class flash.net.URLLoader NetConnection Constructor flash.net.NetConnection.NetConnection() contentType Property flash.net.URLRequest.contentType connect() Constructor flash.net.NetConnection.connect() loaded Property Removed LoadVars Constructor flash.net.URLLoader.URLLoader() NetStream class flash.net.NetStream info@seantheflashguy.com addRequestHeader() Method flash.net.URLRequestHeader bytesLoaded Property[read-only] flash.net.NetStream.bytesLoaded decode() Method flash.net.URLVariables.decode() bytesTotal Property[read-only] flash.net.NetStream.bytesTotal getBytesLoaded() Method flash.net.URLLoader.bytesLoaded currentFps Property[read-only] flash.net.NetStream.currentFPS getBytesTotal() Method flash.net.URLLoader.bytesTotal onStatus() EventHandler flash.net.NetStream dispatches event: netStatus load() Method flash.net.URLLoader.load() pause() Method flash.net.NetStream.pause() onData() EventHandler flash.net.URLLoader dispatches event: complete play() Method flash.net.NetStream.play() onHTTPStatus() EventHandler flash.net.URLLoader dispatches event: httpStatus setBufferTime() Method flash.net.NetStream.bufferTime onLoad() EventHandler flash.net.URLLoader dispatches event: complete Number class Number send() Method flash.net.sendToURL() Number Constructor Number.Number() sendAndLoad() Method flash.net.sendToURL() toString() Method Removed
    • MovieClip class flash.display.MovieClip AS2 AS3AS3 Migration _alpha Property blendMode Property flash.display.DisplayObject.alpha flash.display.DisplayObject.blendMode MovieClip class flash.display.MovieClip loadMovie() Method flash.display.Loader.load() cacheAsBitmap Property flash.display.DisplayObject.cacheAsBitmap loadVariables() Method flash.net.URLLoader _currentframe Property[read-only] flash.display.MovieClip.currentFrame localToGlobal() Method flash.display.DisplayObject.localToGlobal() _droptarget Property[read-only] flash.display.Sprite.dropTarget moveTo() Method flash.display.Graphics.moveTo() filters Property flash.display.DisplayObject.filters nextFrame() Method flash.display.MovieClip.nextFrame() focusEnabled Property Removed onData() EventHandler flash.display.LoaderInfo dispatches event: complete _focusrect Property flash.display.InteractiveObject.focusRect onDragOut() EventHandler flash.display.InteractiveObject dispatches event: mouseOut _framesloaded Property[read-only] flash.display.MovieClip.framesLoaded onDragOver() EventHandler flash.display.InteractiveObject dispatches event: mouseOver _height Property flash.display.DisplayObject.height onEnterFrame() EventHandler flash.display.DisplayObject dispatches event: enterFrame _highquality Property Removed onKeyDown() EventHandler flash.display.InteractiveObject dispatches event: keyDown hitArea Property flash.display.Sprite.hitArea onKeyUp() EventHandler flash.display.InteractiveObject dispatches event: keyUp _lockroot Property Removed onKillFocus() EventHandler flash.display.InteractiveObject dispatches event: focusOut menu Property Removed onLoad() EventHandler flash.display.LoaderInfo dispatches event: complete _name Property flash.display.DisplayObject.name onMouseDown() EventHandler flash.display.InteractiveObject dispatches event: mouseDown opaqueBackground Property flash.display.DisplayObject.opaqueBackground onMouseMove() EventHandler flash.display.InteractiveObject dispatches event: mouseMove _parent Property flash.display.DisplayObject.parent onMouseUp() EventHandler flash.display.InteractiveObject dispatches event: mouseUp _quality Property flash.display.Stage.quality onPress() EventHandler flash.display.InteractiveObject dispatches event: mouseDown _rotation Property flash.display.DisplayObject.rotation onRelease() EventHandler flash.display.InteractiveObject dispatches event: mouseUp scale9Grid Property flash.display.DisplayObject.scale9Grid onReleaseOutside() EventHandler flash.display.InteractiveObject dispatches event: mouseUp scrollRect Property flash.display.DisplayObject.scrollRect onRollOut() EventHandler flash.display.InteractiveObject dispatches event: mouseOut _soundbuftime Property flash.media.SoundMixer.bufferTime onRollOver() EventHandler flash.display.InteractiveObject dispatches event: mouseOver tabChildren Property flash.display.DisplayObjectContainer.tabChildren onSetFocus() EventHandler flash.display.InteractiveObject dispatches event: focusIn tabEnabled Property flash.display.InteractiveObject.tabEnabled onUnload() EventHandler flash.display.LoaderInfo dispatches event: unload tabIndex Property flash.display.InteractiveObject.tabIndex play() Method flash.display.MovieClip.play() _target Property[read-only] Removed prevFrame() Method flash.display.MovieClip.prevFrame() _totalframes Property[read-only] flash.display.MovieClip.totalFrames removeMovieClip() Method flash.display.DisplayObjectContainer.removeChild() trackAsMenu Property flash.display.MovieClip.trackAsMenu setMask() Method flash.display.DisplayObject.mask transform Property flash.display.DisplayObject.transform startDrag() Method flash.display.Sprite.startDrag() _url Property[read-only] flash.display.Loader.contentLoaderInfo stop() Method flash.display.MovieClip.stop() useHandCursor Property flash.display.Sprite.useHandCursor stopDrag() Method flash.display.Sprite.stopDrag() _visible Property flash.display.DisplayObject.visible swapDepths() Method Removed _width Property flash.display.DisplayObject.width unloadMovie() Method flash.display.Loader.unload() _x Property flash.display.DisplayObject.x _xmouse Property[read-only] flash.display.DisplayObject.mouseX Sound class flash.media.Sound _xscale Property flash.display.DisplayObject.scaleX checkPolicyFile flash.media.SoundChannel.stop() _y Property flash.display.DisplayObject.y duration Property[read-only] flash.media.Sound.length _ymouse Property[read-only] flash.display.DisplayObject.mouseY id3 Property[read-only] flash.media.Sound.id3 _yscale Property flash.display.DisplayObject.scaleY position Property[read-only] flash.media.SoundChannel.position attachAudio() Method Removed attachSound() Method Removed attachBitmap() Method Removed getBytesLoaded() Method flash.media.Sound.bytesLoaded attachMovie() Method Removed getBytesTotal() Method flash.media.Sound.bytesTotal beginBitmapFill() Method flash.display.Graphics.beginBitmapFill() getPan() Method flash.media.SoundTransform.pan beginFill() Method flash.display.Graphics.beginFill() getTransform() Method flash.media.SoundMixer.soundTransform beginGradientFill() Method flash.display.Graphics.beginGradientFill() flash.media.SoundTransform.volumeActionScript 3.0 getVolume() Method www.actionscriptcheatsheet.com clear() Method flash.display.Graphics.clear() loadSound() Method flash.media.Sound.load() createEmptyMovieClip() Method Removed onID3() EventHandler flash.media.Sound dispatches event: id3 createTextField() Method Removed onLoad() EventHandler flash.media.Sound dispatches event: complete curveTo() Method flash.display.Graphics.curveTo() onSoundComplete() EventHandler flash.media.SoundChannel dispatches event: soundComplete duplicateMovieClip() Method Removed setPan() Method flash.media.SoundTransform.pan endFill() Method flash.display.Graphics.endFill() setTransform() Method flash.media.SoundMixer.soundTransform getBounds() Method flash.display.DisplayObject.getBounds() setVolume() Method flash.media.SoundChannel getBytesLoaded() Method flash.net.URLLoader.bytesLoaded start() Method flash.media.Sound.play() getBytesTotal() Method flash.net.URLLoader.bytesTotal stop() Method flash.media.SoundChannel.stop() info@seantheflashguy.com getDepth() Method flash.display.DisplayObjectContainer.getChildIndex() getInstanceAtDepth() Method flash.display.DisplayObjectContainer.getChildAt() MovieClipLoader class flash.display.Loader getNextHighestDepth() Method flash.display.DisplayObjectContainer.addChild() MovieClipLoader Constructor flash.display.Loader.Loader() getRect() Method flash.display.DisplayObject.getRect() addListener() Method flash.events.EventDispatcher.addEventListener() getSWFVersion() Method flash.display.LoaderInfo.swfVersion getProgress() Method flash.display.LoaderInfo dispatches event: progress getTextSnapshot() Method flash.display.DisplayObjectContainer.textSnapshot loadClip() Method flash.display.Loader.load() getURL() Method flash.net.navigateToURL() removeListener() Method flash.events.EventDispatcher.removeEventListener() globalToLocal() Method flash.display.DisplayObject.globalToLocal() unloadClip() Method flash.display.Loader.unload() gotoAndStop() Method flash.display.MovieClip.gotoAndStop() onLoadComplete Listener flash.display.LoaderInfo dispatches event: complete hitTest() Method flash.display.DisplayObject.hitTestObject() onLoadError Listener flash.display.LoaderInfo dispatches event: ioError lineGradientStyle() Method flash.display.Graphics.lineGradientStyle() onLoadInit Listener flash.display.LoaderInfo dispatches event: init lineStyle() Method flash.display.Graphics.lineStyle() onLoadProgress Listener flash.display.LoaderInfo dispatches event: progress lineTo() Method flash.display.Graphics.lineTo() onLoadStart Listener flash.display.LoaderInfo dispatches event: open
    • ActionScript 3.0 AS3 Migration www.actionscriptcheatsheet.com info@seantheflashguy.comAS2 AS3 AS2 AS3 Object class ObjectString class String __proto__ Property Removedconcat() Method String.concat() __resolve Property flash.utils.ProxyStyleSheet class flash.text.StyleSheet addProperty() Method RemovedStyleSheet Constructor flash.text.StyleSheet.StyleSheet() registerClass() Method Removedclear() Method flash.text.StyleSheet.clear() unwatch() Method RemovedgetStyle() Method flash.text.StyleSheet.getStyle() watch() Method RemovedgetStyleNames() Method flash.text.StyleSheet.styleNamesload() Method flash.net.URLLoader.load() PrintJob class flash.printing.PrintJobonLoad() EventHandler flash.net.URLLoader dispatches event: completeparseCSS() Method flash.text.StyleSheet.parseCSS() orientation Property[read-only] flash.printing.PrintJob.orientationsetStyle() Method flash.text.StyleSheet.setStyle() pageHeight Property[read-only] flash.printing.PrintJob.pageHeighttransform() Method flash.text.StyleSheet.transform() pageWidth Property[read-only] flash.printing.PrintJob.pageWidth paperHeight Property[read-only] flash.printing.PrintJob.paperHeightsecurity class flash.system.Security paperWidth Property[read-only] flash.printing.PrintJob.paperWidthSystem class flash.system.System PrintJob Constructor flash.printing.PrintJob.PrintJob() addPage() Method flash.printing.PrintJob.addPage()exactSettings Property flash.system.Security.exactSettingsuseCodepage Property flash.system.System.useCodePage send() Method flash.printing.PrintJob.send()onStatus() EventHandler Removed start() Method flash.printing.PrintJob.start()setClipboard() Method flash.system.System.setClipboard()showSettings() Method flash.system.Security.showSettings() Rectangle class flash.printing.PrintJob containsRectangle() Method flash.geom.Rectangle.containsRect()SharedObject class flash.net.SharedObjectflush() Method flash.net.SharedObject.flush() TextFormat class flash.text.TextFormatgetSize() Method flash.net.SharedObject.size align Property flash.text.TextFormat.alignonStatus() EventHandler flash.net.SharedObject dispatches event: netStatus blockIndent Property flash.text.TextFormat.blockIndent bold Property flash.text.TextFormat.boldStage class flash.display.Stage bullet Property flash.text.TextFormat.bulletalign Property flash.display.Stage.align color Property flash.text.TextFormat.colorheight Property flash.display.Stage.stageHeight font Property flash.text.TextFormat.fontscaleMode Property flash.display.Stage.scaleMode indent Property flash.text.TextFormat.indentshowMenu Property flash.display.Stage.showDefaultContextMenu italic Property flash.text.TextFormat.bulletwidth Property flash.display.Stage.stageWidth kerning Property flash.text.TextFormat.kerningaddListener() Method flash.events.EventDispatcher.addEventListener() leading Property flash.text.TextFormat.leading leftMargin Property flash.text.TextFormat.leftMarginremoveListener() Method flash.events.EventDispatcher.removeEventListener() letterSpacing Property flash.text.TextFormat.letterSpacingonResize Listener flash.display.Stage dispatches event: resize rightMargin Property flash.text.TextFormat.rightMargin size Property flash.text.TextFormat.sizeTextSnapshot class flash.text.TextSnapshot underline Property flash.text.TextFormat.underlinefindText() Method flash.text.TextSnapshot.findText() url Property flash.text.TextFormat.urlgetCount() Method flash.text.TextSnapshot.charCount TextFormat Constructor flash.text.TextFormat.TextFormat()getSelected() Method flash.text.TextSnapshot.getSelected() getTextExtent() Method RemovedgetSelectedText() Method flash.text.TextSnapshot.getSelectedText() flash.media.Video Video classgetText() Method flash.text.TextSnapshot.getText() _alpha Property flash.display.DisplayObject.alphagetTextRunInfo() Method flash.text.TextSnapshot.getTextRunInfo() deblocking Property flash.media.Video.deblockinghitTestTextNearPos() Method flash.text.TextSnapshot.hitTestTextNearPos() _height Property flash.display.DisplayObject.heightsetSelectColor() Method flash.text.TextSnapshot.setSelectColor() height Property[read-only] flash.media.Video.videoHeightsetSelected() Method flash.text.TextSnapshot.setSelected() _name Property flash.display.DisplayObject.name _parent Property flash.display.DisplayObject.parentSelection class Removed _rotation Property flash.display.DisplayObject.rotationaddListener() Method flash.events.EventDispatcher.addEventListener()getBeginIndex() Method flash.text.TextField.selectionBeginIndex smoothing Property flash.media.Video.smoothinggetCaretIndex() Method flash.text.TextField.caretIndex _visible Property flash.display.DisplayObject.visiblegetEndIndex() Method flash.text.TextField.selectionEndIndex _width Property flash.display.DisplayObject.widthgetFocus() Method AS2 flash.display.Stage.focus width Property[read-only] flash.media.Video.videoWidthremoveListener() Method flash.events.EventDispatcher.removeEventListener() _x Property flash.display.DisplayObject.xsetFocus() Method flash.display.Stage.focus _xmouse Property[read-only] flash.display.DisplayObject.mouseXsetSelection() Method flash.text.TextField.setSelection() _xscale Property flash.display.DisplayObject.scaleXonSetFocus Listener flash.display.InteractiveObject dispatches event: focusIn _y Property flash.display.DisplayObject.y _ymouse Property[read-only] flash.display.DisplayObject.mouseY _yscale Property flash.display.DisplayObject.scaleY attachVideo() Method flash.media.Video.attachNetStream()AS2 AS3 clear() Method flash.media.Video.clear()TextRenderer class flash.text.TextRenderermaxLevel Property flash.text.TextRenderer.maxLevelsetAdvancedAntialiasingTable() Method flash.text.TextRenderer.setAdvancedAntiAliasingTable()
    • ActionScript 3.0 AS3 Migration www.actionscriptcheatsheet.com info@seantheflashguy.comAS2 AS3TextField class flash.text.TextField XML class flash.xml.XMLDocument_alpha Property flash.display.DisplayObject.alpha contentType Property flash.net.URLRequest.contentTypeantiAliasType Property flash.text.TextField.antiAliasType docTypeDecl Property flash.xml.XMLDocument.docTypeDeclautoSize Property flash.text.TextField.autoSize idMap Property flash.xml.XMLDocument.idMapbackground Property flash.text.TextField.background ignoreWhite Property flash.xml.XMLDocument.ignoreWhitebackgroundColor Property flash.text.TextField.backgroundColor loaded Property Removedborder Property flash.text.TextField.border status Property RemovedborderColor Property flash.text.TextField.borderColor xmlDecl Property flash.xml.XMLDocument.xmlDeclbottomScroll Property[read-only] flash.text.TextField.bottomScrollV XML Constructor flash.xml.XMLDocument.XMLDocument()condenseWhite Property flash.text.TextField.condenseWhite addRequestHeader() Method flash.net.URLRequest.requestHeadersembedFonts Property flash.text.TextField.embedFonts createElement() Method flash.xml.XMLDocument.createElement()filters Property flash.display.DisplayObject.filters createTextNode() Method flash.xml.XMLDocument.createTextNode()gridFitType Property flash.text.TextField.gridFitType getBytesLoaded() Method flash.net.URLLoader.bytesLoaded_height Property flash.display.DisplayObject.height getBytesTotal() Method flash.net.URLLoader.bytesTotal_highquality Property flash.display.Stage.quality load() Method Removedhscroll Property flash.text.TextField.scrollH onData() EventHandler flash.net.URLLoader dispatches event: completehtml Property flash.text.TextField.htmlText onHTTPStatus() EventHandler flash.net.URLLoader dispatches event: httpStatushtmlText Property flash.text.TextField.htmlText onLoad() EventHandler flash.net.URLLoader dispatches event: completelength Property[read-only] flash.text.TextField.length parseXML() Method flash.xml.XMLDocument.parseXML()maxChars Property flash.text.TextField.maxChars send() Method Removedmaxhscroll Property[read-only] flash.text.TextField.maxScrollH sendAndLoad() Method Removedmaxscroll Property[read-only] flash.text.TextField.maxScrollVmenu Property flash.display.InteractiveObject.contextMenu XMLNode class flash.xml.XMLNodemouseWheelEnabled Property flash.text.TextField.mouseWheelEnabled nodeType Property[read-only] flash.xml.XMLNode.nodeTypemultiline Property flash.text.TextField.multiline XMLNode Constructor flash.xml.XMLNode.XMLNode()_name Property flash.display.DisplayObject.name_parent Property flash.display.DisplayObject.parent XMLSocket class flash.net.XMLSocketpassword Property flash.text.TextField.displayAsPassword XMLSocket Constructor flash.net.XMLSocket.XMLSocket()_quality Property flash.display.Stage.quality connect() Method flash.net.XMLSocket.connect()restrict Property flash.text.TextField.restrict onClose() EventHandler flash.net.XMLSocket dispatches event: close_rotation Property flash.display.DisplayObject.rotation onConnect() EventHandler flash.net.XMLSocket dispatches event: connectscroll Property flash.text.TextField.scrollV onData() EventHandler flash.net.XMLSocket dispatches event: dataselectable Property flash.text.TextField.selectable onXML() EventHandler Removedsharpness Property flash.text.TextField.sharpness_soundbuftime Property flash.media.SoundMixer.bufferTimestyleSheet Property flash.text.TextField.styleSheettabEnabled Property flash.display.InteractiveObject.tabEnabledtabIndex Property flash.display.InteractiveObject.tabIndex_target Property[read-only] Removedtext Property flash.text.TextField.texttextColor Property flash.text.TextField.textColortextHeight Property flash.text.TextField.textHeighttextWidth Property flash.text.TextField.textWidththickness Property flash.text.TextField.thicknesstype Property flash.text.TextField.type_url Property[read-only] flash.display.LoaderInfo.urlvariable Property Removed_visible Property flash.display.DisplayObject.visible_width Property flash.display.DisplayObject.widthwordWrap Property flash.text.TextField.wordWrap_x Property flash.display.DisplayObject.x_xmouse Property[read-only] flash.display.DisplayObject.mouseX_xscale Property flash.display.DisplayObject.scaleX_y Property flash.display.DisplayObject.y_ymouse Property[read-only] flash.display.DisplayObject.mouseY_yscale Property flash.display.DisplayObject.scaleYaddListener() Method flash.events.EventDispatcher.addEventListener()getDepth() Method flash.display.DisplayObjectContainergetFontList() Method flash.text.Font.enumerateFonts()getNewTextFormat() Method flash.text.TextField.defaultTextFormatgetTextFormat() Method flash.text.TextField.getTextFormat()onChanged() EventHandler flash.text.TextField dispatches event: changeonKillFocus() EventHandler flash.display.InteractiveObject dispatches event: focusOutonScroller() EventHandler flash.text.TextField dispatches event: scrollonSetFocus() EventHandler flash.display.InteractiveObject dispatches event: focusInremoveListener() Method flash.events.EventDispatcher.removeEventListener()removeTextField() Method flash.display.DisplayObjectContainer.removeChild()replaceSel() Method flash.text.TextField.replaceSelectedText()replaceText() Method flash.text.TextField.replaceText()setNewTextFormat() Method flash.text.TextField.defaultTextFormatsetTextFormat() Method flash.text.TextField.setTextFormat()