apache-flex

Properly preventing orientation change in Flex Mobile app

≡放荡痞女 提交于 2019-12-18 17:29:47
问题 Is anyone able to actually make it work properly in Flex SDK 4.6? Here's a short snippet : <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" addedToStage="onAddedToStage(event)" title="Title"> <fx:Script> <![CDATA[ private function onAddedToStage(event:Event):void { if (stage.autoOrients) { stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGING, orientationChanging, false, 0, true); } } private

Flex: How to add a tab close button for TabNavigator component

爱⌒轻易说出口 提交于 2019-12-18 13:25:21
问题 I'd like to have a TabNavigator component that has a close button for some of the tabs. How do I do that? It seems that the TabNavigator component does not allow (or I could not find) extensibility of this form. Help. Thanks 回答1: You should take a look at the SuperTabNavigator component from the FlexLib project: SuperTabNavigator example SuperTabNavigator documentation FlexLib Component list If you don't want all of the tabs to have close buttons (I understand from the question that you don't

How to draw a continuous curved line from 3 given points at a time

 ̄綄美尐妖づ 提交于 2019-12-18 13:23:13
问题 I am trying to draw a continuous curved line in flash. There are many methods but none of the ones I have found so far quite fit my requirements. First of all, I want to use the flash graphic api's curveTo() method. I DO NOT want to simulate a curve with hundreds of calls to lineTo() per curved line segment. It is my experience and understanding that line segments are processor heavy. Flash's quadratic bezier curve should take less CPU power. Please challenge this assumption if you think I am

what is the difference between invalidateList and invalidateDisplayList?

对着背影说爱祢 提交于 2019-12-18 12:27:08
问题 I have a DataGrid, populated with objects in an ArrayCollection. After updating one of the objects' fields, I want the screen to update. The data source is not bindable, because I'm constructing it at runtime (and I don't understand how to make it bindable on the fly yet -- that's another question). In this situation, if I call InvalidateDisplayList() on the grid nothing seems to happen. But if I call invalidateList(), the updates happen. (And it's very smooth too -- no flicker like I would

how to create a web service

此生再无相见时 提交于 2019-12-18 11:43:18
问题 I building a website with Ruby on Rails framework. The site will contain a flash application that will interact with the rails application using web service. My partner builds the flash application and he told me that the flash application interacts through WSDL file. I am new to web services. I would like to know how to create the WSDL file, and how to make the interaction between the rails application and the WSDL file. If you believe that there are better alternatives than SOAP/WDSL, I

Any advice for speeding up the compile time in Flex Builder 3?

倖福魔咒の 提交于 2019-12-18 10:56:30
问题 I run Flex Builder 3 on a mac and as my project grows - the compile time gets longer and longer and longer. I am using some SWC's and there is a fair amount of code but it shouldn't take minutes to build and crash daily should it? 回答1: In addition to the suggestions already mentioned, close any projects that you have open that you are not using. Rich click on the Project in the Navigator view and select "Close Unrelated Projects". Depending on how many projects you have open, this can lead to

Creating a column of RadioButtons in Adobe Flex

*爱你&永不变心* 提交于 2019-12-18 09:43:39
问题 I'm using the AdvancedDataGrid widget and I want two columns to be radio buttons, where each column is it's own RadioButtonGroup. I thought I had all the necessary mxxml, but I'm running into a strange behavior issue. When I scroll up and down, the button change values! The selected button becomes deselected, and unselected ones become selected. Anyone have a clue about this bug? Should I being going about this a different way. -- Here's a stripped down example of what I trying to do. <mx

How can you delete a file in the application directory?

久未见 提交于 2019-12-18 09:42:41
问题 We are writing log files to File.applicationDirectory and want to clean out old log files. The question is how do you delete files out of that directory? When I try and delete old log files out of this directory it gives a security exception. Is there anyway around this? I know you are not supposed to write to File.applicationDirectory, but we are writting are logs there anyways. So please don't just say don't do that! Thanks, Ryan 回答1: File.applicationDirectory is a read only directory. http

Flex List Scroll Speed With Mouse Wheel

删除回忆录丶 提交于 2019-12-18 09:19:17
问题 I have a custom class that extends List which I am using as a container. However, the scroll speed is too fast on the mouse wheel, as in it scrolls loads even if you only move the wheel a tiny bit. I tried adding an event listener to my list for MouseEvent.MOUSE_WHEEL and setting the value of event.delta but this has had no effect. Does anyone know how I can make it slower? My custom class is nothing special, I just created it so I could have a different itemRenders for different item types.

Annoying Error #2048: Security sandbox violation from localhost

孤者浪人 提交于 2019-12-18 09:02:13
问题 This is my crossdomain.xml that I put in the same folder of my Web.config : <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="all"/> <allow-access-from domain="*" secure="false" /> <allow-http-request-headers-from domain="*" headers="*" /> </cross-domain-policy> Although I can load using Security.loadPolicyFile("http://localhost:52090/crossdomain.xml") .