flex3

Why do we not have splice in array collection?

大憨熊 提交于 2019-12-02 00:53:19
From what I know the whole idea behind having collection classes is introduce extra wrapper methods which will be handy for developers. Then why does ArrayCollection in Flex not seem to have some methods that array has. ArrayCollection does not have a copy, concat, join or splice methods which return a new array so we need to do the copy manually? Or I am missing something in here? Thanks. You're right, the methods are not there. There is no published reason for the decision, that I can find. If I had to guess, and this is only a wild guess, I would say that the business side of things

Flex ignores changes in services-config.xml

拜拜、爱过 提交于 2019-12-01 22:19:10
问题 Yesterday I spent half of day trying to force Flex Remoting to use HTTPS with no success. Today I tried to connect to other domain. I changed url of endpoint, but it looks like flex just ignores my changes. I am sure that an old url doesn't exist in any file in src directory, I even renamed services-config.xml to services-config2.xml, cleaned and rebuilded project many times, even made a release build, but it still connects to the same domain. I have tested flex application in localhost and

is there any command to pause, stop and close vlc player from command line?

可紊 提交于 2019-12-01 22:03:38
问题 Well i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches. here is the code processArgs.push("--extraintf"); processArgs.push("rc"); //Remote control processArgs.push("--rc-fake-tty"); //Use terminal as output processArgs.push("screen://"); processArgs.push(":screen-fps=15"); processArgs.push(":screen-caching=100"); processArgs.push(":sout=#transcode{venc=x264{bframes=0,nocabac,ref=1,nf,level

is there any command to pause, stop and close vlc player from command line?

╄→гoц情女王★ 提交于 2019-12-01 21:05:48
Well i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches. here is the code processArgs.push("--extraintf"); processArgs.push("rc"); //Remote control processArgs.push("--rc-fake-tty"); //Use terminal as output processArgs.push("screen://"); processArgs.push(":screen-fps=15"); processArgs.push(":screen-caching=100"); processArgs.push(":sout=#transcode{venc=x264{bframes=0,nocabac,ref=1,nf,level=13,crf=24,partitions=none},vcodec=h264,fps=15,vb=3000,width=800,height=600,acodec=none}:duplicate{dst

How to get Flex 3 ComboBox width to adjust based on bound dataProvider contents having changed?

折月煮酒 提交于 2019-12-01 13:21:18
In Flex 3, I've created a ComboBox within an MXML component similar to the following: <mx:ComboBox id="comboBox" dataProvider="{_choices}" /> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; // etc... public function get choices():ArrayCollection { return _choices; } [Bindable] private var _choices:ArrayCollection = new ArrayCollection( [ { data: "ALL", label: "All" } ] ); // etc... ]]> </mx:Script> </mx:HBox> In the parent MXML application, I'm modifying the contents of the choices property: myComponentId.choices.removeAll(); myComponentId.choices.addItem({data: "NY", label: "New

How to get Flex 3 ComboBox width to adjust based on bound dataProvider contents having changed?

别来无恙 提交于 2019-12-01 11:56:51
问题 In Flex 3, I've created a ComboBox within an MXML component similar to the following: <mx:ComboBox id="comboBox" dataProvider="{_choices}" /> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; // etc... public function get choices():ArrayCollection { return _choices; } [Bindable] private var _choices:ArrayCollection = new ArrayCollection( [ { data: "ALL", label: "All" } ] ); // etc... ]]> </mx:Script> </mx:HBox> In the parent MXML application, I'm modifying the contents of the

Flex Advanced Datagrid Condition Row Background Color

自作多情 提交于 2019-12-01 09:20:52
I am trying to set the row background color for the advanced data grid control in Flex 3. Does anyone know if this is possible using a style function. Currently my style function looks like: public function myStyleFunc(data:Object, col:AdvancedDataGridColumn):Object { if (data["status"] == "PRICING") return {color:0xFF0000 , fontWeight:"bold" , backgroundColor:0xFF0000}; // Return null if the Artist name does not match. return null; } However the background color does not change. I have heard on the grape vine that I may need to override some methods to enable the background color property.

Flex Advanced Datagrid Condition Row Background Color

回眸只為那壹抹淺笑 提交于 2019-12-01 07:15:30
问题 I am trying to set the row background color for the advanced data grid control in Flex 3. Does anyone know if this is possible using a style function. Currently my style function looks like: public function myStyleFunc(data:Object, col:AdvancedDataGridColumn):Object { if (data["status"] == "PRICING") return {color:0xFF0000 , fontWeight:"bold" , backgroundColor:0xFF0000}; // Return null if the Artist name does not match. return null; } However the background color does not change. I have heard

How can I get a datagrid to behave like the ctrl key is active?

做~自己de王妃 提交于 2019-12-01 05:35:21
问题 I want my data grid to behave by default as if the user is holding the control key down. So when an item is clicked, then another item they are both part of the selection, clicking them again removes them from the selection. I already have allowMultipleSelection = true but I can't seem to find any setting that does this. I'm working on the itemclick event in the meantime, but it seems like there might be an easy to use setting I'm missing. Any thoughts? 回答1: You could also extend DataGrid and

How do you programmatically move the caret of a Flex TextArea to the end?

徘徊边缘 提交于 2019-12-01 05:21:27
I'm trying to move the caret in a Flex TextArea to the end after appending some text from my code. I've looked through the reference documentation for TextArea and its underlying TextField but it appears there is no method provided to handle this. One approach I've tried is to set focus to the text area and dispatch a KeyUp KeyboardEvent with the event's key code set to the "End" key, but this doesn't work. Any ideas on how to do this? Thanks. Try this textArea.selectionBeginIndex = textArea.length; textArea.selectionEndIndex = textArea.length; For people looking for the Spark component way to