apache-flex

AdvanceDataGrid nodes collapse on refresh

二次信任 提交于 2019-12-24 20:03:35
问题 I have an AdvancedDataGrid which Im attemping to update with data from a web service that I poll once very 10 seconds. Im using a HierarchicalData object to provide data to the grid. The update seems to work fine, except that on each update, any nodes that were expanded are collapsed when the grid is refreshed. Stranger still, when I dig down into the bowels of the thing and look at the contents of the HierarchicalCollectionView that backs the grid, I can see that the openNodes property

Flex - does anyone have an example of the use of the VideoDisplay control events

て烟熏妆下的殇ゞ 提交于 2019-12-24 19:30:02
问题 The Flex 3 docs are fairly basic. Can someone post a more complete example that uses the control's events? I'm still trying to get my head around ActionScript events. 回答1: You could find an interesting article concerning stateChange & playheadUpdate events on http://blog.flexexamples.com/2008/01/01/determining-a-videodisplay-controls-current-playback-state-using-the-state-property-and-statechange-event/ For a more complex example, take a look at the FXVideo component source code (in main unit

How do i handle Remote Method calls via AsyncToken?

情到浓时终转凉″ 提交于 2019-12-24 19:09:59
问题 So here is the mxml i would like to get working: <?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"> <fx:Script> <![CDATA[ import argoseye.main.Golem; import mx.collections.ArrayCollection; import mx.rpc.AsyncResponder; import mx.rpc.AsyncToken; import mx.rpc.Responder; import mx.rpc.events.FaultEvent; import mx.rpc.events.InvokeEvent

Flash Builder 4.7 does not open after installing Apache Flex SDK 4.16.0

余生颓废 提交于 2019-12-24 19:04:04
问题 Having installed Apache Flex SDK 4.16.0, I open Flash Builder 4.7 to see this error dialog message: An error has occurred. See the log file at <dir>/.log. The .log in question is 1676 lines long, starts like this: !SESSION 2017-09-20 10:59:34.184 ----------------------------------------------- eclipse.buildId=M20110909-1335 java.version=1.8.0_144 java.vendor=Oracle Corporation BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US Framework arguments: -keyring /Users/<REDACTED>/

How to access children of children recursively?

帅比萌擦擦* 提交于 2019-12-24 18:35:14
问题 I have a Canvas which has many components inside it and those again, have many components inside them. getChildren() returns only the top level children. What is the best way to retrieve all the children (children of children of children and so on). Well, I sorta know how to do this by iterating through the children, but the code is really messy. I'd prefer to use a nice recursive function. Has anyone written this before? Or is there a Util class to do this? 回答1: private function recuse

Flex: Special-casing an item in a list or menu?

◇◆丶佛笑我妖孽 提交于 2019-12-24 18:16:06
问题 I've found it's often useful to special case the first item in a drop-down menu (ie, an instance of Menu). For example, if I want to pick a color from the list provided by a web service: <mx:PopUpMenuButton id="colorSelelector" dataProvider="{colorsService.lastResult}" /> I might also want a special-case, which is "enter a new color", allowing the user to enter the RGB values for a new color which isn't in the list. For example: var newColor = { label: "Enter a new color", rgb: null }; Then

Create submenu in context menu

独自空忆成欢 提交于 2019-12-24 18:13:22
问题 Is it possible to create submenu in context menu (right click menu) in Adobe Flex? Menu1 > - Menu1.1 - Menu1.2 Menu2 > - Menu2.1 - Menu2.2 - Menu2.3 回答1: No; it is one of the current limitation; I believe of the Flash Player. In Adobe AIR you can add submenus to the context menu using the submenu property of the NativeMenuItem class. 回答2: An easy way to adding Sub-menu in AIR application <?xml version="1.0" encoding="utf-8"?> <s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library:

Open a web page in a flex mobile app

故事扮演 提交于 2019-12-24 18:12:17
问题 I am developing a Flex mobile app, I use the navigateToURL function, It open the web page into the default web browser but I would like to open the web page into the application when I click on the button. The full code of my app: <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="Test"> <fx:Script> import flash.net.URLRequest; import flash.net.navigateToURL; import flash.display.MovieClip; import flash

Selection in a ComboBoxEditor change the row selected in DataGrid

 ̄綄美尐妖づ 提交于 2019-12-24 17:29:27
问题 Here is a good problem : I've got an AdvancedDatagrid with Combobox as ItemEditor (until there, no problems ...). This ComboBoxEditor get this behavior : selection = close editor BUT when I click on a value in the ComboBox, it selecte it and close as wished, but the click also put the selection in the row of the datagrid below, and then open the editor of this row. This comportment appear only with Internet Explorer (8 & 9) Any idea why it's like this with IE, and more important, how to

override public function initialize() error in flex

天涯浪子 提交于 2019-12-24 17:29:26
问题 i want to know what i should put befor .mx_internal override public function initialize() : void { var target:DialogButtons; var watcherSetupUtilClass:Object; .mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:* = _DialogButtons_bindingsSetup(); var watchers:Array; target; if (_watcherSetupUtil == null) { watcherSetupUtilClass = getDefinitionByName("_components_DialogButtonsWatcherSetupUtil"); var obj1:* = watcherSetupUtilClass; obj1.watcherSetupUtilClass["init"](null); }