apache-flex

Adding an image on the right side of the title bar of a panel in Flex 4

社会主义新天地 提交于 2019-12-25 00:49:14
问题 I'm trying to create a MXML component based on the spark Panel and I would like to add an image on the right end of the title bar, so that the panel will have a text on the title bar and a small image at the right end. I'm using a skin to define the colors, background fill etc. But how do I add this image at the right end of the title bar? I would like to make that image cutomizable so that when the component is inserted, either the default image is used or a new image can be provided. Please

fixed row width in DataGrid quirk

戏子无情 提交于 2019-12-25 00:29:42
问题 I've got this issue: I've got a dataGrid where whenever I set the column to not be resizable, the width gets messed up; works: var myCol:DataGridColumn = new DataGridColumn("Title"); myCol.width = 180; doesn't work (width is about 40pixels): var myCol:DataGridColumn = new DataGridColumn("Title"); myCol.width = 180; myCol.resizable = false; has anyone come across this or know why this is happening? I'm ready to just create my own dataGrid class now... 回答1: One thing that has helped us in the

Flex: Looking for design pattern to display busy cursor while my app is “busy”

筅森魡賤 提交于 2019-12-25 00:25:08
问题 I have a Flex 4 app that now and then needs to do a lot of processing, which causes a user to wait a few seconds for it to complete. I know Flex allows one to set and remove busy cursors via the cursor manager. I'm using it as follows: CursorManager.setBusyCursor(); // add busy cursor // execute lengthy processing here; e.g. switch to a new screen with a lot of layout CursorManager.removeBusyCursor(); // remove busy cursor However, in practice, for certain situations, the busy cursor doesn't

How do you make Flash not render an object on the Stage?

橙三吉。 提交于 2019-12-25 00:14:45
问题 This discussion started over here but I thought it would be nice to have a definitive answer... So let's say you have MovieClip on the Stage (or a UIComponent for the Flex audience) - what do you have to do to not make it so that the user can't see the object but also so that the AVM2 doesn't even factor it in when rendering the stage for the user? I always thought the answer was to set visible = false but there is an argument out there that the object has to placed outside the boundaries of

how to use mxml component in another actionscript

岁酱吖の 提交于 2019-12-25 00:13:18
问题 how to use mxml component in another mxml component actionscript code for ex. in my main mxml file private var warningMessage:Warning;//this is variable if (!_controller.flashVars.chatSession || _controller.flashVars.chatSession == "") { warningMessage.includeInLayout = true; warningMessage.visible = true; } else { _controller.flashVars.showWarningMessage = "2"; } private var warningMessage:Warning; (warning is external custom component) warningMessage.visible=true (and i want use it like

Howto removeEventListener with <mx:SetEventHandler />?

不想你离开。 提交于 2019-12-25 00:08:10
问题 I'm trying to remove an eventlistener on (in this specific case) a HorizontalList. The list is initialized with the property itemRollOver="playPreview(event)" I'd like to remove this eventListener by switching state and stating something like: <mx:SetEventHandler target="{horList}" name="itemRollOver" handlerFunction="null" /> This doesn't seem to work. The event is still handled and playPreview(event:ListEvent) is still called. How to properly do this? (I know I can do it in Actionscript,

Menu attached to mx.controls.PopUpButton never changes

泄露秘密 提交于 2019-12-24 23:29:56
问题 I have prepared a very simple test case to demo my problem. Please just place the 2 files below into a Flash Builder 4.6 project and they will run instantly. My problem is that the menu attached to my (slightly modified) custom PopUpButton never changes - even though the underlying Array data provider is changed when you click one of the 3 buttons on the right side of it: AuxButtonTest.mxml: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s

TabNavigator tab content retains strangely- FlashBuilder 4

空扰寡人 提交于 2019-12-24 23:20:09
问题 I have a strange problem where I am trying to build tabs in a tab navigator with a combination of mxml and AS-3. Somehow the last mxml tab contents are visible even on chosing the AS tabs- the problem is resolved afer the mxml tab-2 is viewed once e.g. when you have tab 2 as the chosen option and then click the button on top, the AS created tabs also show the mxml-tab contents- goes away after the tab is clicked through. Any ideas what's happened- and how to handle this? http://pastebin.com

Flex 4.6: embedded fonts not applied to TextField

社会主义新天地 提交于 2019-12-24 22:43:45
问题 I am trying to use embedded fonts (Flex 4.6) in a UITextField. As long as I use a font that is registered with Windows, it works fine, but for a font not registered, the UITextField defaults to TimesRoman (or something similar) Note that when I check to see if the font is embedded, it returns True (FlexGlobals.topLevelApplication.systemManager.isFontFaceEmbedded(txtFormatCoda)) So what am I missing? In the code below, if I add the font Kredit to Windows Font, the UI text field appears in

Is it possible to use a different Spring Security AuthenticationProvider in different servlets, same WAR?

杀马特。学长 韩版系。学妹 提交于 2019-12-24 22:28:21
问题 I have a single WAR that runs two servlets. One provides AMF remoting to Flex clients and other SOAP/HTTP to web service clients. I currently have Spring Security configured to authenticate the Flex clients using DaoAuthenticationProvider. However, I'd like to use a different authentication provide for the SOAP/HTTP. Possibly basic authentication or some other form. Is it possible? or do I need two WARs? 回答1: I think you'll run into problems issues with instantiating two security filter