flex4.5

Merge data into filtered ArrayCollection (maybe by using IViewCursor or localIndex?)

孤者浪人 提交于 2019-12-19 11:24:11
问题 I have a Flex question, which isn't as easy as it seems at first. At least I'm struggling since 1 week with it. I have prepared a test case and a screenshot. The question is: how do you merge data (coming repeatedly from server) into a filtered ArrayCollection? The screenshot: The TestCase.mxml (just place it into a Flash Builder 4.6 project): <?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"> <fx

SelectItem Method in spark Datagrid?

帅比萌擦擦* 提交于 2019-12-14 03:59:09
问题 I am enabling multiple row selection with clicking checkbox Item renderer. this works for extending mx:Datagrid (other answer) override protected function selectItem(item:IListItemRenderer, shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean { // only run selection code if a checkbox was hit and always // pretend we're using ctrl selection if (item is CheckBox) return super.selectItem(item, shiftKey, true, transition); else //Avenir Cokaj 23/06/11: this enables the flex's

Changes to skin in SDK path not taking effect?

大城市里の小女人 提交于 2019-12-13 09:47:08
问题 I'm using the SparkChromeWindowedApplicationSkin in my Window Application and I'm making changes to the skin in the SDK directory but none of my changes are taking effect. I set the skin in my CSS like this: s|WindowedApplication { backgroundAlpha: 1; backgroundColor: #FFFFFF; resizeAffordanceWidth: 6; skinClass: ClassReference("spark.skins.spark.SparkChromeWindowedApplicationSkin"); } Then I control + click on the skin name and it opens the file. I then change some of the styles and

Accordion in Flex 4.5 Mobile App

给你一囗甜甜゛ 提交于 2019-12-13 08:47:34
问题 I want to work on text layout to display in a vertical accordion. I was able to work with accordion in web app but unable to work on a mobile app since the accordion is not available in mobile flex. Please help me to work on flex mobile accordion. Also suggest me how to display the paragraph contents and bulletins in flex mobile accordion... 回答1: Have a look at Application tabs for mobile solutions: http://devgirl.org/2011/05/09/styling-the-flex-4-5-mobile-application-tabs-and-actionbar/ <

Flex: Any way to use something like htmlText in Spark TextArea?

若如初见. 提交于 2019-12-13 08:25:13
问题 I´m using php services to insert text from MySql, to a TextArea. Ok, with mx textarea is working but how do i manage that with spark!? this is my example with mx: <mx:TextArea htmlText="{links.comment}"/> this is an example with spark: <s:TextArea> <s:textFlow> <s:TextFlow> <s:a href="http://www.google.com/" target="_blank"><s:span color="0xCECB02" textDecoration="none">Something and Something</s:span></s:a> </s:TextFlow> </s:textFlow> </s:TextArea> That works, but how can i take the same "

Flex deserialization issue with List of Maps

廉价感情. 提交于 2019-12-13 07:26:14
问题 I have a problem with BlazeDS to Flex mobile deserialization, so that I try to send back list of maps List<Map<String, Object>> with different Objects in every Map, but when I receive this list in flex code: hastalarim = event.result as ArrayCollection; But when I debug this in flex code I see that there're 7 instances of the same Object (the first object that was inserted on server-side) in that list. Here's my method on server-side: public List<Map<String, Object>> getHastalarim(String

Flex Horizontal List

半腔热情 提交于 2019-12-13 06:11:15
问题 I am trying to place my thumbnails into a horizontal list in Flex. What I have so far works fine, but I'd like stylize it to where the the row of thumbnails, when individually clicked, displays the larger image and other information. <?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" minWidth="955" minHeight="600" creationComplete="main()" backgroundColor="#FFFFFF"

Flex 4.5 JSON check for existence of key before exception?

对着背影说爱祢 提交于 2019-12-13 04:34:25
问题 Is it possible to check for the existence of a key before Flex 4.5 JSON throws an exception for key not found? I have some json data where some keys are not always present. I am using CallResponder... The issue is that when you try accessing callResponder.lastResponse.key - and, say, key is not always present in your json, Flex won't be able to parse it. This happens even if you check if (callResponder.lastResponse.key) - the error occurs on the if line, in that case (See old error dump here)

How to include an actionscript function from an external file in flex4/MXML/Spark?

感情迁移 提交于 2019-12-13 04:34:07
问题 It turns out that’s it’s impossible to declare a class inside a embedded <fx:Script><![CDATA[ so it turns I need to put and include the actionscript code inside an external Sourcefile. The error is commented out <?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" minWidth="1955" minHeight="1600"> <fx:Script source="URLRequest.as" /> <s:layout> <s:BasicLayout /> </s

RSL used in FLEX

心已入冬 提交于 2019-12-13 03:33:52
问题 How to use RSL(Runtime shared library) in flex ? how can decrease loading time of swf using rsl? please give answer 回答1: The SDK default setting of the project is RSL. check here Goto Project->Properties choose the Library path from the tab where you can see the framework linkage . The thing is It is one of the way to reduce the size of the application and the library files are downloaded and saved to cache file in browsers. so when you run the application again, the library files are taken