apache-flex

Flex- Bitmapdata from multiple images (drag & dropped)

吃可爱长大的小学妹 提交于 2019-12-25 15:04:29
问题 Sorry, if the question title is little confusing (not very creative at it :) Here's the problem . I have an image loaded from BitmapData displayed in an Image control. This Image control has dragEnabled and user can drag and drop small images (from a bunch of images in a TileList) on top of it. The image loaded from the Bitmapdata can be different every time with different resolution and the Image control scales it down to fit its fixed with/height. But while saving the image after editing I

Use ArrayCollection in Flash CS5

一笑奈何 提交于 2019-12-25 13:29:22
问题 is there any way to use ArrayCollection (from mx.collections.*) in Flash CS3/4/5? How? 回答1: Not sure if you can use the Flex libs in Flash. For collections in AS3, though, check out this open source project. It rocks. 回答2: This question was asked before. It seems that there is: How can I use ArrayCollection like feature in ActionScript 3.0 Flash IDE? 来源: https://stackoverflow.com/questions/4333065/use-arraycollection-in-flash-cs5

How can I open an Attachment from a PDF Portfolio?

孤者浪人 提交于 2019-12-25 13:17:23
问题 I'm currently creating a PDF portfolio which displays data in a dataGrid. There are a number of attachments and when I doubleclick the specific attachment I would like it to display in a new acrobat/reader window. Could anyone instruct me? Chris 回答1: As far as I know, this cannot be done in a web-based Flash file. It must be done in an AIR Application. See this Adobe article. Relevant information: In AIR 2 , you can open a file using the application registered by the operating system to open

How can I open an Attachment from a PDF Portfolio?

不打扰是莪最后的温柔 提交于 2019-12-25 13:17:15
问题 I'm currently creating a PDF portfolio which displays data in a dataGrid. There are a number of attachments and when I doubleclick the specific attachment I would like it to display in a new acrobat/reader window. Could anyone instruct me? Chris 回答1: As far as I know, this cannot be done in a web-based Flash file. It must be done in an AIR Application. See this Adobe article. Relevant information: In AIR 2 , you can open a file using the application registered by the operating system to open

Adobe AIR - Garbage collection and system.gc()

社会主义新天地 提交于 2019-12-25 12:42:26
问题 I'm building an Adobe AIR desktop app with Flash CS5 that makes a lot of use of bitmapdata, bytearrays and base64 strings. After a while the memory usage of the app doubles. Is it recommended to use system.gc() to free memory at that point or is that bad practice? Thanks. 回答1: system.gc is a debug only functionality in AIR and Flash player. I think the better thing is to recycle bitmapdata and other objects if you can to avoid gc, and if not call bitmapdata.dispose() and bitmapdata = null as

Flex Alert.styleName not working for me

拜拜、爱过 提交于 2019-12-25 12:03:33
问题 I have this code, but the style is not being applied. I've seen articles on the web where this should work. Any ideas? var alert:Alert = Alert.show("You have not saved you changes.\n\nWould you like to save now?", "Save Answers?", Alert.NO | Alert.YES | Alert.CANCEL, this, handleUnsavedChanges, null, Alert.YES); alert.styleName = "alertStyle"; Attempting to set the style using the Alert class in my stylesheet seems to work, but throws a warning. I'd like to find the "approved" way. BTW, this

Flex Alert.styleName not working for me

馋奶兔 提交于 2019-12-25 12:02:38
问题 I have this code, but the style is not being applied. I've seen articles on the web where this should work. Any ideas? var alert:Alert = Alert.show("You have not saved you changes.\n\nWould you like to save now?", "Save Answers?", Alert.NO | Alert.YES | Alert.CANCEL, this, handleUnsavedChanges, null, Alert.YES); alert.styleName = "alertStyle"; Attempting to set the style using the Alert class in my stylesheet seems to work, but throws a warning. I'd like to find the "approved" way. BTW, this

Flex: Additional label in ButtonBarButton

旧城冷巷雨未停 提交于 2019-12-25 11:40:09
问题 I'm trying to extend ButtonBarButton to include an additional label that shows the number of updates for the respective box in a viewstack (which is the tabbar's dataProvider). I can get the additional label (named indicatorLabel) to read an initial value from data, but I can't get it to update automatically like the actual "label" attribute. My understanding was that you could bind to the data object, but that doesn't appear to be the case. The box that is used in the viewstack has an

DataStore in flex

末鹿安然 提交于 2019-12-25 10:50:31
问题 I am having problems in my program... Please advice me of what is right this is the error code of my prog mx.data::Conflict { cause = mx.data.messages::DataMessage { body = [["lessonid"], { lessonid = 17 lessonplanid = 1 status = "active" studentid = 4 }, valueObjects::Lessonplan { lessonid = 18 lessonplanid = 1 status = "active" studentid = 4 }] clientId = null correlationId = "" destination = "lessonplanRPCDataManager" headers = { newReferencedIds = null prevReferencedIds = null } identity

How to convert XMLList to XML in FLEX

左心房为你撑大大i 提交于 2019-12-25 09:34:02
问题 I had already referred this following link but could not find the solution for my scenario. Actionscript 3 - How can i convert from XMLList to XML? My xml variable is as follows: private var checkXml:XML = new XML( <universe> <item name="cat 2"> <item name = "All"/> <item name = "item 1"/> <item name = "item 2"/> </item> <item name="cat 2"> <item name = "All"/> <item name = "item 3"/> <item name = "item 4"/> <item name = "item 5"/> <item name = "item 5"/> </item> <item name="cat 3"> <item