flex4

Flex builder3 is not generating html wrapper when targeting flex 4 sdk

◇◆丶佛笑我妖孽 提交于 2019-12-22 10:07:03
问题 In Flex builder 3 when I create a new flex application targeting the flex 4 sdk, it wont generate a html wrapper file. I have hunted around the web for answers, but no success. I have made sure the box is checked in the project properties to generate html wrapper. The only workaround is to target an older version of the sdk (i.e. 3.2), which will cause the wrapper to be generated. Then I can revert the project to sdk 4. This then means I can never do a clean of my project because this will

What's the difference between the mx/fx/s object types in Flex 4?

谁都会走 提交于 2019-12-22 09:33:28
问题 Flex4 provides the following namespaces: xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" What's the difference? Which namespace provide which function? Where can I find info about that? 回答1: Namespaces allow you to specify to the compiler where to look for the files/classes that you reference in your mxml. There are two different types of namespaces that get used in Flex 4. A language namespace and a component

Flex ModuleLoader component causing memory leak. How can I unload Modules properly?

戏子无情 提交于 2019-12-22 09:03:06
问题 The application is too big to describe here, but I can tell you I have up to 20 modules or more that the client can use at any time. And if I go on loading screen after screen, my application can ocuppy 500MB and more. The script that I use to load and unload modules is: public function createModule(modulo:String):void { if(moduleLoader != null){ moduleLoader.unloadModule(); //moduleLoader.url = null; moduleLoader.url = "com/oss/facturable/components/" + modulo + "?version=" + model.configXML

Flex-built SWF's no longer work, error 2048, 2046, 2032

和自甴很熟 提交于 2019-12-22 07:01:00
问题 I'm really confused about this problem, and I'm pretty new to Flex. Basically, anything I try to build with mxmlc fails to run now, giving me the above three errors depending on what I do. It was working 30 minutes ago, I've been spending that time trying to figure out what has changed. I redownloaded the Flex SDK, cleared my assetcache, have cleared Firefox's cache. (I'm using Linux.) Even if I compile with -static-link-runtime-shared-libraries=false, since it seems like #2048 is a RSL

Disable Flex CSS type selector warning?

江枫思渺然 提交于 2019-12-22 01:57:39
问题 I'm building a somewhat large Flex project that includes several modules (a single Flex project that produces multiple SWFs) Right now, I have a single css file, being loaded in the main SWF tag: <s:Application ... > <fx:Style source="css/main.css" /> ... </s:Application> In the CSS file: /* CSS file */ @namespace s "library://ns.adobe.com/flex/spark"; s|Panel { skinClass: ClassReference("com.skins.DefaultPanelSkin"); } s|Button { skinClass: ClassReference("com.skins.DefaultButtonSkin"); }

Adding mouseOver/mouseDown/mouseUp/etc. to custom MXML component

╄→гoц情女王★ 提交于 2019-12-21 22:03:46
问题 I'm new to Flex and am porting a pure Flash/AS3 app to Flex 4.5 I've created a custom MXML component based on BorderContainer <?xml version="1.0" encoding="utf-8"?> <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="160" height="140" > <s:Image id="_avatar" enableLoadingState="true" x="0" y="0" width="160" height="120" /> <s:Label id="_username" x="0" y="125" fontSize="12" fontWeight="bold" /

Compiling with Flex4 SDK

心不动则不痛 提交于 2019-12-21 02:57:11
问题 I'm trying to compile an existing Flex3 project with the Flex4 SDK. I'm getting this error: Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option. The resulting file is roughly the same as my old Flex3 compiled .swf file. Playing the resulting .swf file in

Flex performance considerations

╄→尐↘猪︶ㄣ 提交于 2019-12-20 09:38:16
问题 What are the main key-points a Flex developer should remember in order to improve performance of Flex applications? The ones which come to my mind are: extending ItemRenderers from more lightweight base classes: i.e. UIComponent using suspendBackgroundProcessing set to true for animations using ArrayLists instead of ArrayCollections where appropriate. useVirtualLayout in Spark DataGroups (unfortunately this step requires Scrollers to make this advice effective) SQLight performance

how do I make a TileGroup layout that has the jaggy edge on top?

半腔热情 提交于 2019-12-20 06:41:43
问题 I have spark.components.TileGroup that contains buttons. I would like the buttons to appear like tabs on top of the ViewStack they serve At the moment, if I have 6 items in the TileList it lays it out as 2 rows with 4 items in the top tow and 2 in the bottom, so the jaggy edge is at the bottom [ITEM 1][ITEM 2][ITEM 3][ITEM 4] [ITEM 5][ITEM 6] I would like it to look like this, with the jaggy edge on top [ITEM 5][ITEM 6] [ITEM 1][ITEM 2][ITEM 3][ITEM 4] The order of the items is not important

Is there a way to listen for events on the pop up manager class?

梦想的初衷 提交于 2019-12-20 03:43:18
问题 I'm trying to detect when pop ups are visible (including tool tips if possible). The reason is that I need to hide or freeze (capture a snapshot) the Stage* components (StageWebView, StageVideo, StageText etc) when pop ups appear. 回答1: There's no really easy way to achieve this. What you can do is this: create a custom popupmanager make it dispatch events on the Application, so you can listen anywhere tell Flex to use your class instead of the default implementation Create a custom