Articles Archive for June 2009
AIR, ActionScript 3.0, Flash CS4 »
To create Application alert as in MSN messenger, that happens while a contact signing In. Here we are going to see how to calculate and position an alert window for that we should also calculate the height of Task bar.
That’s not a pretty tough job in Adobe AIR.
var screenBounds:Rectangle = Screen.mainScreen.bounds;
var screenVisibleBounds:Rectangle = Screen.mainScreen.visibleBounds;
var _taskbarHeight:Number = screenBounds.height – screenVisibleBounds;
var _taskbarY:Number = screenBounds.height – _taskbarHeight;
Screen.mainScreen.bounds return the total screen height and width while, Screen.mainScreen.visibleBounds return the visible area other than the taskbar.
With this we can calculate the Taskbar height and place …
Flex »
Error:
JST Common Core (2.0.0.v200706041905-1007w311817231426) requires plug-in “org.eclipse.wst.common.project.facet.core (1.1.1)”, or compatible.
We can develop Java code in Flex builder standalone version too.While the standalone version of Flex Builder does not contain tools to edit Java code by default, you can install them as Eclipse plugins.
For updating Java Development Features in Flex IDE You need to install Java Development Tools (JDT) plug-in
Follow the steps below:
———————
1. Open Flex Builder IDE.
2. Select Help Menu >> Software Updates >> Click on Find and Install.
3. In Install/Update Dialogue box. Select “Search for new features to install†and …
Google »
Adobe Systems Incorporated (Nasdaq:ADBE) and HTC, a global designer of mobile phones, today announced that the new HTC Hero is the first Android phone to ship with support for Adobe® Flash® Platform technology. The new phone delivers a more complete Web browsing experience and provides access to a broad variety of Flash technology based content available on the Web today.
ANDROID + HTC + FLASH
“As the first Android device with Flash, the new HTC Hero represents a key milestone for Android and the Flash Platform. With close to 80 percent of …
AIR, ActionScript 3.0 »
By default NativeWindow loads some where on the screen. Loading an splash screen or application on center of the screen will gives better user experience.
Below code we are creating a native window and aligning in the screen center.
var _splashWindow:NativeWindow = new NativeWindow(nativeWindowOptions);
_splashWindow.width = 484;
_splashWindow.height = 289;
_splashWindow.stage.align = “TL”;
_splashWindow.stage.scaleMode = “noScale”;
_splashWindow.title = “Center on screen”;
var screenBounds:Rectangle = Screen.mainScreen.bounds;
_splashWindow.x = (screenBounds.width – _splashWindow.width)/2;
_splashWindow.y = (screenBounds.height – _splashWindow.height)/2;
_splashWindow.activate();
Here,
var screenBounds:Rectangle = Screen.mainScreen.bounds;
Screen.mainScreen.bounds return the screen boundary.
_splashWindow.x = (screenBounds.width – _splashWindow.width)/2;
_splashWindow.y = (screenBounds.height – _splashWindow.height)/2;
Centering the application on screen.
Javascript »
Few days back while working with “InnerHtml”, I realized that the tag doesn’t work properly for Firefox and Safari.So I tried searching for the solution, by checking the tag against each browser using JavaScript.
I replaced “InnerHtml” with “textContent” (Firefox and Safari) and “innerText†(IE5+) and it worked!
if (document.layers) {
type=”NN”;
} else {
if (document.all) {
if (document.getElementById) {
//type=”IE5+”;
var spanTags = document.getElementsByTagName(’span’);
for (var i = 0; i
