Create Right Click Menu in Multiple Parent-Child Layer

In Flash, creating right click menu is easy and simple. In one display object which has several cascade children display objects, we can define different right click menu for display objects in different levels. Here I will show a simple example. In this example, I will create a three level display object. The blue color displayObject is the most out parent, which has a child displayobject in green color, and the green color displayObject has one red color child display object.
Read more

Make An Admob to Google Adsense Transition

Today, I get an email from Google Admob Ads developers email listing. One friend mentioned that the Google Admob for smartphone web will transition to Google Adsense. I think this is a good news for Website monetization management. But it will also cause some problems for those people who monetize their flash implemented iphone and android application. If you have tried to put Admob ads in flash based iphone or android application, you will know that the actual Admob ads is not built in the applications. Ads part is host on an empty html page which has only Admob html ads code. So to show the Admob ads in appliation, we will implement a StageWebView which can load html page to show the ads. This implementation looks quite ok from that time to now. But after the transition from Admob to Google Adsense, I doubt if this way will still work, or it will bring some risk to your monetization applications.
Read more

Rotate Around a Point by Matrix Precisely

In early this year, I post a article about rotating a shape around a point. And there are many feedback on that post and many friends point out that my example doesn’t rotate precisely. Especially when we try to rotate the graphic with 1 degree each time, the result goes obviously wrong after rotating 360 which meaning rotating 360 times with 1 degree. I need to say “Thank you” to Dubey that he point it out to me.

Basing on Dubey’s scenario, I find out that there is a precision issue in the rotation calculation. In the flash rotation example, I just rotate the graphic 45 degree each time, which works perfectly. The reason is when we convert the degree to radian, there is no precision problem.
Read more

Add Admob in Flash Android Air Application

Admob is a mobile advertising and monetization solutions from a trusted name in mobile advertising. As mobile advertising method, it supports all the main platform, such as android app, iPad app, iPhone app, mobile web, webOS app, and Windows Phone 7 app. For flash, it only support the flash lite, which is not widely used in the latest mobile technology. For the latest flash cs5.5, it already integrates the support for Android Air application and iphone application. For flash developers, there is still a way to embed admob ads in their flash application for android and iphone. Read more