apache-flex

Flex Timer example

孤街浪徒 提交于 2019-12-23 05:33:04
问题 I am trying to use timer in flex. I referred to this example : Timer : blog.flexexamples.com. Here is what I want to achieve: I want to start the timer, showing minutes elapsed since timer started. It should be independent of the region you are in.( irrespective of whatever zone you are in, timer should work fine in every zone). Timer should continue, unless some button is clicked, where I want to show the time elapsed in minutes, in an Alert Box and then timer should start again from 0

change color row in datagrid

会有一股神秘感。 提交于 2019-12-23 05:27:30
问题 I have a script that already meets me but would like to send warning signals to my client that something is wrong I was able to change the line color to red I'm working this can happen in diversar lines and not in sequence. How can I apply this setting? Below script: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.controls.TextInput; import mx.events.DataGridEvent;

P2P in Flash / Flex without using Adobe Stratus

点点圈 提交于 2019-12-23 05:19:31
问题 Flash 10+ allows peer to peer capabilities to be implemented in Flex and Flash applications. However Adobe has sought to "control" this feature by ensuring that P2P can only be achieved using their hosted beta service called Stratus. This is to the best of my knowledge. Is there any alternate method to achieve the same? FYI: What Adobe Stratus does is it issues an encrypted 256 bit nearId to each client on NetConnection, and clients need to know each other's nearId's to connect using

Send objects from flex to java servlet

老子叫甜甜 提交于 2019-12-23 05:15:39
问题 This is my method in actionscript var urlVars : URLVariables = new URLVariables(); urlVars.myname = byteArr; var urlReq : URLRequest = new URLRequest('MyServlet'); urlReq.data = urlVars; urlReq.method = 'post'; navigateToURL(urlReq, '_blank'); How do I recieve the byte array on servlet ? Also the byteArr above comes from java side, byte[] byteArr = aMethodWhichReturnsaPDFByteArray(); HttpServletResponse response = FlexContext.getHttpResponse(); ServletOutputStream os = null; try { response

Security for Flex app when ssl is not available

青春壹個敷衍的年華 提交于 2019-12-23 05:08:14
问题 So I know the best practice would be to run my Flex app over ssl along with implementing other forms of security however that isn't an option at this point (for monetary reasons and the app simply doesn't need that much security otherwise my sponsors would pay for it). However, I would like to implement some form of security and I'm wondering whether it's even worth it when I don't have ssl to protect the transactions. So my setup is that I have a ASP.Net server side with a Flex UI. Right now

how do I call a customcomponent with added functionality in flex

前提是你 提交于 2019-12-23 04:57:05
问题 I have created a custom component (named customtitlewindow) the code of which is as follows: <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" layout="vertical" width="400" height="300" xmlns:comp="components.*" showCloseButton="true" keyDown="detectescapekeypress(event)" creationComplete="this.setFocus();" close="PopUpManager.removePopUp(this);" paddingTop="40">

Integrating Paypal API in Adobe Flex

江枫思渺然 提交于 2019-12-23 04:56:20
问题 I am writing a Flex project in which I need to communicate with Paypal via their APIs. Really not sure how to start with - this is my first flex/air application. I won't be using any server side technology (no Java, Php, .NET, Coldfusion) - all of the requests have to come from Flex and the response be sent back directly to the flex application. Can someone please give me an example or something to start with. Let's say implementation of RefundTransaction API in Flex. Is it possible? If not,

Parsing large text files with Adobe AIR

余生长醉 提交于 2019-12-23 04:46:06
问题 I am trying to do the following in AIR: browse to a text file read the text file and store it in a string (ultimately in an array) split the string by the delimiter \n and put the resulting strings in an array manipulate that data before sending it to a website (mysql database) The text files I am dealing with will be anywhere from 100-500mb in size. So far, I've been able to to complete steps 1 and 2, here is my code: <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; import flash

Flex Mobile 4.6 Textinput Databinding

你。 提交于 2019-12-23 04:44:20
问题 the new TextInput component which uses stagetext on 4.6 has this issue where if you bind a variable on it e.g view1... and i push a new view e.g view2, and pop it, hence reloading view1. on initial load, I can see that the textinput display the variable abruptly then the text vanishes afterwards.. I'd like to note that the variable is a stored data, and can be access on any view. any help would be greatly appreciated 回答1: I think than the problem can be solved if you add the skinClass: this

ItemRenderer Switching URLLoader Images

℡╲_俬逩灬. 提交于 2019-12-23 04:42:14
问题 I don't even know how to explain this behavior but I'll try. I am loading images from an external url that requires basic auth so I am using URLLoader to load the image from a unique ID. The ID gets passed to the itemrenderer which then proceeds to load the image. But the images switch around on their own when I scroll. If I load more than 7 images or so it starts repeating images.... Youtube video of error: http://www.youtube.com/watch?v=ZYoqlS14gWQ Relevant code: <s:ItemRenderer name=