flex3

Changing individual tab style in flex

霸气de小男生 提交于 2019-12-11 06:57:13
问题 I have figured out a way to change the style of tabs at run time with following logic: var cssStyle:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".MyTabs"); cssStyle.setStyle("borderColor", "red"); But here ".MyTabs" class is applicable to all the tabs between first and last tab. As per getStyleDeclaration javadoc, it only accepts "class selector" and "type selector" not the id selector. How can I change the individual tab style at run time? 回答1: Another user pointed out a method

Understanding an AMF Polling call

故事扮演 提交于 2019-12-11 06:48:48
问题 One of my testers is asking me about an AMF polling that we do in our app: flex_amf_call( "AMF3_call_12", "Gateway=http://test.url.com:22000/InventoryTesting/boa/messagebroker/amfpolling", "Snapshot=t19.inf", MESSAGE, "Method=null", "TargetObjectId=/7", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom><flex.messaging.messages.CommandMessage>\n " "<destination>InvTestMessaging</destination>\n <messageId>" "4AF91854-F89E-F56D-EE22-4EC8BBAEA4BC</messageId>\n <timestamp>0</timestamp>\n " "

Increase the gap between the buttons of Alert Box in Flex 3

送分小仙女□ 提交于 2019-12-11 06:44:33
问题 I am trying to put a gap of 20-30px between the Alert box buttons(YES and NO). but unable to find such styling point in flex. I have tried horizontal-gap, and also padding, but in vain. Below is the sample code i am trying, which i found when browsing through sites. <?xml version="1.0" encoding="utf-8"?> <mx:Application name="Alert_style_test" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="showAlert()"> <!-- Used by

What are the measurable benefits from migrating from Flex 3 to Flex 4?

风格不统一 提交于 2019-12-11 06:25:16
问题 We have a big Flex 3 project with 30 developers. I need to present benefits/costs of upgrading from Flex 3 to Flex 4 and I can't seem to find existing data on Google. I assume I am not the first to do this. Our application is RIA app so it's not a video/custom component heavy. I have these benefits: 1) Right to left native support 2) Smooth Scrolling 3) Two way binding 4) FXG 5) Better state model I need more data about the following: 1) Spark - What are the actual benefit from Spark

How do I detect that Drag and Drop operation ended?

試著忘記壹切 提交于 2019-12-11 05:23:16
问题 This is in reference to My Other Question How do can you detect and dispatch an event when a drag and drop operation ends prematurely? I need to know that the user is no longer dragging an item. Even if the dragDrop and dragComplete events do no fire. Its almost as if I need to add an event listener to the dragManager, but that's not really possible... is it? 回答1: It looks like basically you need to be able to tell if the DragManager craps out. Even if there was an ERROR event in the drag

How to set the RadioButton icon style to nothing in CSS (in Flex 3)?

守給你的承諾、 提交于 2019-12-11 03:48:00
问题 You can skin a RadioButton in Flex by setting the following values in CSS: upSkin: Embed(...); overSkin: Embed(...); ownSkin: Embed(...); disabledSkin: Embed(...); selectedUpSkin: Embed(...); selectedOverSkin: Embed(...); selectedDownSkin: Embed(...); selectedDisabledSkin: Embed(...); But, it will still display the little circle icon inside your skin. You can change the icon by setting the following styles: upIcon: Embed(...); overIcon: Embed(...); etc... My question is, how can I set these

Is there a way to override action scripts operators, in particular I would like to override the equals operator

邮差的信 提交于 2019-12-10 23:36:09
问题 Is it possible to override the equals() operator (ie. for customer classes where equality may be determined by 2 or more fields matching). 回答1: if you mean overloading "==" as a synonym for equals() then you can't, as ActionScript doesn't offer operator overloading. Just write an equals() method for your class and use that... 回答2: Using your own equals() method for a class doesn't solve how to check if a collection contains the desired object. In flex I've always had to write a for each and

flex swf app - looking for unload() or onClosing() exiting() function

一个人想着一个人 提交于 2019-12-10 22:41:03
问题 I upload my flex client-side swf app to some website that loads different swf's on it's site. So you see your application floating in that website. My app is Flex swf app and has onCreationComplete() that starts the flow of logic. Now I want to do cleanup state and save state in a shared object when the application unloads (or probably exiting event, or closing event..) So do we have any function that I can implement and the flash platform automatically calls that function when the swf is

Text input fields in flex when full screened does not work

折月煮酒 提交于 2019-12-10 19:22:00
问题 Hi all i have a problem where if my application is full screen i cannot click on any text input component and i cannot input any text into the fields. i have tried creating the text input fields at run time and i have tried creating them on the canvas when on the gui design window in flex builder. however they both give the same results and do not let me pick them and enter text. Any thoughts Regards Mark 回答1: As you said in the comment (just writing this answer for anyone that stumbles

Error #2084-The AMF Encoding of the arguments cannot exceed 40K

瘦欲@ 提交于 2019-12-10 18:18:13
问题 In my application I am using localConnection object for communication b/w Flex 3 and Flex 4 swfs. But when the size of the arguments ( ArrayCollection ) exceeds certain limit , I am getting following exception:- Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.LocalConnection was unable to invoke callback readyToUpdate. error=ArgumentError: Error #2084: The AMF encoding of the arguments cannot exceed 40K. Any inputs on same will be highly appreciated. 回答1: There's a