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:  

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:  

Flex Canvas Repeat Background Image

On July 2, 2012, in Flash Flex AIR, by James Liu

Flex canvas provide a style attribute backgroundImage which allow us to set an image as background. Compare with the background in Html5 and CSS, this feature is not that user friendly. In CSS, we can not only set the background image, but also tell the css how to render the background image if the image is not big enough to cover the whole display object like DIV. This is a so basic feature while the Flex canvas style doesn’t support it. If we want to get this feature done, we have to write the code by ourself. First, let’s see what the background image effect I am talking about.

Repeat Background Image

Flex Repeat Background Image Example


Continue reading »

Tagged with:  
Free WordPress Themes