Articles in the Flash CS4 Category
ActionScript 3.0, Flash CS4, XML »
In this tutorial we are going to iterate through node in a XML. Intead of using direct approach of getting the XML Length(); We are going to use indirect approach to loop through the XML.
Here we are going to use For each statement and iterate through the nodes to access information intead of using index values.
Here is XMLManager class to load XML without pain.
Before proceeding we must know the difference between XML and XMLList.
XML:
XML is a single or collection of XMLNodes with in a rootnode.
XML example:
Note:
Here the root node …
AIR, Flash CS4, Flex »
Adobe have released Flash player 10.1 for Mobiles. The full Flash Player will be available on smartphones and other Internet-connected mobile devices, To deliver on a high level of consistency and move onto mobile platforms with limited memory and processing resources, Flash Player 10.1 leverages hardware acceleration of graphics and video and many other performance improvements, such as rendering, scripting, memory utilization, start-up time, battery and CPU optimizations.
Flash Player 10.1 is also designed to take advantage of media delivery with HTTP streaming, including integration of content protection powered by Adobe …
ActionScript 3.0, Flash CS4, Flex »
Now we can use the SWC files created for Flex applications in Flash.
Just we need to add the SWC to Flash compiler. Follow the steps to use Flex SWC files in Flash development.
1. Open new File Flash CS4.
2. Select File > Publish Settings or Press Ctrl + Shift + F12, Publish Settings window will Popup.
3. Click on Settings… and Select Library path
4. Click on Plus Symbol to add SWC path or File.
5. Copy and Paste the Flex SWC files Path.
For example:C:\Program Files\Adobe\Adobe Flash Builder Beta 2\sdks\4.0.0\frameworks\libs
Thats it …
Flash CS4 »
AIR, ActionScript 2.0, ActionScript 3.0, Design, Flash CS4, Flex »
Preloaders are much needed for Flash/Flex RIA’s.
Here some of the free preloader animations created by me this morning.
Idea of preloader is indicating the user that some assets are being loaded, and making them to wait.
But we should keep in mind that the user may lost their patience, so keeping the Flash assets filesize minimal is much important while making Flash websites or Flash applications.
ActionScript 3.0, Flash CS4, Flex, Javascript »
Changing the size of flash document from Javascript will be handy in many situations like creating Flash widgets like
News scroller
Flash Banners
..
In this article we are going to create that effect.
First we need to import necessary classes.
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.display.MovieClip;
The next step is to align the stage to TOP LEFT and scalemode to no scale.
Means we are aligning the stage to topleft even if we resize it and not scaling the contents on resize
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
The final step is to add Event listener for stage resize
stage.addEventListener(Event.RESIZE, handleResize);
function handleResize(e:Event):void
{
//The …
AIR, ActionScript 3.0, Flash CS4, Flex »
Now we can create optimized Actionscript and flex code. Adobe has released FlexPMD to audit Actionscript (AS3) or Flex source.
FlexPMD uses a part of PMD, which used to analyse Java sources.
FlexPMD detects unused codes(like functions variables), inefficient code, complex loops..
FlexPMD can be invoked from
* The command line
* Maven
* Ant
* Automator on Mac OS X
* Eclipse new
* TextMate on Mac OS X new
* …
ActionScript 3.0, Flash CS4, Javascript »
Finally the default menu items from the Flash player can be removed.
Since when I started working in Flash, was thinking is there any option, but finally it came into action.
Now the developer can use this Code to hide the default right click menu in Flash through actionscript and javascript together.
The flash file(SWF) should be embedded inside a HTML page with the javascript file called.
But one sad new is that this will not work with opera browser.
Game developer and RIA – Rich internet Application can leverage this functionalit to hide/remove the …
ActionScript 3.0, Flash CS4, Flex, XML »
Today I came across the wonderful website(learningactionscript3.com) for actionscript,
I have taken the quiz section where we can see questions from chapters of the book Learning ActionScript3.0, It covers all the chapters from
ActionScript Overview,
Events,
Display List,
OOP,
Text,
Sound,
Video,
XML,
Advance Actionscript.
Below is the screenshot of the result.
From the result I need to concentrate in XML and Prgramming Design.
I encourage you people to participate in the Quiz and post me the Screenshot to publish here in the blog.
All the best guys…
cheers
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 …
