apache-flex

Passing variable FROM flash to HTML/php

≯℡__Kan透↙ 提交于 2019-12-19 12:06:15
问题 I was hoping maybe someone could provide some insight on a problem I'm having a tough time deciding how to solve. I have a rather simple flash application users can make a quick username when connected, and the username is created inside the flash swf. Now, I have a cron job deleting inactive usernames every ten minutes (on my mysql database where these usernames are all stored and accessed by the other people online) which is fine. But it can still get cluttered up if a bunch of people sign

Passing variable FROM flash to HTML/php

三世轮回 提交于 2019-12-19 12:06:09
问题 I was hoping maybe someone could provide some insight on a problem I'm having a tough time deciding how to solve. I have a rather simple flash application users can make a quick username when connected, and the username is created inside the flash swf. Now, I have a cron job deleting inactive usernames every ten minutes (on my mysql database where these usernames are all stored and accessed by the other people online) which is fine. But it can still get cluttered up if a bunch of people sign

Running external tools in Eclipse on Mac OS X

喜欢而已 提交于 2019-12-19 12:02:59
问题 I'm using Flash Builder 4 on a mac. I've created a JSFL file for building a few fla's and then testing my main SWF file. I'm trying to run this JSFL file as an external tool from Flash Builder 4 but when I select Adobe Flash CS4.app as the file to run the JSFL Eclipse warns "External tool location specified is not a file." I have Parallels installed and if I point at a .exe file this warning goes away. Is this a bug? Why can't I use a .app as an external tool in Eclipse? 回答1: Try this:

Quickly debug Flex/Java web application from Eclipse?

时间秒杀一切 提交于 2019-12-19 11:53:07
问题 I have a Flex/Java web application that uses Maven as a build tool. Currently, if I want to debug the entire application I use Maven to create the WAR file and use the cargo plugin to deploy the WAR file and start up the app server. I then launch an Eclipse (with Flash Builder 4) Flex "Web Application" debug configuration and start debugging. It all works very well, but I am looking for a way to make this faster. I'd like to be able to edit my Flex code and immediately launch my Flash Builder

Merge data into filtered ArrayCollection (maybe by using IViewCursor or localIndex?)

孤者浪人 提交于 2019-12-19 11:24:11
问题 I have a Flex question, which isn't as easy as it seems at first. At least I'm struggling since 1 week with it. I have prepared a test case and a screenshot. The question is: how do you merge data (coming repeatedly from server) into a filtered ArrayCollection? The screenshot: The TestCase.mxml (just place it into a Flash Builder 4.6 project): <?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"> <fx

To execute Flex cleanup function when browser is closed by user

柔情痞子 提交于 2019-12-19 09:27:09
问题 I have a Flex client application. I need a clean up function to run in Flex when the user closes the browser. I found the following solution on the net, but it only works half-way for me. How could I fix it? Thanks in advance for any responses! Symptoms CustomEvent triggered, but not executed. >> EventHandler for CustomEvent.SEND_EVENTS is defined by a Mate EventMap. All the handler does is to call an HTTPServiceInvoker . In debug console, I'm able to see the handler and HTTPServiceInvoker

Flex: Impossible to resize the external loaded SWF's content

人走茶凉 提交于 2019-12-19 08:58:23
问题 I have an application where I try to load an external SWF. So, we have: My application: The Stage's dimensions are 768x1280. ScaleMode = EXACT_FIT. External SWF: It's another application where its stage is: 800x600. ScaleMode = EXACT_FIT. The problem is that the external SWF does not modify its size although I apply "scaleX, scaleY", change its width and so on. I also tried to insert it into a Canvas container (as "How to resize an external SWF to fit into a container?" ) but it didn't solve

How can I know when a Button in a Flex DataGrid itemRenderer is clicked?

天涯浪子 提交于 2019-12-19 08:52:32
问题 I have a DataGrid component that displays a few columns of data. It has one additional column that displays a Button that allows the user to take an action with regard to the record. <mx:DataGrid dataProvider="{myData}"> <mx:columns> <mx:DataGridColumn dataField="firstName" headerText="First Name" width="75" /> <mx:DataGridColumn dataField="LastName" headerText=" Last Name" width="150" /> <mx:DataGridColumn dataField="phone" headerText="Phone" width="120" /> <mx:DataGridColumn headerText=""

How do you programmatically move the caret of a Flex TextArea to the end?

荒凉一梦 提交于 2019-12-19 07:18:08
问题 I'm trying to move the caret in a Flex TextArea to the end after appending some text from my code. I've looked through the reference documentation for TextArea and its underlying TextField but it appears there is no method provided to handle this. One approach I've tried is to set focus to the text area and dispatch a KeyUp KeyboardEvent with the event's key code set to the "End" key, but this doesn't work. Any ideas on how to do this? Thanks. 回答1: Try this textArea.selectionBeginIndex =

Timer vs setTimeout

半城伤御伤魂 提交于 2019-12-19 05:29:47
问题 The docs for flash.utils.setTimeout() state: Instead of using this method, consider creating a Timer object, with the specified interval, using 1 as the repeatCount parameter (which sets the timer to run only once). Does anyone know if there is a (significant) advantage in doing so? Using setTimeout is a lot easier when you only need to delay 1 call. 回答1: setTimeout actually uses a Timer subclass, the SetIntervalTimer , which is an internal class. You can check by doing setTimeout(function ()