flex3

Removing all event listeners in Flex

独自空忆成欢 提交于 2019-12-04 11:53:16
How can I remove all event listeners on all components at once, especially when it is not known what listeners are attached to each component? You can override mx.core.FlexSprite, which UIComponent inherets from, and generate an array of listeners created. Doug Mc Cune put up source code here . His blog says: removeAllEventListeners() – removes all event listeners of all types. This completely wipes out all event listeners for the component all at once. Let us know if this does the job! No! You might be able to mock something up with hasEventListener and willTrigger . But, there doesn't appear

How to use htmlText as Radio button label in Flex 3

折月煮酒 提交于 2019-12-04 06:08:27
问题 I need to show few words in bold for radio buttons in Flex 3. something like the following: option 1: Hello world. option 2: Hello world. I see that there is no htmlText property for label of Radio Button. Anyone has any suggestions in accomplishing this requirement? Thanks Anji 回答1: @Timofei Davydik You can include HTML Text inside RadioButton labels by extending RadioButton and overriding the updateDisplayList function. You need to change htmlText propert of textField to label's value

How to update a MySql DB using Flex

瘦欲@ 提交于 2019-12-04 04:53:59
问题 Just got developing with Flex, and i like it. I've done some simple apps to get the felling of it, nothing involving updating a file or a database. I wanted help, how to do a query to a MySql DB from a Flex application (thats gonna be running in a web server). I didn't saw any duplicated questions, sorry if any exists, just point me to it. EDIT: Using PHP to do the query on the server. 回答1: While I've never done this myself I have read and watched tutorials about it. The tutorial can be found

Flex: Basic expectations from a flex(actionscript) developer

微笑、不失礼 提交于 2019-12-03 20:34:03
Knowledge has no limits but still in your opions, what are the basic requirements for an individual, where he can call himself a flex developer. To make it a bit concrete lets say after having a 2-3 years experience. In my perspective it should be something like below. It is a very (very) rough idea and please let me know your views and suggestions on this. BASIC: (1) Knowldge about basic GUI components like tab, vbox, etc. Their properties and the ability to decide which component suits better in a condition. (2) Knowledge to use services like HTTP, wsdl, remote objects, etc. (3) knowledge

Pass data between flex components

本秂侑毒 提交于 2019-12-03 08:54:26
I'm new to flex , so forgive me if this is a dumb question. Right now I'm using custom events to pass data from one component to another. My problem is that events only bubble up. How can I pass data to a component that isn't a parent of the component dispatching the event? Here's the basic layout. I'm trying to get data from component 1 passed to component 3. Application MXML Component 1 Component 2 Component 3 If a piece of data is required by all components in a graph/tree, your best bet is to expose a public bindable property on each. Let the child components dispatch a bubbling event that

ActionScript event handler execution order

天涯浪子 提交于 2019-12-03 08:44:44
I have been trying to understand the way ActionScript's events are implemented, but I'm stuck. I know that AS is single threaded, which means that only one event handler will be executing at a time, and also means that handlers will be executed in a deterministic order*. For example, consider the following code: 1: var x = {executed: false}; 2: foo.addEventListener("execute", function(){ x.executed = true; }); 3: foo.dispatchEvent(new Event("execute")); 4: assert(x.executed); If ActionScript was multi-threaded, it would be possible that the assertion on line 4 could fail sometimes and succeed

Apply Filter to Everything in AS3

回眸只為那壹抹淺笑 提交于 2019-12-02 16:08:11
问题 I'm trying to add a filter in AS3/Flex SDK. I can add a filter just fine to any one single object - but I want to apply the filter to everything that is a child of a certain object. Think a pause window pops up, and everything below the pause window goes blurry. Applying a filter to each individual object (eg: iterating through a list) doesn't work, as the filters from each object can then overlap and look pretty ugly. Does anyone know how to go about doing this? Is there a way to apply a

How to use htmlText as Radio button label in Flex 3

房东的猫 提交于 2019-12-02 09:31:32
I need to show few words in bold for radio buttons in Flex 3. something like the following: option 1: Hello world. option 2: Hello world. I see that there is no htmlText property for label of Radio Button. Anyone has any suggestions in accomplishing this requirement? Thanks Anji @Timofei Davydik You can include HTML Text inside RadioButton labels by extending RadioButton and overriding the updateDisplayList function. You need to change htmlText propert of textField to label's value inside this function. Here is the HTMLRadioButton Component package components { import mx.controls.RadioButton;

Apply Filter to Everything in AS3

試著忘記壹切 提交于 2019-12-02 07:44:30
I'm trying to add a filter in AS3/Flex SDK. I can add a filter just fine to any one single object - but I want to apply the filter to everything that is a child of a certain object. Think a pause window pops up, and everything below the pause window goes blurry. Applying a filter to each individual object (eg: iterating through a list) doesn't work, as the filters from each object can then overlap and look pretty ugly. Does anyone know how to go about doing this? Is there a way to apply a filter to everything ? Here's a simplified version of the code: myCanvas.graphics.beginFill(0x00FF00,0.5);

Loading flex modules compiled with Flex 4 SDK into an application compiled with Flex 3.5

巧了我就是萌 提交于 2019-12-02 02:28:53
I am working on a feature for an application that requires Flex 4 functionality. Due to some migration issues of the application from Flex 3.5 to 4.0, I have decided to implement this feature as a module that is compiled with Flex 4.0. The theory is that the application would remain compiled in Flex 3.5 and load the module when it needs it. Here is the module loading code: public function loadDiagModule():void { var moduleLoader:ModuleLoader = new ModuleLoader(); moduleLoader.url = "module/DiagrammerModule.swf"; moduleLoader.loadModule(); moduleLoader.addEventListener(ModuleEvent.READY,