Posts Tagged ‘ Flex ’

iOS Packaging from Flex

My latest experience on converting Flex App to iOS, might be of use for beginners.

Debug version ipa generation is faster than rest, make sure you select Ad Hoc Distribution for testing the app on any device with Developer licence and Developer Provisioning Profile.

Make sure you use Mac for porting the application with Apple’s iPhone Configuration Utility, otherwise with windows use iTunes for porting the app into Device.

Reason:

You cannot install IPA files to the device via Apple’s iPhone Configuration Utility on WIN, got error “Could not install application on device. Error kAMDReceiveMessageError”. Workaround is to install IPA with iTunes on Windows or iTunes/iPhone Configuration Utility on Mac OS (2810687) (source : http://kb2.adobe.com/cps/891/cpsid_89107.html)

The list of Device Capabilities to work with Camera

<key>UIRequiredDeviceCapabilities</key>
<array>
   <string>front-facing-camera</string>
   <string>auto-focus-camera</string>
   <string>camera-flash</string>
   <string>video-camera</string>
 </array>

Flex Mobile Apps

Demo Videos List

Apps Github Source Android Market BlackBerry AppWorld Amazon AppStore
eStud Link Link Link Link
UniversalCurrency Link Link Link Link
FlexMock Link Link Link Link
EduTube Link Link Link Link
CartoonTV Link Link Link Link
RhymeTV Link Link Link Link
AnimatorWatch Link Link Link Link

ByteArray Util

ByteArray to Encode and Decode Objects as String
https://gist.github.com/1051042 based on http://goo.gl/8WdQu

Swiz Framework for Mobile Development (Source Example)

Source for Android/ iOS/ Blackberry Mobile App Universal-Currency.
Developed with Flex 4.5.1 SDK and AIR 2.7 SDK

The project does currency conversion, using HTTPService via SwizDAO Framework

Check the code base:
https://github.com/nsdevaraj/Universal-Currency

Move Scroll bar on left side Flex4

I struggled a lot, but fixed it with easy tweak.
s:List Property -> layoutDirection=”rtl”
Note, in case you were using itemRenderer , make the reverse there to avoid arabic right to left effect by :
s:ItemRenderer Property -> layoutDirection=”ltr”

Parallel Computing in AS3 //P

Managed to create a Master – Slave architecture between a group of SWF Files.
This group will have a Master SWF which will command other slave swf’s to do certain processing.

This architecture might be helpful in distributing the processing to many files thus reducing the Memory being occupied in a Single SWF.

With IoC in proper form in future, will be successful editing the Slave SWF’s Dynamically.

Code for Master : https://gist.github.com/9bd094ac172d336004c6

Code for Slaves : https://gist.github.com/a840cea1258e019176d8

This Architecture avails running multiple threads with different SWF files at same time

Find the User Country from Flex

First of All, we need JSP / ASP for getting the IP Address, Example code: Link
After getting the IP, using the below IP Web Service we can find the End- User’s Country.
http://www.webservicex.net/geoipservice.asmx?op=GetGeoIP