Same case with Point2D, Java's usual Color class which should be under java.awt package could be found under Android's android.graphics package.
They needed to remove some functionality of the class thus came need to replace the usual Color class. Methods such as brighter and darker were removed.
JASAfA's Color class
Progress with JASAfA has been going smoothly. ActionScript's Color class is called which is accessible under ColorTransform flash.geom package. Likewise, JASAfA's Color class is accessible under droid.geom package.
Showing posts with label jasafa. Show all posts
Showing posts with label jasafa. Show all posts
Wednesday, February 17, 2010
Friday, February 12, 2010
Alternative to Point2D
Given that AWT is not supported in Android API, the Point2D class, which is useful for writing 2D graphics, is missing either.
Point2D is traditionally accessible under java.awt.geom package but not dependent on the AWT framework so why was it not included in Android API? The answer is, Android have Point and PointF classes. Although among the two, PointF is my personal favorite.
Other Point class alternative
I've introduced JASAfA earlier, which happens to have another Point class which works like its ActionScript-counterpart. JASAfA's Point class is accessible under droid.geom package.
Point2D is traditionally accessible under java.awt.geom package but not dependent on the AWT framework so why was it not included in Android API? The answer is, Android have Point and PointF classes. Although among the two, PointF is my personal favorite.
Other Point class alternative
I've introduced JASAfA earlier, which happens to have another Point class which works like its ActionScript-counterpart. JASAfA's Point class is accessible under droid.geom package.
Java ActionScript API for Android
Introducing Project: JASAfA!

What is JASAfA?
JASAfA (or Java ActionScript API for Android) is a stupid name to a project that attempts to provide a Java framework for Android app development that tries to resemble ActionScript API. JASAfA (I know the name sucks big time, please suggest another) has nothing to do with Flash platform for Android nor Adobe. The project is free and open source, which is licensed under the MIT License.
Whom is it for?
Programmer who are coming from ActionScript world are mostly alienated by Java's API. This project is mainly for them. But could be useful to others as well.
Why write JASAfA?
With this framework, it is expected that any ActionScript coder could easily write Android app without the need of the Adobe Flash for Android. And with differences among Android SDKs, JASAfA will try to make sure same classes can be used across SDKs, keeping compatibility issues at a minimal level.
Where can it be downloaded?
The project page has just been setup and classes are being properly documented. Visit it once in a while at:
When will it be released?
Each classes will be released one after the other until all* has been written.
* Mapping the whole ActionScript 3 API will be a huge task. That is why, for the meantime the scope will only be:

What is JASAfA?
JASAfA (or Java ActionScript API for Android) is a stupid name to a project that attempts to provide a Java framework for Android app development that tries to resemble ActionScript API. JASAfA (I know the name sucks big time, please suggest another) has nothing to do with Flash platform for Android nor Adobe. The project is free and open source, which is licensed under the MIT License.
Whom is it for?
Programmer who are coming from ActionScript world are mostly alienated by Java's API. This project is mainly for them. But could be useful to others as well.
Why write JASAfA?
With this framework, it is expected that any ActionScript coder could easily write Android app without the need of the Adobe Flash for Android. And with differences among Android SDKs, JASAfA will try to make sure same classes can be used across SDKs, keeping compatibility issues at a minimal level.
Where can it be downloaded?
The project page has just been setup and classes are being properly documented. Visit it once in a while at:
When will it be released?
Each classes will be released one after the other until all* has been written.
* Mapping the whole ActionScript 3 API will be a huge task. That is why, for the meantime the scope will only be:
- flash.display.Graphics
- flash.display.DisplayObject
- flash.display.Sprite
- flash.display.MovieClip
- flash.events.Event
- flash.events.MouseEvent
- flash.events.KeyboardEvent
- flash.geom.Matrix
- flash.geom.Point
- flash.ui.Keyboard
- flash.ui.Mouse
Subscribe to:
Posts (Atom)