Flash Flex Rotate Around a Point by Matrix

The Flex provides a lots of functions about Matrix Transformation functions. Using these matrix functions, we can implements 2D transformation in a very easy way. For 2D transformation, the most common transformation is Translate, Scale, Rotate, and Skew. By default, all these transformations are according to the Top-Left point, (0, 0) point. For example, when we set a rotation as 45 in a canvas, the canvas will rotate 90 degrees around (0,0), as figure 1 shown. The Scale and Skew also use the same rule to transformation. But lots of times, we want to rotate a canvas, movieclip, or an image, around a certain point, for example, rotate it around center point, as figure 2 shown. In this post, I will show you how to make a rotation around a point.

Default Rotation ExampleRotate Around Center Example

Read more

Adobe AIR 2.6 Release For Android And iOS

Adobe AIR 2.6 is released already. As adobe announced: “The primary focus of 2.6 is to achieve feature parity between Android and iOS”. And it is true, there are lots of improvements focusing on the android and ios.

  • Asynchronous Bitmap Decoding
  • Microphone support on iOS
  • StageWebView on iOS
  • Multitasking on iOS
  • Retina Support on iOS
  • iOS Camera, CameraUI, and CameraRoll Support
  • Improved hardware acceleration on iOS
  • PFI is now ADT
  • Programmatic control of the display of the on-screen keyboard
  • Support for the Amazon Android Market
  • On-device debugging over USB (Android only)
  • Enhanced text support on Android
  • Bundled Android USB drivers on Windows

Read more

Call Javascript Functions From Flash and Flex

Today, I try to call a Javascript function from flash, and it take me a long time to write the actionscript code to solve it. I think it’s necessary to post it online to help other peoples. In this tutorial, I just put a flash button in stage, and then call the javascript function when user clicks this button. If you want to call javascript function from flex, u can use the actionscript code in the same way.

Call Javascript Function From Flash Example

Read more