apache-flex

How to print flex spark datagrid by using the mx PrintDataGrid? Or is there other way to achieve this without using the mx PrintDataGrid?

ⅰ亾dé卋堺 提交于 2019-12-23 12:15:40
问题 this is my first time to ask here since my question is not answerable in the adobe flex forum. So at least finally, I've come to manage it here. Well, Flex 4.5+ is I guess everyone is working on nowadays so I asked this question since I haven't yet find working both spark datagrid and the mx printdatagrid components together . What I'm trying to achieve is to print all the data inside my spark datagrid. So when I do my research, we use the PrintJob or the FlexPrintJob classes. It works fine

Flex 4 spark Panel has an ugly gray top part

[亡魂溺海] 提交于 2019-12-23 12:08:08
问题 I have a Flex 4 spark Panel I'm popping up through the PopUpManager, but it has a gray portion at the top I can't get rid of. What is that and how can I remove it? UPDATE : An example Panel is below. I simply call PopUpManager.addPopUp(new TestPanel(), background, true); on it and receive that solid gray bar above the button. <s:Panel xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009" dropShadowVisible="false" backgroundAlpha="0" controlBarVisible="false"

How do you remove the border of a Flex 4 TextArea Component (spark themed halo)

允我心安 提交于 2019-12-23 10:53:02
问题 With the Flex 3 SDK you simply needed to set the borderThickness style to 0, or set borderStyle to none. With the Flex 4 SDK ad the Spark theme, this has no effect. 回答1: Try something like: borderVisible="false" 回答2: If you want to remove the border from spark TextArea's here are some ways to do so: To make all spark TextAreas have no border you can do this: s|TextArea { borderVisible : false; } You can also make a simple style and only apply them to specific spark TextAreas like so:

How to set resolution higher on Flex desktop native (Air) app?

柔情痞子 提交于 2019-12-23 10:29:09
问题 I'm trying to change the resolution for a flex native app (air) app running on a retina macbook. Flex apps in the browser render everything smoothly at 160dpi automatically but if I build the same app as Air install app, it renders at 72dpi and doesn't look as good. I know you can set a resolution in the application descriptor file for a mobile app but this isn't one. Also, I've tried setting the applicationDPI property on the WindowedApplication tag as well with no luck. Any ideas? Thanks...

Flex mobile supports native mobile features?

こ雲淡風輕ζ 提交于 2019-12-23 10:03:13
问题 Does flex mobile supports In-App purchases, push notification etc that can run on all supported mobile platforms (iOS, Android, Blackberry playbook). Thanks 回答1: Currently "all" native mobile features are "supported" via AIR native extensions. You can read about AIR native extensions here It is quite a new feature, but the point is, you can create bridge between native code SDK and your AIR application. It means, your application will be able to make calls to native SDK, and also receive

Adobe AIR mobile app fails when using HTTPS on Nexus tablet, but works on Kindle

旧巷老猫 提交于 2019-12-23 09:53:32
问题 Ok, 4 hours burned, so I'm turning to SO in hope for help. Here are the facts so you can understand quick: We have an existing AIR Mobile app that runs fine on my laptop, and every Android device we've tested while in HTTP mode (Kindle, Nexus, Asus A100) As soon as we switched to HTTPS, only the laptop and Kindle devices will connect to the server On the other devices, I'm getting a FaultEvent returned, and the error says: "Send Failed. Channel.Connect.Failed error NetConnection.Call.Failed

Calculating Dictionary length in Flex

元气小坏坏 提交于 2019-12-23 08:56:44
问题 What's the best way to calculate the length of a Dictionary object in Flex? var d:Dictionary = new Dictionary(); d["a"] = "alpha"; d["b"] = "beta"; I want to check the length which should be 2 for this Dictionary. Is there any way to do it other than looping through the objects? 回答1: No, there is no way to check the length of an object(Dictionary is pretty much an object that supports non-String keys) other than looping through the elements. http://www.flexer.info/2008/07/31/how-to-find-an

Hide default options in right click context menu in flex

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 08:53:38
问题 I'm developing a flex application and I want to add it a context menu. I got it with this code: var myMenu:ContextMenu = new ContextMenu(); myMenu.hideBuiltInItems(); var defaultItems:ContextMenuBuiltInItems = myMenu.builtInItems; defaultItems.print = false; var item:ContextMenuItem = new ContextMenuItem("Go to google"); myMenu.customItems.push(item); item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemSelectHandler); this.contextMenu = myMenu; But I have a problem. The menu

Flex and crossdomain.xml

核能气质少年 提交于 2019-12-23 08:46:55
问题 I was wondering are there any security concerns with adding crossdomain.xml to the root of an application server? Can it be added to any other parts of the server and are you aware of any work arounds that dont require the server to have this file in place? Thanks Damien 回答1: By adding the crossdomain.xml, the main security concern is that flash applications can now connect to your server. So if someone logs into your site, and then browses over to another website with a malicious flash app,

Flex Timer example

老子叫甜甜 提交于 2019-12-23 05:33:05
问题 I am trying to use timer in flex. I referred to this example : Timer : blog.flexexamples.com. Here is what I want to achieve: I want to start the timer, showing minutes elapsed since timer started. It should be independent of the region you are in.( irrespective of whatever zone you are in, timer should work fine in every zone). Timer should continue, unless some button is clicked, where I want to show the time elapsed in minutes, in an Alert Box and then timer should start again from 0