apache-flex

Flex Newbie XMLList question - Sorting XML and XMLList

眉间皱痕 提交于 2020-01-15 19:15:31
问题 Is it possible to sort an XMLList? All the examples I can find on it create a new XMLListCollection like this: MyXMLListCol = new XMLListCollection(MyXMLList); I don't think the XMLListCollection in this case has any reference to the XMLList so sorting it would leave my XMLList unsorted, is this correct? How can I sort the XMLList directly? Thanks ~Mike 回答1: So I finally got my search terms altered enough I actually churned up an answer to this. Using the technique I got from here: http:/

Flex 4.6 AIR 3.2 TextInput artifacts

我怕爱的太早我们不能终老 提交于 2020-01-15 12:37:05
问题 I'm testing simple TextInput functionality in flex 4.6 + air 3.2 mobile application and observing strange artifacts when soft keyboard resizes the view. Here is appearance: before soft keyboard is popped out and after. As you can see Flex has resized the view so that soft kb would with with the TextInput visible. But this is causing erasures artifacts in all TextInputs! Is this a bug? Where in Flex or AIR? Any suggestions how to fix this? Thanks! 回答1: By default, Flex 4.6 uses StageText in it

How do I load a YouTube video in Flash Builder?

百般思念 提交于 2020-01-15 12:15:05
问题 I'm trying to play a Youtube video in Flash Builder. Each time I play the file I get an error message: SecurityError: Error #2121: Security sandbox violation: Loader.content: https://www.youtube.com/v/FGtTEmBR7Sk cannot access https://s.ytimg.com/yts/swfbin/player-vflQiDuyQ/watch_as3.swf. This may be worked around by calling Security.allowDomain. at flash.display::Loader/get content() at com.google.youtube.application::SwfProxy/onRequestParameters() at flash.events::EventDispatcher

Flex4: if I want different icons, should I create a skin class for each button?

佐手、 提交于 2020-01-15 12:11:11
问题 i have a sequence of buttons and each button has its own icon. I was wondering if I have to create a Spark skin file for each button in order to assign its icon. thanks 回答1: You don't have to create separate skins, you could make 1 skin and 1 class (that extends Button ) with a property you can set to determine which icon to draw based on the button. You can extend the button class like this package com.components { import spark.components.Button; //icons [Style(name="iconImg",type="*")]

How do I load a YouTube video in Flash Builder?

放肆的年华 提交于 2020-01-15 12:06:54
问题 I'm trying to play a Youtube video in Flash Builder. Each time I play the file I get an error message: SecurityError: Error #2121: Security sandbox violation: Loader.content: https://www.youtube.com/v/FGtTEmBR7Sk cannot access https://s.ytimg.com/yts/swfbin/player-vflQiDuyQ/watch_as3.swf. This may be worked around by calling Security.allowDomain. at flash.display::Loader/get content() at com.google.youtube.application::SwfProxy/onRequestParameters() at flash.events::EventDispatcher

Flex: Is there anyway to disable the textfield in the NumericStepper and force the user to change the value only by using the up/down buttons?

安稳与你 提交于 2020-01-15 11:46:05
问题 Probably not much more to elaborate on here - I'm using a NumericStepper control and I want the user to use the buttons only to change the value in the NS, not by typing into the control - I couldn't find a property to disable the text - does it exist? If it doesn't, how would I subclass this thing to disable the text? 回答1: In general, if you're using mx_internal, there's a decent chance that your app will break between flex versions. 回答2: Ok - I think I got it - there is no property you can

How to add dynamically text and tags inside textFlow

折月煮酒 提交于 2020-01-15 11:26:09
问题 <s:RichEditableText editable="false" styleName="chatWin" height="550" width="100%"> <s:textFlow> <s:TextFlow> <s:p>Inline<s:br />TextFlow</s:p> </s:TextFlow> </s:textFlow> </s:RichEditableText> I want to add this <s:p> tag dynamically, thus making a chat...i've tried this: var p:p = new p(); but this don't work 回答1: Instead of a declarative text flow within MXML, you could programmatically update the text by appending to a string variable and reflowing with TextConverter.importToFlow().

Flex and Zend_AMF: How do I get a Flex arrayCollection from Flex into PHP?

半世苍凉 提交于 2020-01-15 09:53:09
问题 I currently have an arrayCollection in Flex and I want to sent it to PHP (Zend_AMF). According to the Zend_AMF wiki, sending an arrayCollection over directly will force Zend_AMF to cast the arrayCollection as an object which is no good. I'd rather have an array of my models. I assume the best way would be to convert the arrayCollection to an array in flex and then send it over. Is this true, and if so how would I do that in Flex 3? If you have a better recommendation, that would be

Servlet spring-servlet is not available (Spring+BlazeDS Integration)

妖精的绣舞 提交于 2020-01-15 09:21:29
问题 I'm trying to setup a Flex project using the Spring + BlazeDS integration by working through the refcard kindly posted by James Ward on refcards.dzone.com. Some problems/challenges are sticking their heads out. The Tomcat deployment is going well, all the files are on the server and I can summon main.swf through the browser. I get the following ActionScript exception when trying to make the AMF request to Spring/BlazeDS: RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend"

flex line chart with variable colored line

≡放荡痞女 提交于 2020-01-15 04:26:46
问题 Ive got a rather simple need to create a line chart. The data that I would like to chart is based on a single daily datapoint. xml example of data: <?xml version="1.0"?> <dataset> <data> <date>01/14/2013</date> <number>80.6</number> <indication>G</indication> </data> <data> <date>01/15/2013</date> <number>74.6</number> <indication>A</indication> </data> <data> <date>01/21/2013</date> <number>79.4</number> <indication>G</indication> </data> <data> <date>01/22/2013</date> <number>67.7</number>