flex4

Save Application state on Disk or some where so user access it later

十年热恋 提交于 2019-12-10 21:24:03
问题 In flex builder 4.5 i'm working on a project like cacoo. I want to save diagrams(display object,ui components,text) before close the application into somewhere than I would be able to access after the application open again . more clear: -If user edit some uml diagram on this project and save it for edit later and close application.after some days he/she want to edit previously saved diagram. now how i'm save this diagram for future edit. 回答1: If save/open dialog will work for you, you can

Saving application state AIR

爷,独闯天下 提交于 2019-12-10 20:19:34
问题 Is there a way to save an application state for save files in AIR for the desktop (Flex /AS3)? Thanks 回答1: You need to make sure all your classes are serializable, then serialize them and save them to a file when exiting the application. On starting the application again, you deserialize the objects - in effect instantiating all objects and assigning all their previous properties again. This can be rather hard to retro-fit to an existing application since your code must adhere to a few rules.

Error #2084-The AMF Encoding of the arguments cannot exceed 40K

瘦欲@ 提交于 2019-12-10 18:18:13
问题 In my application I am using localConnection object for communication b/w Flex 3 and Flex 4 swfs. But when the size of the arguments ( ArrayCollection ) exceeds certain limit , I am getting following exception:- Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.LocalConnection was unable to invoke callback readyToUpdate. error=ArgumentError: Error #2084: The AMF encoding of the arguments cannot exceed 40K. Any inputs on same will be highly appreciated. 回答1: There's a

Styling both foreground and background selection color in a Flex list/datagrid

独自空忆成欢 提交于 2019-12-10 17:45:37
问题 Flex exposes a "selectionColor" CSS property for styling the background color of a selected list/datagrid. However, I cannot figure out how to style the foreground or text color of selected list. It appears you can only change the foreground color for all rows. So, for example, that I wanted a very dark selection background color and a very light deselected background color. You would similarly want a light text color for selection and a dark text color for deselected. I know I could do this

Programatically enable/disable menuBar buttons in Flex 4

我是研究僧i 提交于 2019-12-10 16:38:31
问题 I have the following XML in my Flex4 (AIR) project that defines the start of my menu interface: <mx:MenuBar x="0" y="0" width="100%" id="myMenuBar" labelField="@label" itemClick="menuChange(event)"> <mx:dataProvider> <s:XMLListCollection> <fx:XMLList xmlns=""> <menu label="File"> <item label="New"/> <item label="Load"/> <item label="Save" enabled="false"/> </menu> <menu label="Help"> <item label="About"/> </menu> </fx:XMLList> </s:XMLListCollection> </mx:dataProvider> </mx:MenuBar> I am

Flex custom component doesn't accept Script: Multiple initializer values for default property, 'text', of type 'String'

◇◆丶佛笑我妖孽 提交于 2019-12-10 16:03:38
问题 I'm using Flex 4 and Flash Builder 4. I just want to learn to create components and I created an mxml component as follows and included it in my application: <?xml version="1.0" encoding="utf-8"?> <s:TextInput xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Script> </fx:Script> </s:TextInput> If I take out the fx:Script tags it works, but as soon as I have those tags (regardless of whether any actual code is

Current_user nil after creating a session in ROR with AuthLogic

家住魔仙堡 提交于 2019-12-10 16:00:00
问题 I'm having a bit of problems with AuthLogic and current_user. I have a Flex4 application using the Cairngorm framework as the front-end, and Ruby On Rails as the back-end. I can log in fine through a browser, and when only using ROR. However, when I try it through my Flex4 application, it will fail the first time but work the second time. What is happening, is inside the user_sessions_controller.rb I have a call to self.current_user.to_xml; The first time I call the create action, the current

Compare Flex 3 and 4 [closed]

这一生的挚爱 提交于 2019-12-10 12:26:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Where can I find a chart or some article to compare Flex 3 and new 4. 回答1: The official Adobe Flex 4 Open Source site is currently the best place to find information about this upcoming version of the framework. It's worth noting, however, that Flex 4 is still in development, and they don't even consider it beta

Flex 4 Drop Down List - bound with data service, how to always keep prompt or add item at index -1 programmatically

送分小仙女□ 提交于 2019-12-10 11:43:54
问题 I have a drop down list that is bound using an HTTP data service from a database (set up through the wizard, not as a declaration). My drop down list changes the values in my datagrid and I need that "Select One" null value so that users can select everything. Here is my drop down list: <s:DropDownList id="ddlProducts" width="400" prompt="Select a Product" close="dataGridContentChanging()" creationComplete="ddlProducts_creationCompleteHandler(event)" labelField="Title"> <s:dataProvider> <s

adobe flash buider (flex4): Error #2025 or Error: addChild() is not available in this class. Instead, use addElement()

帅比萌擦擦* 提交于 2019-12-10 11:02:44
问题 I'm a complete newbie to Flex, so apologies for my dumbness. I've searched for an answer but haven't found anything that seems to be doing the trick. What I'm trying to do: port this example http://www.adobe.com/devnet/air/flex/articles/flex_air_codebase_print.html to Flash Builder 4. All seems to be fine but for one thing. When I use the original code for the Air application <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s=