Flex 4.10 new features

I installed the Flex 4.10.0 SDK for Flash Builder 4.7 (I tried both MacOS and Windows) using the new Apache Flex SDK Installer and liked how smoothly it worked:

enter image description here

I am also very glad that someone is still working on the Flex SDK (thanks!), Because for a long time it looked abandoned.

My 3 questions:

  • Does anyone have a list (presumably more than fifteen?) Of new Spark components? I noticed only one sofar: mx.controls.Alert spark.components.Alert . (And I noticed that spark.utils.MultiDPIBitmapSource supports source480dpi , which is great).

  • Does anyone know if there is a fix for spark.components.List without remembering its scrollable position? Since currently in my game Flex with 2 lists updated by the server, I have to use a custom group of skins and data, as described in this nice blog .

  • Currently, to scroll a spark.components.List to the bottom I have to use the following hack and wonder if this problem came up too?

     public static function scrollToBottom(list:List):void { // update the verticalScrollPosition to the end of the List // virtual layout may require us to validate a few times var delta:Number = 0; var count:int = 0; while (count++ < 10) { list.validateNow(); delta = list.layout.getVerticalScrollPositionDelta(NavigationUnit.END); list.layout.verticalScrollPosition += delta; if (delta == 0) break; } } 

UPDATE:

For problem # 3, I created JIRA # 33660 with the attached test case and screenshot. There were similar error messages, but they were closed by Adobe.

UPDATE 2:

For problem # 2, I have not yet managed to create a simple test case, but I definitely see this problem in my application (the link above, I do not want spam), where 2 lists are updated via the TCP socket on the server.

Here is my current test case (not really a demonstration of the problem), maybe someone can improve it:

 <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" applicationComplete="init()"> <fx:Script> <![CDATA[ import flash.utils.setInterval; private function init():void { setInterval(add, 1000); } private function add():void { var pos:int = Math.floor(myAC.length * Math.random()); myAC.addItemAt({label: Math.random()}, pos); } ]]> </fx:Script> <s:List id="myList" width="100%" height="100%"> <s:dataProvider> <s:ArrayCollection id="myAC" /> </s:dataProvider> </s:List> <s:controlBarContent> <s:Button id="myButton" label="Add number" click="add()" /> </s:controlBarContent> </s:Application> 
+7
list flex flash-builder flex4
source share
1 answer

In response to Part 1, I found the Release Notes file that mentions the following new Spark components:

Accordion, DataAccordion, InlineScroller, CallOut, CallOutButton, Alert, ColorPicker, MenuBar, Menu and ProgressBar.

Also some new layouts: AccordionLayout, CarouselLayout, CoverflowLayout, StackLayout (and much more).

+1
source share

All Articles