apache-flex

Correct way in Flex to make a transparent panel respond to rollOver() events

狂风中的少年 提交于 2019-12-22 11:33:23
问题 I have a Canvas in a Flex application which has items inside it that cover only about 50% of the area of the main canvas. i want the canvas to respond to rollOver events for the full area, and not just the area that is covered by the items inside. I have been setting the following attributes to achieve this : <mx:Canvas backgroundColor="white" backgroundAlpha=".01" rollOver="rollOver(event)">... This causes the entire canvas to respond to rollOver events. It works great - I'm just not happy

Send keyboard and mouse events to Flash Movie

℡╲_俬逩灬. 提交于 2019-12-22 10:36:25
问题 I'm looking for a way to "inject" some events into a flash movie running on a browser. I know about ActionScript's ExternalInterface.addCallback function, however I'm trying to achieve this with any "random" flash from the web. Eg. send a "SPACE" keyboard event to a youtube video. 回答1: You can't do this to any random swf on any website because of security limitations. You need to have access to the DOM, which can only be done by Javascript Injections, unless you are the one with the swf

Flex builder3 is not generating html wrapper when targeting flex 4 sdk

◇◆丶佛笑我妖孽 提交于 2019-12-22 10:07:03
问题 In Flex builder 3 when I create a new flex application targeting the flex 4 sdk, it wont generate a html wrapper file. I have hunted around the web for answers, but no success. I have made sure the box is checked in the project properties to generate html wrapper. The only workaround is to target an older version of the sdk (i.e. 3.2), which will cause the wrapper to be generated. Then I can revert the project to sdk 4. This then means I can never do a clean of my project because this will

How to secure a hybrid Spring MVC + Flex application with spring security

烂漫一生 提交于 2019-12-22 09:57:57
问题 I tried asking this on the Spring forums ( http://forum.springsource.org/showthread.php?109948-Problem-configuring-spring-security-3.1-with-hybrid-Spring-MVC-Flex-application ) but did not get a response. I'm working on a web application that has an (end user) user interface built in Flex and a management user interface built using Spring MVC. I'm trying to secure both interfaces and can get each one working separately, but not together. I'm using a snapshot build of spring-flex-core 1.5.0

What's the difference between the mx/fx/s object types in Flex 4?

谁都会走 提交于 2019-12-22 09:33:28
问题 Flex4 provides the following namespaces: xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" What's the difference? Which namespace provide which function? Where can I find info about that? 回答1: Namespaces allow you to specify to the compiler where to look for the files/classes that you reference in your mxml. There are two different types of namespaces that get used in Flex 4. A language namespace and a component

Load xml file in flex before application start/initialises

余生颓废 提交于 2019-12-22 09:31:19
问题 I've got a configuration xml file that I need to parse for values before a flex application laods. I've created a static class that allows for the values in the xml config file to be retrieved. I'm initialising this class when the application first loads but as the xml file is loaded with a Loader class that loads a synchronously the class is being asked for values before the xml file is actually loaded - so it is throwing a error. Is there a way to load this xml file synchronously or can

Flex ModuleLoader component causing memory leak. How can I unload Modules properly?

戏子无情 提交于 2019-12-22 09:03:06
问题 The application is too big to describe here, but I can tell you I have up to 20 modules or more that the client can use at any time. And if I go on loading screen after screen, my application can ocuppy 500MB and more. The script that I use to load and unload modules is: public function createModule(modulo:String):void { if(moduleLoader != null){ moduleLoader.unloadModule(); //moduleLoader.url = null; moduleLoader.url = "com/oss/facturable/components/" + modulo + "?version=" + model.configXML

How to make BlazeDS ignore properties?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 08:57:59
问题 I have a java class which has one field with getter and setter, and a second pair of getter and setter that access this field in another way: public class NullAbleId { private static final int NULL_ID = -1; private int internalId; getter & setter for internalId public Integer getId() { if(this.internalId == NULL_ID) { return null; } else { return Integer.valueOf(internalId); } } public void setId(Integer id) { if (id == null) { this.internalId = NULL_ID; } else { this.internalId = id.intValue

Looking for CSS parser written in AS3

▼魔方 西西 提交于 2019-12-22 08:35:48
问题 I need to load and apply CSS at runtime in my Flex app. I know that the adobe docs say that you need to compile the CSS before loading it but I would like to find a work around. I know that you can set individual styles like this: cssStyle = new CSSStyleDeclaration(); cssStyle.setStyle("color", "<valid color>); FlexGlobals.topLevelApplication.styleManager.setStyleDeclaration("Button", cssStyle, true); I was planning on parsing a CSS file and appling each attribute as above. I was wondering if

Local Timer Object Event Handler

允我心安 提交于 2019-12-22 07:07:47
问题 I have the following code in a class function : public function foo():void { var timer:Timer = new Timer(10000,1); timer.addEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete); timer.start(); } public function onTimerComplete(e:TimerEvent):void { // do stuff } The above code works most of the time but my concern is what happens if timer gets garbage collected? Is it possible that onTimerComplete will never fire because there are no other references to timer? I know timer has an internal