flex3

Can we use static initializers in a Flex Library?

泪湿孤枕 提交于 2019-12-13 04:04:18
问题 We are using as3Crypto library in my project. We have downloaded the code, modified a bit and started using it. Initially we have included the complete code as the part of the project. Now we are trying to compile it as Separate Library file(.swc). When we compile the code, we didn't get any errors, but we got one warning saying Severity and Description Path Resource Location Creation Time Id flex2.compiler.as3.SignatureExtension.SignatureGenerationFailed[level='warning', column='23', node=

strange Error 1006: %function_name% is not a function

瘦欲@ 提交于 2019-12-13 03:20:33
问题 I encounter the following error: Error 1006: %function_name% is not a function We have 2 util classes in out project named as ArrayUtils . All functions in them are public static . Another developer added function %function_name% to one of ArrayUtils . I use this method in my code. I recompiled whole application. It compiles OK and IDE (IntelliJ IDEA) detects this method normally (imports are correct). But at runtime I got mentioned above error. The most strange thing is that this code works

The property still has the old value in validateProperties

一世执手 提交于 2019-12-13 02:43:49
问题 I have a custom renderer (inherits from AdvancedDataGridItemRenderer ), and I'm overriding validateProperties and using the value of the width property, but I'm getting the old value every time! Isn't validateProperties supposed to execute after the properties were committed (I'm calling super)? Here's my code: public override function validateProperties():void { super.validateProperties(); if ((AdvancedDataGrid(listData.owner).columns[listData.columnIndex]. showDataTips)&&(textWidth>width))

Weird Behaviour-CheckBoxes as ItemRenderer within Flex DataGrid - FLEX 3

十年热恋 提交于 2019-12-13 02:28:49
问题 I'm having this weird behaviour in a datagridColumn which I've customized to have its cells rendered as checkBoxes rather than the dafault itemRenderer (i.e. strings). The relevant code is as follows: <mx:DataGridColumn sortable="false" textAlign="center" headerText="" width="20" dataField="colCB"> <mx:itemRenderer> <mx:Component> <mx:CheckBox selected="true"> <mx:Script> <![CDATA[ import mx.controls.Alert; public function change():void{ //TODO } ]]> </mx:Script> </mx:CheckBox> </mx:Component

How to validate the radio button group? in flex

主宰稳场 提交于 2019-12-13 01:09:28
问题 How to validate the radio button is selected or not in flex 3? if my question is wrong, please suggest me any thing regarding the validation of radio group. 回答1: Simply use a StringValidator: <mx:StringValidator id="myRadioButtonGroupValidator" source="{myRadioButtonGroup}" property="selectedValue" required="true"/> 回答2: For Spark groups and RadioButtons things work slightly different. See the example below. Note: For a HGroup as the example shows: The warning-sight will appear for errors but

Create a Notification window in Adobe AIR Application

余生颓废 提交于 2019-12-12 15:52:25
问题 I want to create an AIR application in which i need to show the notification that when AIR application is minimize then at some interval of time message shows from the system tray similar like giving information. I have visited this LINK, its a nice component but tutorial is not that much good as component. I need to create a component like that or source is available from this site so modification in this component will also be acceptable. so please help me. EG: When you minimize the Yahoo

flex: how to prevent PASTE (ctrl+V) in a flex3 textinput?

眉间皱痕 提交于 2019-12-12 11:42:37
问题 Hello I need to disable pasting text in a textinout (flex3) : CTRL+V Any idea ? reagrds 回答1: This only block pasting more than one letter, but it does work for most purposes: <mx:TextInput textInput="if (event.text.length > 1) event.preventDefault()"/> and for spark: <s:TextInput change="if (event.operation is PasteOperation) (event.target as SkinnableTextBase).text = '' " /> 回答2: I'm afraid you can't with the TextInput : TextField objects do not dispatch clear, copy, cut, paste, or selectAll

How can I nicely animate between viewstacks

亡梦爱人 提交于 2019-12-12 11:34:41
问题 I have a little Adobe Air app and I want to have several 'views' within it. I can achieve these views using a ViewStack but am having difficulty finding a nice way to animate between them. This is what I have tried and although it works, one view disappears before sliding into view when what I want is more like the DestroyTwitter app where the view and all controls slide out of view nicely: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml

flex 3 and itemRenderers

邮差的信 提交于 2019-12-12 06:45:07
问题 i have a datagrid and for one of the columns im using an item renderer to display content. Im wondering is it possible to access the dataprovider content of the datagrid inside a script block in the itemRenderer. Currently I can access the dataprovider in a component in the item renderer using data.variableName. I want to be able do some error handling on this variable in the script block, any ideas? 回答1: You can specify your own ItemRenderer component. Within the MXML of that component you

Which version of Flex Builder do I need?

无人久伴 提交于 2019-12-12 04:35:49
问题 I have a Flex project that I need to work on that using some mxml elements which I believe are charting related: Pie Chart, and some LineGraphs. Do I need to buy Flex Builder Professional to compile the project, or will Standard work? On a related side-note, the Adobe website is brutal. I was going to use Eclipse with the SDK but the increased setup time and lack of code completion makes it not a contender in my situation. 回答1: If code completion and ease of setup are primary concerns, then I