apache-flex

AS3 Delete child node from XML by child value

十年热恋 提交于 2020-02-03 05:27:37
问题 I've got an XML with a structure like the following; <items> <item>5</item> <item>3006</item> <item>25</item> <item>458</item> <item>15</item> <item>78</item> </items> How do I delete the item with the value 458. Just to clarify this, I don't know the index of that item, so simply calling delete items[index] won't do here. I have to delete by value. Any hints? 回答1: Using e4x filtering and the possibilities of using function inside the filter you can delete the node you want : xml.item.(text()

MouseDown/MouseMove/Click Issues with Flex Drag and Drop

别等时光非礼了梦想. 提交于 2020-02-02 14:35:12
问题 In Flex 3, I have an ItemRenderer that has a button in it. I want users to be able to click and drag this Renderer, but also just click the button. Right now it's working with the Renderer listening on "MouseMove" to initiate drag and drop, and the button listening on "click". However this is very screwy. If somebody is dragging a scroll bar and comes anywhere near that renderer, MouseMove gets fired on the renderer and initiates dragging. (or if somebody is resizing a HDividedBox, basically

Flex: Listening for 'Hover' over Link in text area

前提是你 提交于 2020-02-02 03:13:12
问题 I am trying to find out when a link is 'hovered over' in a text area showing html text. I wonder if listening for a cursor change kind of event might be the way. I can't find anything in the docs. Has anyone any idea what event I could listen for here? Thanks 回答1: That's a very interesting problem. Using Cay's suggestion, I thought of a method that would return an Array of Rectangle objects, coresponding to the locations of the text. I'm using the plural because there can be multiple

Internationalization for flash applications

a 夏天 提交于 2020-01-31 10:25:46
问题 I'm working with a flash application (non-flex), and I'd like to support internationalization. In flex there's a nice abstraction ResourceManager in which you provide resource bundles for each locale. Is there any equivalent for actionscript? 回答1: How about the Globalization package from AS Foundry? 回答2: Haven't used it myself, but this one looks interesting: http://www.sephiroth.it/weblog/archives/2005/12/actionscript_30_first_attempt.php It's based on the GNU gettext implementation and tool

Internationalization for flash applications

自古美人都是妖i 提交于 2020-01-31 10:25:14
问题 I'm working with a flash application (non-flex), and I'd like to support internationalization. In flex there's a nice abstraction ResourceManager in which you provide resource bundles for each locale. Is there any equivalent for actionscript? 回答1: How about the Globalization package from AS Foundry? 回答2: Haven't used it myself, but this one looks interesting: http://www.sephiroth.it/weblog/archives/2005/12/actionscript_30_first_attempt.php It's based on the GNU gettext implementation and tool

Internationalization for flash applications

倖福魔咒の 提交于 2020-01-31 10:24:15
问题 I'm working with a flash application (non-flex), and I'd like to support internationalization. In flex there's a nice abstraction ResourceManager in which you provide resource bundles for each locale. Is there any equivalent for actionscript? 回答1: How about the Globalization package from AS Foundry? 回答2: Haven't used it myself, but this one looks interesting: http://www.sephiroth.it/weblog/archives/2005/12/actionscript_30_first_attempt.php It's based on the GNU gettext implementation and tool

Drupal RPC Fault

◇◆丶佛笑我妖孽 提交于 2020-01-25 21:22:25
问题 Hopefully someone can help me with this problem. I'm starting to work with Drupal Services & Adobe Flex. I created a simple service and installed the AMFPHP module. In Adobe Flex when running the application, I don't seem to have a problem...and everything runs fine showing the data However, after uploading the .html and .swf files to my webserver and going to the site [http://www.bkardi.com/top25/Top25UI.html] I get the following error Authentication Error [RPC Fault faultString="Send failed

Eclipse and Flex Plugin

亡梦爱人 提交于 2020-01-25 20:45:20
问题 I have downloaded Eclipse - Helios and it is working perfectly. I am having a little trouble understanding the Flex functionality with Eclipse. Is it possible to download a Flex plugin or whatever it is called free of charge to develop and compile mxml and actionscipt files without having to purchase FlexBuilder 3 or 4 at a price of $600. I am under the impression that Eclipse is a free download and and Flexsdk is a free download. Can't they be put together into one tool? I cant afford the

Is it possible to trace references between objects in Flash, in the same way as the Flash Builder profiler?

こ雲淡風輕ζ 提交于 2020-01-25 18:44:47
问题 I'm trying to find memory leaks in a fairly large Flex application and I'm tired of using the paltry tools Flash Builder makes available. Specifically, I want to analyse the relationships of objects in memory, using the same information Flash Builder's tools appear to have access to. I.e. which objects are in memory, and which objects they have references to, and have references to them. Given that information, I want to construct a directed graph whose nodes are live objects and whose edges