apache-flex

Clicked SWF/IMAGE position to center : FLEX

谁都会走 提交于 2019-12-11 16:13:23
问题 Iam trying to make clicked position to center in flex. My code is <fx:Declarations> <s:Parallel id="transformer" target="{swe}"> <s:Scale id="scaleby" scaleXBy="0.2" scaleYBy="0.2" autoCenterTransform="false"/> </s:Parallel> </fx:Declarations> <s:Group width="500" height="350" clipAndEnableScrolling="true"> <s:SWFLoader source="CasuarinaBigMap.swf" width="500" height="350" id="swe" click="swe_clickHandler(event)"/> </s:Group> protected function swe_clickHandler(event:MouseEvent):void {

Flexicious Filter not working correctly

我只是一个虾纸丫 提交于 2019-12-11 16:13:22
问题 I'm using a Flexicious Ultimate datagrid for visualising some data. I'm using the built in Filter field for some columns. This is working fine if I don't use any labelfunction on the provided cell data. The Flexicious filter data is automatically build from the data in the cells of that specific row. When I use a labelfunction on the cell data the filter values are shown correct, but when I select to show a specific value, the datagrid return 0 records. Example: The dataprover.Price = 25 In

How to build .air file through Adt.jar with the help of NativeProcess in Adobe AIR?

前提是你 提交于 2019-12-11 16:13:01
问题 <?xml version="1.0" encoding="utf-8"?><s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Declarations> </fx:Declarations> <fx:Script> <![CDATA[ private var nativeProcess:NativeProcess; private function onGo() : void { outputField.text = ""; var file:File = new File("C:\\Program Files (x86)\\Java\\jdk1.6.0_18\\bin\\java.exe"); var descriptorFile:File = new File("C:\\AirPackageApp-app.xml");

Flex Degrafa's bezier spline under AIR 3.9

偶尔善良 提交于 2019-12-11 16:08:56
问题 I have a mobile Flex project running on iOS that has been using Degrafa's library in order to use its BezierSpline class. The purpose is to be able to draw directly on the screen, the collection of points given by the user gesture is then converted into a bezier curve using this library. However, my app has been recently crashing as soon as it was displaying a page containing at least one of these curves. I don't get any error, stacktrace or anything, the app is simply killed and I'm taken

Itemclick event in datagrid

我与影子孤独终老i 提交于 2019-12-11 16:06:56
问题 The problem can be summarized as when clicking an item in datagrid, the text area shows the value of the item, but here the compoents are separate and hence events need to be dispatched. My mxml component file : <?xml version="1.0" encoding="utf-8"?> <mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml" itemClick="itemClickEvent(event);" creationComplete="init()"> <mx:Metadata> [Event(name="IdSelected", type="one.IdEvent")] </mx:Metadata> <mx:Script> <![CDATA[ import genericReport.*; import

refresh / reload a datagrid in flex

烈酒焚心 提交于 2019-12-11 16:06:46
问题 I am using a datagrid. It has itemEditor components, combo boxes, etc. as aprt of columns. Ideally datagrid.invalidateList() method works to reload the datagrid with new dataProvider data. But, for me it is appending to the old data and new data gets added below the older data. I am not able to fix this reload of datagrid. 回答1: Use ArrayCollection, not Array! ArrayCollection provides all the change notification machinery you need. Array does not. 回答2: I'm having a little trouble understanding

Event is not being triggered for Geolocation in Flex

前提是你 提交于 2019-12-11 16:06:43
问题 I created a button that looks up the coordinates of the device. There is no errors in the code but for some reason which is eluding me, the event is not being triggered. Here is my code: protected function lblCheckIn_clickHandler(event:MouseEvent):void { if (Geolocation.isSupported) { lblLat.text = "Finding Location..."; geo.addEventListener(GeolocationEvent.UPDATE, onUpdate); } else { lblLat.text = "Geolocation is not supported on this device."; } } Later on I have the event code: protected

Transposing a set of rows as column in a Flex Data Grid

旧时模样 提交于 2019-12-11 15:58:53
问题 I have an array like the following one public var sal:Array=[ {empNo:1001, sal:1000, exp:400}, {empNo:1002, sal:3000, exp:240}, {empNo:1003, sal:1000, exp:452}, {empNo:1004, sal:5000, exp:348}, ...... {empNo:1550, sal:2000, exp:330}, ]; I need to show data using a 3 row flex data grid where the first row will display empNo, the second row will display corresponding salary(field sal), and the third row will display Expenditure (field exp). Can you tell me how to do this? 回答1: Actually I meant

Remoting , Messaging and Data Management in Flex?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 15:57:55
问题 Can anyone explain me the difference of all and also an another question does Zend AMF support all these. 回答1: Though my answer may not be complete, it'll give you some hints. Flash Remoting is a way of doing RPC using AMF protocol. Basicly you implement some server-side services with some methods, call them from your flex application and receive the result (using RemoteObject). Zend AMF definitely supports this. The Message Service provides a complete publish/subscribe infrastructure

ActionScript: pushing a closure onto the event stack?

為{幸葍}努か 提交于 2019-12-11 15:56:17
问题 On occasion, I have wanted to push a closure onto ActionScript's event stack so that it will be executed after the current event handler. Right now I use setTimeout(closure, 0) . Is there a more direct way of doing this? 回答1: setTimeout(closure, 0) is creating a new event stack. I don't understand your objective if this solution isn't working for you. What is the goal you're trying to accomplish? Flex has ENTER_FRAME events, Timer, callLater, setTimeout, setInterval, all which delay calls and