apache-flex

Flex Datagrid labelFunction query

£可爱£侵袭症+ 提交于 2019-12-12 06:22:58
问题 Main.mxl <s:DataGrid dataProvider="{employeeData}"> // employeeData is an Arraycollection with predefined data <s:typicalItem> <s:DataItem firstName="Christopher" lastName="Winchester" hireDate="22/12/2013"/> </s:typicalItem> <s:columns> <s:ArrayList> <s:GridColumn labelFunction="employeeName" headerText="Name"/> <s:GridColumn dataField="hireDate" headerText="Hire Date" labelFunction="dateFormat"/> </s:ArrayList> </s:columns> </s:DataGrid> <fx:Script> <![CDATA[ import mx.collections

Button is not functioning properly (Resetting AdjustColors)

帅比萌擦擦* 提交于 2019-12-12 06:16:12
问题 I'm using AdjustColor\ColorMatrixFilter to change the Color (Brightness, Contrast, Hue, Saturation) of an Element (remoteVideo), which is controlled using Sliders. My issue is when the button with the label RESET COLORS is clicked the four sliders BrightnessSlider.value = 0; ContrastSlider.value = 0; HueSlider.value = 0; SaturationSlider.value = 0; do move back to their default position of 0, but only the Contrast and Saturation is reset. I've also tried removing the call to the function

ActionScript 3 AMF Zend fails silently

て烟熏妆下的殇ゞ 提交于 2019-12-12 05:49:54
问题 I'm trying to connect to a Zend-PHP service within a pure ActionScript program. I've managed to use the service successfully using Flex. (But Flex mobile apps are bloated, and typically 10x bigger than pure ActionScript apps - which is why I'm trying to write it in Pure Actionscript). I'm trying to access the PHP/Zend service that I downloaded, and used in the following tutorial:- http://www.adobe.com/devnet/flex/testdrivemobile/articles/mtd_1_1.html The PHP code that I'm connecting to is

How to create a “Please Wait” spinner while data is being imported

天大地大妈咪最大 提交于 2019-12-12 05:49:49
问题 I am creating an Flex AIR app which imports data from a zip file into a sqlite db. I need to show a progress bar / "Please Wait" spinner animation so that the user waits till the operation completes. I have tried to put a pop-up spinner animation but the problem is that the spinner stops spinning as soon as the database import queries start executing. I need to run both the spinner code and the import code simultaneously rather than sequentially. Thanks 回答1: The problem you are facing here is

Spark Datagrid scrolling

不羁岁月 提交于 2019-12-12 05:39:44
问题 I have a data(say for eg. a million rows) to be displayed in a datagrid in a mobile application. I am trying to figure out a way by which as soon as the scroll reaches the end of page ie. the last row on the grid it requests again to the server for next bunch of records. Scroll event in MX datagrid (http://blog.tremend.ro/2009/03/02/flex-live-scroll-datagrid/) does it with ease but it's not there in spark datagrid. I want this to be done with spark datagrid. How can i achieve this. Require

Security sandbox violation cannot load data from box.net

此生再无相见时 提交于 2019-12-12 05:38:39
问题 I have an application which upload/download files to/from box.net. the application works fine when not deployed on server but when I deploy it on Google App Engine the following error is encountered. Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://somexyz.appspot.com/xyzsample.swf cannot load data from http://box.net/api/1.0/download/abcdef/123456. I have included the below lines of code in as3 Security.allowDomain("*"); and placed crossdomain.xml

Flex reverse proxy issues

断了今生、忘了曾经 提交于 2019-12-12 05:31:16
问题 I'm currently working on setting up a reverse proxy for testing a flex-based web application. The current setup is using mod _ proxy (with mod _ proxy _ http) to reverse proxy to another host. Everything seems to work except for requests made from the flash player, which result in an error message that says "Security error accessing url". I have a crossdomain.xml set up on the back end system that simply allows everything, using "<allow-access-from domain="*"/>". The crossdomain.xml is

How do you create a top margin when printing a PrintAdvancedDataGrid

倖福魔咒の 提交于 2019-12-12 05:30:03
问题 My datagrid prints starting at the very top of the page. I can't figure out how to move the datagrid down. I don't see anything in FlexPrintJob or PrintAdvancedDataGrid that will do this. Do I have to create a blank object to add to the top of my FlexPrintJob object? Any help or a link that will help. Thanks, John 回答1: After trying a lot of examples form adobe and others that did not work at all for me, I figured out that I had to put the datagrid in a vBox where I could put a blank header

Approaches / libraries for resize dragging

一世执手 提交于 2019-12-12 05:28:15
问题 I'm currently working on a WYSISYG editor that allows the user to move, resize and rotate shapes by directly manipulating them. The resizing seems to be fairly complex when the shape is rotated. I got this working for non-rotated shapes, but it will take some trigonometric calculations to resize shapes that are rotated. The registration point is always is the middle of the rectangle because this makes rotating a lot easier. Before I start implementing this, I was wondering if anyone knew of

UIComponent extended class isn't showing UIComponent extended class

半世苍凉 提交于 2019-12-12 05:25:58
问题 I have 1 class (that is extending a UIcomponent) that is representing a component. In that component I create different instances of another class that is also a UIComponent but this class doesn't show up in de first class. I see that it is running and that it has the correct hights but I got the feeling that it doesn't show up with this hights. If I trace I see the width and height is 200 X 200 but there is still nothing visible in my component I bet there is a simple solution for this