Add Admob Ads in Flash Based Android Apps

On April 29, 2014, in Android, Flash Flex AIR, by James Liu

For many flash game designers and developers, Android platform is one of the best targets for them to monetize their games. However, without the native support from main advertisement platform like Admob, making money is becoming impossible with free android games. Start from Flash cs5.5, Flash Air gives us a method to use functions from outside native library. For example, we can control Android device volume or device display brightness by native Java code. As we make it as a native extension library, and we can call functions in this library from Flash.

With Flash Air native extensions, we can integrate Admob in flash games and publish them in google play and app store. In this tutorial, I will show some examples about how to write an Admob Flash Air native extensions, and how to put Admob Ads in the flash games.

Continue reading »

Tagged with:  

How to embed XML file in Flex and Actionscript 3

On September 13, 2013, in Flash Flex AIR, by James Liu

There are lots of articles to demonstrate how to embed the XML file in Flex and Actionscript 3. But it takes me almost 30 minutes to try and none of them works for me. Finally, I write my own test code and find the right way to embed the XML file in Flex with Actionscript 3, and access the data with XML object. I hope it will help you and save your time.
Continue reading »

Tagged with:  

Create Animation in IOS Apps With PNG Sequence Files

On May 1, 2013, in Flash Flex AIR, iPhone iPad Object-C, by James Liu

There are thousands of questions about how to use flash animation in IOS apps because the iphone apps and ipad apps don’t support the flash animation files, or swf format file. Now, I have a solution for it. We can convert the flash animation into png files and load the png sequence in iphone, ipad apps to simulate the animation.

In Adobe Flash CS6, there are two new features to export MovieClip animation to a set of png sequence files or png sprite sheet. In this IOS programming tutorial, I will show you an example about how to export the MovieClip to png sequence files and animate png files in IOS apps.
Continue reading »

Tagged with:  

Picture Editor App Tutorial 1: Change Image Size

On November 28, 2012, in Flash Flex AIR, Other Online Technology, by James Liu

Dragging markers to change image size is the essential feature in all picture editor apps. Lots of programmers know how to implement the drag and change size feature. But very little people know the mechanism behind the simple formula. In this tutorial, we will talk about how to calculate the final width and height of the image after dragging the right bottom markers.
Continue reading »

Tagged with:  

Create Sprite Sheet From Flash For HTML5

On July 4, 2012, in Flash Flex AIR, HTML5, by James Liu

We talked about creating sprite sheet from gif file last time. In this post, I will talk about how to create sprite sheet from flash. Compare with creating sprite sheet from gif file, exporting sprite sheet from Flash is much easier if you are using Flash cs6.

In the latest Flash CS6, there are two new features which is specially designed for HTML 5. You can check the HTML5 features in flash cs6 for details. Here, I am wanna talk about a very useful feature for HTML 5 games. Flash sprite sheet generation can export the MovieClip animation to sprite sheet in a second. Let’s see the flash animation first.

Continue reading »

Tagged with:  
Free WordPress Themes