Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 6th, 2012  |  syntax: None  |  size: 6.51 KB  |  views: 185  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. by Thibault Imbert
  2.  
  3. Flash Player 11.3/AIR 3.3I am excited to announce the public beta of Flash Player 11.3 and AIR 3.3.
  4.  
  5. This release includes a lot of little improvements that we included to either improve your workflow today for mobile development or simply add the things you always wondered why it was not there.
  6.  
  7. We also added key features like fullscreen text input to enable better gaming experiences for you developers leveraging fullscreen capabilities.
  8.  
  9. As we mentioned at Max last year, we have in the team an initiative called JDI (Just do it) where the goal is to add those little things which makes your life easier as a developer.
  10.  
  11. It is generally a very little feature, in the team, we like to say "Tiny APIs, big impact", cause it just makes things easier and better.
  12.  
  13. Here is below the list of improvements/features added to this release:
  14.  
  15.     Frame-label events
  16.  
  17. To make things easier when working with timeline assets, you can now register a listener to a FrameLabel object.
  18. Example:
  19.  
  20. var frame:FrameLabel = mc.currentLabels[0];
  21.  
  22. frame.addEventListener(Event.FRAME_LABEL, onFrame);
  23.  
  24.     Silent auto update for Mac
  25.  
  26. We introduced this feature on Windows in Flash Player 11.2. Now, Flash Player 11.3 also gets silent auto update on MacOS. Faster penetration now on both platforms.
  27.  
  28.     Audio latency improvements
  29.  
  30. This enhancement reduces the latency for Sound.play method and changes to volume and pan on SoundTransform.
  31. The latency of SampleDataEvent.SAMPLE_DATA event should also be reduced considerably. For an input sample size of 2048, the latency should be optimal.
  32.  
  33.     Reduced latency for un-buffered audio playback
  34.  
  35. The goal of this feature is to reduce latency for live un-buffered audio playback for all supported codecs.
  36. The feature must be explicitly enabled. Application must use un-buffered playback NetStream.bufferTime = 0 and set NetStream.useJitterBuffer = true to enable the feature.
  37.  
  38.     Fullscreen text input
  39.  
  40. Yes! You read it right. Enable full support for all keyboard keys available to an embedded SWF running in full screen mode.
  41. To enable it, two things. First, enable it through the new HTML parameter:
  42.  
  43. <param name=”allowFullScreenInteractive” value=”true”/>
  44.  
  45. Which is then reflected through the new stage property:
  46.  
  47. trace(stage.allowsFullScreenInteractive);
  48.  
  49. To trigger it, just use the new StageDisplayState.FULL_SCREEN_INTERACTIVE constant:
  50.  
  51. stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
  52.  
  53.     Texture streaming for Stage3D
  54.  
  55. You can now upload the mip-levels in the order you want, from the lowest definition to the highest, you can then now enable progressive texture loading with Stage3D.
  56. Example:
  57.  
  58. [Embed( source = "MipLevel9.jpg" )]
  59. var MipLevel9:Class;
  60. var context3D:Context3D;
  61. var texture:Texture;
  62.  
  63. stage.stage3Ds[0].addEventListener(Event.CONTEXT3D_CREATE, createdHandler);
  64.  
  65. function createdHandler(e:Event)
  66. {
  67.     context3D = stage.stage3Ds[0].context3D;
  68.     //set streaming levels to 9, a 1x1 mip level for a complete texture size of 512 (Mip level 0 =512, Mip level 9 = 1)
  69.     texture = context3D.createTexture(512,512,Context3DTextureFormat.BGRA,false, 9);
  70.     var mip9:Bitmap = new MipLevel9();
  71.     texture.uploadFromBitmapData(mip9.bitmapData,9);
  72. }
  73.  
  74.     Drivers gating hardware acceleration relaxed to 2006 (was 2009 in 11, 2008 in 11.2)
  75.  
  76. In previous releases, we gated support to drivers older than January 1, 2008. In the future release, we will be changing the gating to apply to drivers older than January 1, 2006.
  77. This Flash Player 11.3/AIR 3.3 beta integrates this change, the feature is enabled in the pre-released builds to gather early feedback.
  78. Please note that this feature will be removed before the final release and added to a next release.
  79.  
  80.     New driverInfo details
  81.  
  82. We expose more details now through context3D.driverInfo to detect why Stage3D fallback to software.
  83. HW acceleration checkbox disabled? Drivers too old? Blacklisted chipset? We tell you.
  84. In Flash Player 11.3 and AIR 3.3, the driverInfo string can now return the following values depending on the scenario:
  85.  
  86.     "Software Hw_disabled=userDisabled"
  87.  
  88. HW acceleration setting checkbox in Settings UI is not checked so HW acceleration fail and SW rendering is used for Stage3D.
  89.  
  90.     "Software Hw_disabled=oldDriver"
  91.  
  92. HW graphics driver is blacklisted due to known issue so SW rendering is used for Stage3D. It will be fixed by updating driver.
  93.  
  94.     "Software Hw_disabled=unavailable"
  95.  
  96. It fail to use HW due to driver's capability or blacklisted in general or any failure of HW graphics initialization so SW rendering is used for Stage3D
  97.  
  98.     "Software Hw_disabled=explicit"
  99.  
  100. Content request a software rendering explicitly through requestContext3D so SW rendering is used for Stage3D.
  101.  
  102. In the next beta, those Strings will be available as constants of a new class, to simplify your detection logic.
  103.  
  104.     MouseEvent.RELEASE_OUTSIDE
  105.  
  106. The famous event which got removed in AS3, is back, much simpler than all the AS3 workarounds to emulate it.
  107. Example :
  108.  
  109. s.addEventListener(MouseEvent.RELEASE_OUTSIDE, onReleaseOutsideHandler);
  110.  
  111.     ApplicationDomain.getQualifiedDefinitionNames()
  112.  
  113. You remember Application.getDefinition()? The limitation is that you had to know ahead of time the name of the class definition you wanted to extract.
  114. Now applicationDomain.getQualifiedDefinitionNames() extracts all of the classes available in a SWF, perfect for SWF introspection and runtime loaded assets. SWFExplorer non longer needed!
  115. Example :
  116.  
  117. var definitions:Vector.<String> = this.loaderInfo.applicationDomain.getQualifiedDefinitionNames();
  118.  
  119.     BitmapData.drawWithQuality
  120.  
  121. In the past, the BitmapData.draw() API did not accept a quality parameter, you had to change the stage quality to affect the rasterization, not anymore with BitmapData.drawWithQuality() which obviously takes a quality parameter.
  122. Example :
  123.  
  124. bitmapData.drawWithQuality(sprite, sprite.transform.matrix, null, null, null, null, StageQuality.BEST);
  125.  
  126.     Native Bitmap compression : BitmapData.encode()
  127.  
  128. Support for native JPEG/PNG/JPEG-XR compression.
  129. Example :
  130.  
  131. var bitmapData:BitmapData = new BitmapData(640,480,false,0x00FF00);
  132.  
  133. var byteArray:ByteArray = new ByteArray();
  134.  
  135. bitmapData.encode(bitmapData.rect, new JPEGEncoderOptions(), byteArray);
  136.  
  137. And some other nice improvements :
  138.  
  139.     Background behavior for AIR
  140.     Android 4.0 Stylus Support
  141.     USB Debugging
  142.     Landscape mobile
  143.     Simulator support for iOS
  144.  
  145. As usual, download everything on Adobe Labs. Let us know if you get any bugs. Thanks!
clone this paste RAW Paste Data