flex4

Device font looks different in Flash player & AIR

时光总嘲笑我的痴心妄想 提交于 2019-12-08 12:19:04
问题 EDIT: It looks like a bug in AIR. I've reported it here: https://bugbase.adobe.com/index.cfm?event=bug&id=2955444 please vote on it ↑ Problem: I've tried to display white text on a colored background in FlashPlayer & AIR runtime. Unfortunately, the text displayed in the AIR runtime looks much worse, than FlashPlayer one. Here is how does it look (AIR version at top, FlashPlayer at bottom): IMG: http://imageshack.us/photo/my-images/710/fontcomparison.png/ So, the question is, why there is such

Flex DataGrid column width: one column to rule them all?

老子叫甜甜 提交于 2019-12-08 12:01:17
问题 I have a Flex 4, mx:DataGrid with the following (pertinent) properties set: width="100%" horizontalScrollPolicy="off" I have the minWidth set on all of the DataGridColumns and the width set on one of them. If I simply maximize/minimize the display (in browser or stand-alone flash player) of the application, the columns scale up and down nicely. But if you grab the edge of the application and drag it to make it bigger, only one column grows really big. When you drag the size down again, the

List with different column count

随声附和 提交于 2019-12-08 11:52:31
问题 As the pic show(This is drawn by PhotoShop, not implemented yet), I want to implemnt a List like this one. It has different column count, say the first row has only one item, and the others have two items . I tried to use itemRendererFunction to detect the different item(the first row treat as a rendererA, the others treat as another rendererB),but it didn't work. 回答1: The cleanest solution to this problem, is to create a custom layout (we've discussed in the comments how Romi's solution will

Class fl.controls::CheckBox could not be found

爱⌒轻易说出口 提交于 2019-12-08 09:16:09
问题 I am loading external swf that contain checkbox on the stage. but when I try to load that swf I get an error "Class fl.controls::CheckBox could not be found." I build the application with pure as3 in flash builder 4 and the external swf made by flash pro cs4 Thanks, 回答1: fl.controls namespace is a part of Flash Pro. To integrate with Flash Builder, you can either add the package by SWC or via code: Adding Flash Components to Flash Builder: Adding by SWC: Right-click on your project in Flash

Flex Custom Event dispatching

心不动则不痛 提交于 2019-12-08 08:04:05
问题 I got a question about event dispatching in flex. my goal is to get a custom event loaded up with some data and than bubble up to the eventlistener. my main application has and AMF service request inside which calls an service class. that class is supposed to dispatch an event when the AMF service request returns a result or fault and the main application is listening for that event. so inside my mainapp i add and listener like this: this.addEventListener("UserInfoEvent", userInfoHandler);

How can I show a line under each row of text in a Spark TextArea

人走茶凉 提交于 2019-12-08 08:01:49
问题 I'm trying to show a horizontal line under each row of text in a Spark TextArea. I want to give the text area the look of legal paper. 回答1: Ah actually ran into a similar problem in Flex 3 doing a strikeout for a disabled link-button that was part of our styles. Just checked out the code and looked on the docs for the spark label and found the function I was using from a mx label explicitly says it won't work [from measureText() in spark label]: Measures the specified text, assuming that it

Compiling AIR application with Ant Task (WindowedApplication could not be found)

寵の児 提交于 2019-12-08 07:54:55
问题 I'm trying to compile my AIR application with Ant, using the mxmlc Ant Task. It seems to compile fine, and I get a .swf, but when I try to run it with ADL, I get the message "Class mx.core::WindowedApplication could not be found." It looks like the AIR libraries aren't being included properly. Here's my mxmlc task: <mxmlc file="${MAIN_MXML}" output="${DEPLOY_DIR}/MyApp.swf" compatibility-version="3" locale="en_US" static-rsls="true" debug="${DEBUG_FLAG}" optimize="true" link-report="${DEPLOY

File downloads not working in chrome which have Pepper-Flash 11.8.800.115

蓝咒 提交于 2019-12-08 07:08:39
问题 Users unable to download files through our flex website using Chrome which have Pepper Flash player plug-in. Downloads no longer working in Chrome from a navigateToUrl call in Flex. However if i disable the pepper flash plug-in in chrome then it works fine. Do you guys know any workaround to this issue? 回答1: Had the same issue. Try use ExternalInterface. In html in the JS section: function downloadFileFromAS( _fileURL ) { window.location.href=_fileURL; } In AS3: if( ExternalInterface

Flex Custom Event dispatching

北城余情 提交于 2019-12-08 03:34:27
I got a question about event dispatching in flex. my goal is to get a custom event loaded up with some data and than bubble up to the eventlistener. my main application has and AMF service request inside which calls an service class. that class is supposed to dispatch an event when the AMF service request returns a result or fault and the main application is listening for that event. so inside my mainapp i add and listener like this: this.addEventListener("UserInfoEvent", userInfoHandler); the custom UserInfoEvent.as looks like this package events { import flash.events.Event; import logic.Ego;

Skin Flex 4 combobox to look like Flex 3 combobox

我是研究僧i 提交于 2019-12-08 03:16:50
问题 As I have migrated my application to Flex 4 recently, I want to utilize the <s:Combobox> component in my application rather than <mx:Combobox> . The problem is that the look and feel of both are different. How can I make the <s:Combobox /> component look (all skinning e.g. hover over, click, outline) exactly the same as <mx:Combobox /> ? More specifically, I want to apply the Halo theme to a DropdownList component. Is that possible? 回答1: You could just set the default skin for your