apache-flex

Cannot get file data from the clipboard using Flex

好久不见. 提交于 2020-02-25 04:30:26
问题 Given: A Flex TileList with the following event: <mx:nativeDragDrop> <![CDATA[ if(event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT)) { var files:Array = event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array; for each(var file:File in files) { // file.data is null here! } this.listData.refresh(); } ]]> </mx:nativeDragDrop> I am trying to create a list of thumbnails from jpegs that I drag into this TileList. Image.source can use the url to show the image, but I need to

Different versions of AIR and Flash being used in release and debug

偶尔善良 提交于 2020-02-08 07:47:52
问题 I am making a few HTTP/HTTPS requests to my servers from an Adobe Air application. While monitoring the network traffic (using Fiddler web debugger), I noticed that when debugging, a different version of Air and flash were being used than when the installed application (production) is executed. Here's are the differences:- **Production** User-Agent: Mozilla/5.0 (Windows; U; en-US) AppleWebKit/533.19.4 (KHTML, like Gecko) AdobeAIR/17.0 x-flash-version: 17,0,0,128 **Debug - adt** User-Agent:

sort ArrayCollection by date then time - Flex

江枫思渺然 提交于 2020-02-07 23:44:53
问题 I have an ArrayCollection that I'd like to sort by date and then time (in case there's two items with the same date). I've got it sorting by date fine (YYYY/MM/DD) but I can't figure out the time bit, time is in 24 hour format so the code would be basically the same as for the date. This is the code I used for the date sorting, it works fine. import mx.collections.SortField; import mx.collections.Sort; private function sort():void { var dataSortField:SortField = new SortField(); dataSortField

Find motherboard ID with flex builder?

北慕城南 提交于 2020-02-06 12:58:05
问题 I want to get motherboard ID in flex builder. This is my code. I follow this code to build my own Retrieve manufacturer information from device that AIR app is running on But I got this error TypeError: Error #1009: Cannot access a property or method of a null object reference. give me some solution please. <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100%" height="100%" showStatusBar="false" verticalAlign=

flex mobile TabbedViewNavigatorApplication back button part2

谁说胖子不能爱 提交于 2020-02-06 06:34:06
问题 Refer back to : flex mobile TabbedViewNavigatorApplication back button I have 2 Tabs. Tab1 has 2 sub Views: Tab1 Tab1subViewA Tab1subViewB Tab2 subview... In Tab1 (Tab1SubViewA is the first View), -> I navigate to Tab1SubViewB (still under Tab1). How can I go back to previous view (Tab1SubViewA)? Note: it's not moving from Tab to Tab but moving from View to View all in the same Tab. code for Tab1SubViewA: <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

flex mobile TabbedViewNavigatorApplication back button part2

ぃ、小莉子 提交于 2020-02-06 06:33:53
问题 Refer back to : flex mobile TabbedViewNavigatorApplication back button I have 2 Tabs. Tab1 has 2 sub Views: Tab1 Tab1subViewA Tab1subViewB Tab2 subview... In Tab1 (Tab1SubViewA is the first View), -> I navigate to Tab1SubViewB (still under Tab1). How can I go back to previous view (Tab1SubViewA)? Note: it's not moving from Tab to Tab but moving from View to View all in the same Tab. code for Tab1SubViewA: <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

Flex: Database driven DataGrid: arrows disappearing

房东的猫 提交于 2020-02-05 05:35:51
问题 In Flex I'm using the following code to allow sorting in a DataGrid (the data is paged and sorted serverside). private function headerReleaseHandler(event:DataGridEvent):void { var column:DataGridColumn = DataGridColumn(event.currentTarget.columns[event.columnIndex]); if(this.count>0) { if(this.query.SortField == column.dataField) { this.query.SortAscending = !this.query.SortAscending; } else { this.query.SortField = column.dataField; this.query.SortAscending = true; } this.fill(); } event