apache-flex

Flex deserialization issue with List of Maps

廉价感情. 提交于 2019-12-13 07:26:14
问题 I have a problem with BlazeDS to Flex mobile deserialization, so that I try to send back list of maps List<Map<String, Object>> with different Objects in every Map, but when I receive this list in flex code: hastalarim = event.result as ArrayCollection; But when I debug this in flex code I see that there're 7 instances of the same Object (the first object that was inserted on server-side) in that list. Here's my method on server-side: public List<Map<String, Object>> getHastalarim(String

linking symbol to class actionscript

走远了吗. 提交于 2019-12-13 06:52:10
问题 There is a simple method of linking a symbol to a class in flash cs5 in the gui designer. But how can i do the same thing in actionscript alone using code because iam not using flash cs5. Iam using notepad++ and flex compiler. 回答1: Hopefully this link will answer your question: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/MovieClip.html The essence is this: [Embed(source="logo.gif")] [Bindable] public var imgCls:Class; and what this does is tell the

Trying to add a skinClass to <mx:Form>

不羁的心 提交于 2019-12-13 06:47:26
问题 I'm working with Flex4 and I'm trying to skin a form (add a background and a border to it, etc.) I'm trying to do it the Flex 4 way with skinClass="" <mx:Form skinClass="skins.MyFormSkin" /> but it's not accepting skinClass as a property. How should I do it such that I'm still adhering to the best practices in Flex 4 (decoupling visuals from logic)? 回答1: skinClass only works on spark components, which have tags starting with <s: 回答2: To elaborate on Qz's response: mx:Form is not a Flex 4

Bitmap image in Flex

我的未来我决定 提交于 2019-12-13 06:45:39
问题 I was trying the following <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > <mx:Canvas id="myBox"> <mx:Box id="myBox2"> <mx:Image source="img/hippo.bmp"></mx:Image> <mx:Image source="img/close_button.gif"></mx:Image> </mx:Box> </mx:Canvas> </mx:Application> I got the image of close_button.gif while the other hippo.bmp is not displayed. What is the problem with bitmap file in Flex? 回答1: Short Answer: Add the package to your project Add an image

How do I manually trigger a buttons hover state in Flex?

岁酱吖の 提交于 2019-12-13 06:38:30
问题 I need to trigger the hover state of a Flex button programatically, so that it looks like the user is hovering over it. There is a flex page about "Manually dispatching events": http://livedocs.adobe.com/flex/3/html/help.html?content=events_07.html Which would work, but what I'd really like to do is change the style of the button without having to throw an event. How can I do this? Thanks! 回答1: Is there any reason this wouldn't work? button.setStyle('skin', button.getStyle('upSkin')); 回答2: In

What is the error :a conflict exists with inherited definition flash.display:DisplayObject.mouseX in namespace public?

一笑奈何 提交于 2019-12-13 06:33:15
问题 This appeared as I was trying to use a mouseEvent to move an object. I placed the variables for mouseX and mouseY in the public class. I did the same for direction X and Y but there was no error message for those. 回答1: If the class you are adding the mouseX to is extending the DisplayObject type (and if it's any kind of Flex component than it does), you already have a variable with that name from that type. As a fix name your variable something else eg. myMouseX . If you don't know what

How to make MXML Component Constructor with Arguments? [closed]

不羁岁月 提交于 2019-12-13 06:32:07
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I`m new in flex and could anyone help me? How do I create a constructor that takes arguments for an MXML component? 回答1: You can't; MXML Components do not have constructors that you can modify. You have a few

URL Loader class in Air application not returning results

假装没事ソ 提交于 2019-12-13 06:31:18
问题 I am using the class URLLoader in my air application and if i used parameters in url , flex showing an error #2032. if the same code used in web application, that is running in web browser, returning proper results. I didn't get a proper solution yet. Is there any way to return results in my air application? I used a web debugger fiddler, to check whether data is returning from server or not. Data is returning properly from the server, but it is not showing in air application. here is the way

Displaying simple javascript enabled webpage within a Flex app?

与世无争的帅哥 提交于 2019-12-13 06:29:21
问题 I'm working on a Flex app that needs to display ads from third party vendors that come in the form of HTML docs containing javascript. Are there any components available that can display such things? It seems like we need a mini-browser that runs inside of Flex. Thanks a lot, Alex 回答1: In short, yes. Unfortunately, Flex on its own doesn't do a particularly good job of rendering HTML, but there are some ways to work around this. A post on Alex's Flex Closet does a good job of describing some

Is it possible to upload a complete directory structure with Flex?

南楼画角 提交于 2019-12-13 06:25:58
问题 Is it possible to upload a complete folder with subdirectories and files (in the subdirectories) in Flex? I am using a Flex / BlazeDS / Spring application. The question is not how to transfer the data to the server. The question is: if it is possible to get access to the files and subfolders (recursive) with Flex? 回答1: If you're working with AIR, then yes. Look a the File class. It is a reference to either a file or directory. You can tell if it is a directory using the isDirectory attribute.