apache-flex

In Flex 4, state transition doesn't resize in both directions (v2)

梦想的初衷 提交于 2019-12-24 09:39:40
问题 I already had another question on this issue which was successfully resolved. But now, with a slightly different example, I'm stuck again. I have two states. When I switch from A to B, it resizes correctly, but when I switch from B back to A it happens without the smooth resize transition. What am I doing wrong? Here's my code: <fx:Script> <![CDATA[ protected function rollOverHandler(event:MouseEvent):void { this.currentState = "AB"; } protected function rollOutHandler(event:MouseEvent):void

Link button in tree at end of each parent node

丶灬走出姿态 提交于 2019-12-24 09:34:54
问题 I need to have link buttons at end of each parent node as shown below -->(Parent)IBM Machines (rename | delete | disable) Child 1 Child 2 Child 3 -->(Parent)Sony ( rename | delete | disable) Child 1 Child 2 Child 3 rename ,delete and diasble are supposed to be link buttons. I have tried with label function and other methods also but not able get the exact requrement. Please help me as how to achieve this. 回答1: Use ItemRendrer, examples (including tree) can be found at Using an item renderer

Java plugin in a Flex HTML component

孤街醉人 提交于 2019-12-24 09:29:11
问题 Anyone have an idea how to access through HTML component a page that requires Java plugin? I am using this new samsung android camera and I would like to open the link where the camera is streaming the video in a html component. If I make a browser like the one in tour de flex using the html component, it opens the page where the video should be seen. But then how do I access the Java plugin to play it. Thanks, David 来源: https://stackoverflow.com/questions/18758738/java-plugin-in-a-flex-html

Use regular expressions to remove HTML tags in Flex/AS3

巧了我就是萌 提交于 2019-12-24 09:27:46
问题 I'm writing a HTML parser in Flex (AS3) and I need to remove some HTML tags that are not needed. For example, I want to remove the divs from this code: <div> <div> <div> <div> <div> <div> <div> <p style="padding-left: 18px; padding-right: 20px; text-align: center;"> <span></span> <span style=" font-size: 48px; color: #666666; font-style: normal; font-weight: bold; text-decoration: none; font-family: Arial;">20% OFF.</span> <span> </span> <span style=" font-size: 48px; color: #666666; font

save a file on a local machine from a flex web app

爱⌒轻易说出口 提交于 2019-12-24 09:14:41
问题 is there a way to save, not save as, from an online flex app onto someone's local machine? Basically, if a user opens a file local to their machine in an online flex app, is there a way to allow them to save it locally without going through dialog boxes and picking file names? Note: I've read that this is possible on Air, but seems unlikely in Flex - my hope is that some workaround may exist... thx! f 回答1: No. For security reasons, the online application does not have access to the user's

flex - get linkbutton label name and selected row of datagrid

扶醉桌前 提交于 2019-12-24 08:59:48
问题 i am using below code for using linkbutton in flex datagrid <mx:DataGridColumn headerText="Case ID" width="80"> <mx:itemRenderer> <fx:Component> <mx:Canvas> <mx:LinkButton id="lnkCaseId" click="outerDocument.lnkCaseIdClick(event)" label="{data.caseId}" textDecoration="underline" color="#0052A5"> </mx:LinkButton> </mx:Canvas> </fx:Component> </mx:itemRenderer> </mx:DataGridColumn><br/> now on link button click i want linkbutton label name and selected row inside lnkCaseIdClick method, how can

Connected Flex clients are not synchronized with data updates in GraniteDS tutorial

喜你入骨 提交于 2019-12-24 08:50:01
问题 I am following the instruction in GraniteDS graniteds-tutorial-data tutorial https://github.com/graniteds-tutorials/graniteds-tutorial-data Updated version 3.0.1.GA My environment: Windows 7 64 bit Apache Maven 3.1.1 2013-09-17 16:22:22+0100) Maven home: C:\dev\apache\apache-maven-3.1.1 Java version: 1.7.0_45, vendor: Oracle Corporation Java home: C:\dev\java\jdk1.7.0_45x86\jre Default locale: en_GB, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "x86", family: "windows

Raw Camera Display on Air

房东的猫 提交于 2019-12-24 08:48:56
问题 We are trying to display Camera on a part of screen(raw camera). It shows a strange black and white display on Android device, but it works properly on emulator. What do you have any idea about how to solve this problem ? EDIT: "Tour de Mobile Flex" application in Camera->Raw Camera have same problem. 回答1: I set <renderMode>direct</renderMode> in app.xml. That configuration solve my problem. 回答2: Setting render mode to direct works for me as well (AIR 3.4 on Nexus S 4.1.2). If you don't want

Flex DataGrid row color spreads when scrolled up down

女生的网名这么多〃 提交于 2019-12-24 08:39:44
问题 I'm facing issue with datagrid row background color being spread when datagrid is vertically scrolled. I'm assuming this is happening because ItemRenderers are recycled. Here's my code : <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" minWidth="955" minHeight="600" > <mx:Script> <![CDATA[ import mx.events.FlexEvent; private var rendererFactory:ClassFactory; protected function btn_clickHandler(event:MouseEvent):void {

Draw a Hand Signature in Flex 4

我的未来我决定 提交于 2019-12-24 08:22:12
问题 I am creating an application that requires a user to draw their hand signature on a tablet. Does anyone the best way to do this on Flex mobile 4.5? What do I draw on to, a Sprite, canvas? Also, I would need to save the signature as a .jpg, could this be done? 回答1: Have a look on the following: http://www.jamesward.com/2010/03/22/flex-paint-updated-to-flex-4/ It may give you some hints. 回答2: The BlackBerry-provided sample signature capture app ought to be a good starting point. 来源: https:/