apache-flex

generating preview of BMP Image

泄露秘密 提交于 2019-12-24 22:15:41
问题 I am working on a Media up-loader which uploads images to Server. Before start upload file i want to show small thumbnail of Image. I used Loader class to load image selected by user & used Canvas to draw image on it. This works fine with images like jpg & png. But for bmp file loader class doesn't work. Is there anyway to load bmp image in Flex & Convert it to BitmapData ?? 回答1: I didn't test the example, but you could try this: Parsing and displaying BMP files via ActionScript And read the

Runtime Shared Libraries

戏子无情 提交于 2019-12-24 22:00:01
问题 What is RSL and what is the use of RSL? Have any sample example , Please shared me,. Thanks, Ravi 回答1: Runtime shared libraries RSLs are just SWF files whose code is used as a shared library between different application SWF files. There are two kinds of RSLs, signed and unsigned. Signed RSLs are libraries that are signed by Adobe and may be stored in the Flash Player Cache, which can be accessed by applications from any domain. This means if your application is using a signed RSL, the RSL

Datagrid selects the wrong custom cell in my datagrid

爱⌒轻易说出口 提交于 2019-12-24 21:40:10
问题 I am working on a problem since a week soon, but I still couldn't make it work as expected. I have a DataGrid which has HBox with a CheckBox an a Label as itemRenderer (see Code below). When I tap in to the Cell the standard itemEditor pops up and lets you enter the content of the label. Thats the standard behavior. I works fine except for 2 problems: If I enter to much text, the horizontal srollbar pops up, and the cell is filled with that scrollbar. As you see I tried to set the

Flex Web Application Timeout after a specific time and redirect to login

怎甘沉沦 提交于 2019-12-24 21:30:07
问题 All, We have a Flex, Blazeds & Spring based Web application. The requirement is that if the browser is idle for 30 minutes, we have to popup an error message to the user and then redirect to the login page. I have searched on this and was not able to find a suitable solution to this. If someone can point me in the right direction, that would be great. I really appreciate that Thanks Harish 回答1: Here's how I would approach it. When the app loads, start a 30 minute timer and add a listener to

Creating a multiline label inside a custom togglebuttonbar

徘徊边缘 提交于 2019-12-24 21:22:06
问题 i have a custom toggleButtonBar class that allows label placement on the button, however, i would like to have the labels to be multiline. I'm not good at extending default components. Is there anyone that can help me out? package com.vit2print.plugin.transvit.tools { import mx.controls.Button; import mx.controls.ToggleButtonBar; import mx.core.IFlexDisplayObject; public class IconToggleButtonBar extends ToggleButtonBar { [Inspectable(enumeration="left,right,top,bottom", defaultValue="left")]

how to send Java object into between two mxml files in java?

白昼怎懂夜的黑 提交于 2019-12-24 21:15:13
问题 I'm Using Flex + java .. in that i have two Sub mxml files Sub1.mxml and Sub2.mxml Sub1.mxml code.. [Bindable] private var editTimetableVO:TimetableVO; public function forwardToCreateEvent(event:MouseEvent):void { editTimetableVO = new TimetableVO(); editTimetableVO=editDataGrid.selectedItem as TimetableVO;//editDataGrid is DataGrid id Alert.show("value "+editTimetableVO.startDate); } Hear Alert is Print some date it is good... then my Second Mxml file.. Sub2.mxml code.. public var

Read Flex/Flash URL which has Transfer-Encoding chunked

感情迁移 提交于 2019-12-24 21:10:38
问题 I have a problem reading from Flex a url which has Transfer-Encoding: chunked because the FLex waits for the server to send terminate signal which in chunked transfer isn't sent... 回答1: Use the URLStream class instead of whatever loader you're using now. Its ProgressEvents will let you read chunks before the message completes. 回答2: But if you read the documents a little more carefully, you will find the following. So it becomes clear, you just need to check the size of received chunks until

In AS3, where do you draw the line between Dictionary and ArrayCollection?

♀尐吖头ヾ 提交于 2019-12-24 20:36:51
问题 Basically I have been using a Dictionary object in my program that basically took ints as its keys and stored RTMFP peer IDs in the appropriate locations. Each int was unique and represented one user. Now I'm needing to expand on this where users are identified by a combination of the int and a Boolean value, kind of like this: private var m_iUID:int; private var m_blnIsCurrent:Boolean; Only the combination between those two really uniquely identifies the user. That being said I was just

Is it possible to store an Array into an EncryptedLocalStore item? AIR

橙三吉。 提交于 2019-12-24 20:27:10
问题 I want to save my Array's strucure and load it the next time I open my AIR application. Is there a way to store it to an EncryptedLocalStore item then get it later when I re-open the app? 回答1: EncryptedLocalStore.setItem() method takes a byte array when storing contents. To store an array, just use ByteArray.writeObject() method (as described in http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/ByteArray.html#writeObject()) to convert your Array to a ByteArray -

Add layout to Flex UIComponent

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 20:14:15
问题 How can I add a layout (a HorizontalLayout to be specific) to a Flex UIComponent? I'm working on a large mobile application, hence I'd like to avoid using additional containers like HGroups and work with more lightweight components. As usual, any help would be greatly appreciated! 回答1: You can't and you don't really need to. You can't, because only Spark components were designed with an encapsulated layout mechanism. mx components were not and you can't assign a layout to UIComponent. You don