flex4

How can I catch the fontSize change event?

懵懂的女人 提交于 2019-12-24 10:58:19
问题 I am writing a skin for a TextInput control, and I want it to change when the fontSize style changes dynamically. I see this is done in the default TextInputSkin but couldn't decipher the behavior form the code. How is this done? thanks, 回答1: override fontSize setter, and dispatch a CHANGE event there. 来源: https://stackoverflow.com/questions/3692094/how-can-i-catch-the-fontsize-change-event

In Flex 4, state transition doesn't resize in both directions (v2)

梦想的初衷 提交于 2019-12-24 09:39:40
问题 I already had another question on this issue which was successfully resolved. But now, with a slightly different example, I'm stuck again. I have two states. When I switch from A to B, it resizes correctly, but when I switch from B back to A it happens without the smooth resize transition. What am I doing wrong? Here's my code: <fx:Script> <![CDATA[ protected function rollOverHandler(event:MouseEvent):void { this.currentState = "AB"; } protected function rollOutHandler(event:MouseEvent):void

Flex: parentDocument inconsistent between SDK version 4.1 and 4.5

雨燕双飞 提交于 2019-12-24 07:48:50
问题 I'm seeing some inconsistencies with parentDocument between Flex SDK 4.1 and 4.5. In a nutshell, existing code that works in 4.1 is broken in 4.5 (and 4.6). Here's a small example to demonstrate: TestProject.mxml <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="500" minHeight="500" xmlns:local="*"> <local:SubComponent x="50" y="50"/> </s:Application>

Flex 3 equivalent of '<fx:Declarations>'?

你。 提交于 2019-12-24 05:38:15
问题 I'm trying to migrate a Flex 4 project backwards to Flex 3, and I need to move stuff mapped in a <fx:Declarations> block in MXML. Does Flex 3 have something similar to this? It's been a while since I've done Flex 3. 回答1: There is no equivalent in Flex 3. You can declare things alongside your other components. The difference in Flex 4 makes the separation between visual and non-visual items (including things like effects, validators, formatters, data declarations, and RPC classes) clearer. For

Spark DropDownList Custom ItemRenderer Issue

浪尽此生 提交于 2019-12-24 04:08:32
问题 I have a Spark DropDownList that has a custom ItemRenderer. The ItemRenderer, upon creation, checks the label text and if it matches certain criteria, then the label text color changes. The label text color is changing, however it is for the wrong label. What appears to be happening is that the label color that is actually being changed is in reverse order of how the labels are displayed in the drop down list. For example, the list contains the text labels: One, Two, Three, Four, and is being

[IOErrorEvent type=“ioError” bubbles=false cancelable=false eventPhase=2 text=“Error #2032”]

左心房为你撑大大i 提交于 2019-12-24 02:39:08
问题 I am trying to display database details in a Flex datagrid and connected using HTTP Service. It was able to display details without any issue when I was working in the FlashBuilder 4.5, however, I deployed the bin-debug part in the Tomcat webserver to access it globally. I am experiencing this error message when I am trying to access the swf file " HTTP request error Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://localhost:8084

Is there a way to make a <s:TabBar /> vertical?

和自甴很熟 提交于 2019-12-24 01:07:16
问题 Is there a way to make a <s:TabBar /> vertical? 回答1: I've managed to do it with a custom skinClass. I've changed the Datagroup's layout to VerticalLayout 回答2: The source code here worked for me: http://hasseg.org/blog/post/112/vertical-tabnavigator-component-for-flex/ 来源: https://stackoverflow.com/questions/2935882/is-there-a-way-to-make-a-stabbar-vertical

Migrating to Flex 4

…衆ロ難τιáo~ 提交于 2019-12-24 00:15:45
问题 How much of an impact will migrating to Flex 4 have on our code base? We have about 40k LOC written in Flex 3. I'm hoping that there are no breaking changes in the Flex SDK, and that we can smoothly transition to the new features of Flex 4 while minimizing any disruption. From what I've read Adobe is developing a new set of GUI components called 'Spark' but I'm hoping our existing stuff can co-exist with the new components. 回答1: Spark and MX components can co-exist within the same application

Use Flex 4.5 and 4.0 in Adobe Flash Builder 4

倖福魔咒の 提交于 2019-12-24 00:00:27
问题 As the new Flex SDK 4.5 has become a stable release, I want to upgrade my apps to the new SDK. But without losing compilation with SDK 4.0 with which they are working perfectly well. I used Flash Builder 4.0 to build them. Is there a way in Flash Builder to conditionally compile with 4.0 and 4.5 and create two release versions in separate bin-debug folders? 回答1: Flash Builder supports multiple SDKs; but you can only use a single SDK per project. You have a few options: Use a build tool such

What does different namespaces mean in Flex?

笑着哭i 提交于 2019-12-23 23:13:10
问题 I worked on a flex application 6-7 months back. We used flex 3.5 sdk. Now we are upgrading our flex app with flex sdk 4/4.1 I am still new to flex development and I have a very basic question related to namespace. I have seen three different namespaces in flex sample applications. What is the purpose of having three diff namespaces? When do I use each of them ? xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" Thanks