flex-mobile

Add layout to Flex UIComponent

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 20:14:15
问题 How can I add a layout (a HorizontalLayout to be specific) to a Flex UIComponent? I'm working on a large mobile application, hence I'd like to avoid using additional containers like HGroups and work with more lightweight components. As usual, any help would be greatly appreciated! 回答1: You can't and you don't really need to. You can't, because only Spark components were designed with an encapsulated layout mechanism. mx components were not and you can't assign a layout to UIComponent. You don

flex mobile : textInput does not clear prompt on focus

浪尽此生 提交于 2019-12-24 07:35:12
问题 a simple <s:TextInput x="163" y="117" prompt="hello"/> Does not clear the prompt on focus, but clears the prompt when user first type in a letter. This is the behaviour on flex mobile (behaviour is OK on swf ) Is that a bug and how to correct that ? regards 回答1: There May be an-other way to get rid of that, but my approach is that you may add a focusIn event and do some thing like : <s:TextInput id="textInput" x="10" y="24" prompt="Enter SomeThing" focusIn="textinput1_focusInHandler(event)"/>

AIR 3 Native Extensions for Android - Can I/How to include 3rd party libraries?

筅森魡賤 提交于 2019-12-17 07:33:25
问题 With all the new hype surrounding native extension support in AIR 3, I haven't found a single thing that confirms or denies it is possible to include and use an external JAR inside the native Android implementation. All of the examples basically showcase the ability to hook into the built-in Android APIs. But what if someone wants to use one of hundreds of libraries that make it easier? Certainly it seems like this should be possible. I'll try to outline what I've done and maybe someone will

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

Flex Degrafa's bezier spline under AIR 3.9

偶尔善良 提交于 2019-12-11 16:08:56
问题 I have a mobile Flex project running on iOS that has been using Degrafa's library in order to use its BezierSpline class. The purpose is to be able to draw directly on the screen, the collection of points given by the user gesture is then converted into a bezier curve using this library. However, my app has been recently crashing as soon as it was displaying a page containing at least one of these curves. I don't get any error, stacktrace or anything, the app is simply killed and I'm taken

How to get a view to read data

随声附和 提交于 2019-12-11 13:13:29
问题 I need to convert a lot of stuff in my profession - so I'm building a conversion tool for my phone with some of the conversions I use a lot. Now, I want to be able to build this properly. So far, here's my code: <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="Length"> <fx:Script> <![CDATA[ protected function button1_clickHandler(event:MouseEvent):void { var Result:String; var Finish:Number; var Start:Number = parseFloat(Input.text); Finish =

ERROR ITMS-9000: Invalid Code Signing

不想你离开。 提交于 2019-12-11 06:58:40
问题 For an Adobe AIR app (which is published since over a year in Apple App Store) I'm trying to submit an update using Application Loader, but get the following error: ERROR ITMS-9000: "Invalid Code Signing. The executable 'Payload/XXX.app/XXX' must be signed with the certificate that is contained in the provisioning profile." at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage) The app has been created with Flash Builder 4.7 and Apache Flex 4.11.0 and AIR 4.0: The app compiles and runs

EncryptedLocalStore not supported

℡╲_俬逩灬. 提交于 2019-12-10 11:25:20
问题 I am trying to create a secure database for a mobile app using the as3corelib EncryptionKeyGenerator package from here https://github.com/mikechambers/as3corelib/blob/master/src/com/adobe/air/crypto/EncryptionKeyGenerator.as but when I run it I get the following error: Error: EncryptedLocalStore is not supported on the current platform at flash.data::EncryptedLocalStore$/setItem() Googling around I see it is becaue the ELS is not supported for mobiles. Does anyone know of the best solution to

EncryptedLocalStore not supported

大城市里の小女人 提交于 2019-12-06 11:41:49
I am trying to create a secure database for a mobile app using the as3corelib EncryptionKeyGenerator package from here https://github.com/mikechambers/as3corelib/blob/master/src/com/adobe/air/crypto/EncryptionKeyGenerator.as but when I run it I get the following error: Error: EncryptedLocalStore is not supported on the current platform at flash.data::EncryptedLocalStore$/setItem() Googling around I see it is becaue the ELS is not supported for mobiles. Does anyone know of the best solution to this problem? I guess I could use the persistence manager to store the information but I am not sure

Styling ButtonBar font in Flex mobile app - with screenshot attached

只谈情不闲聊 提交于 2019-12-02 01:52:40
问题 I'm trying to add a ButtonBar at the bottom of a mobile Flex app by using this code: CSS: @namespace s "library://ns.adobe.com/flex/spark"; s|ActionBar, s|ButtonBar { chromeColor: #0066CC; color: #FFFFFF; titleAlign: center; } ActionScript: <s:ButtonBar requireSelection="true" width="100%" bottom="0" skinClass="spark.skins.mobile.TabbedViewNavigatorTabBarSkin"> <s:ArrayCollection> <fx:Object label="Распасы" /> <fx:Object label="Пуля" icon="{MONEY}" /> <fx:Object label="10" icon="{CALL}" /> <