Articles Archive for November 2008
AIR »
The trace function is not working while testing AIR application(CTRL+ENTER) .
There are applications to track or simulate trace method in AIR.
Simple way to make trace function to work in AIR is to run application in Debug mode.
To run an AIR Application in debug mode is same as running normal Flash application
(CTRL+SHIFT+ENTER)
ActionScript 3.0 »
The secret behind this is simple, when we apply filters to textfield it becomes bitmap data.
So we can fade textfield without embed fonts.
One drawback of the method is we cant able to rotate the text
code( AS3 ):
import fl.transitions.*;
import fl.transitions.easing.*
var blur:BlurFilter = new BlurFilter(0,0,0);
_txt.filters = [blur]
_txt.alpha =.5;
var tween:Tween = new Tween(_txt,”alpha”,Strong.easeIn,1,0,2,true)
tween.addEventListener(TweenEvent.MOTION_FINISH, function(){tween.yoyo()})
If you know any tricks comment it.
ActionScript 3.0 »
In AS2 we use Delegate class to pass arguments to event handlers and scoping event handlers. But there is no Delegate class in AS3.
Still sending extra argument to event handlers is not a big deal.
We are going to use one way of sending extra parameters to event handlers in actionscript 3.0,
code:
button.addEventListener(MouseEvent.CLICK, function(e:MouseEvent){handleClickEvent(e,”Home”)});
function handleClickEvent(e:MouseEvent,str:String) {
trace(”Argument :”+str,”- Event target :”+e.target.name);
}
output:
Argument :Home – Event target :button
Here note,
We are adding event handler for button symbol. On click we call an inline function where inturn we are passing the MouseEvent and a parameter.
Simple is’nt it.
Cheers …
ActionScript 3.0 »
I made this Thumbnail Manager utility class to make things easier for developers. Still has limited features but planed to increase it in future.
This Utility class makes easy way to developers to create the thumbnails, can be used in image gallery.
Features:
Aligning the thumbnail vertically or horizontally.
Each thumbnail will preload of its own.
Ability to set preloader color.
Easy to set cachebuster.
Next Version Features:
Resize the image proportionally.
Aigning image in Row and Column.
Usage:
ThumbnailManager(Array of URL, ThumbnailManager.HORIZONTAL_ALIGN,Height,Width,Spacing,Preloader Color ,CacheBuster)
Example:
Horizontal View:
Â
Vertical View:
Â
Refresh page to view the preloader again
Code:
import com.Thumbnail.*;
var arr:Array = [”http://www.designscripting.com/wp-content/uploads/2008/11/thumb1.jpg”
   …
ActionScript 3.0 »
In this part we are going to discuss about usage of Argument class, Rest keyword, difference between for..in and for each..in loop, void datatype, is as keyword.
Before going through this section its recommended to visit
Introduction to actionscript3.0 part1
Introduction to actionscript3.0 part2
Argument class:
An arguments object is used to access the arguments of the function and also usefull to get the reference to callee function.
Arguments inside the function can be accessed using the array notation, for example arguments[0] will refer the first argument in the function.
sayHello( “Hello !” );
function sayHello( _text:String )
{
…
Flash CS4 »
Today morning i noticed that Adobe CS4 is available for download..
i am really excited to see new version of flash and see the new features in Flash CS4..
here the link for trial download
enjoy..
-sara
ActionScript 3.0 »
I tried to use the power of Regex in AS3 and came with this StringUtils Class.
Some of the complex String manipulations can be done easily using Regex in AS3. We have discussed a bit about Regex in Introduction to AS3 Part1
We shall discuss brief about Regex in another tutorial.
Some of the String manipulations that can be done using this StringUtils Class are
Trim:
Trim/Strip unwanted spaces from the given string.
Syntax: Trim( String, Boolean = true) : String;
If second @param is false Trim method will not remove the …
Flash CS4, Uncategorized »
Tamarin is the open source implementation of the ECMAScript 4th edition (ES4) language specification. The Tamarin virtual machine will be used by Mozilla within SpiderMonkey, the core JavaScript engine embedded in Firefox®, and other products based on Mozilla technology. The code will continue to be used by Adobe as part of the ActionScript™ Virtual Machine within Adobe® Flash® Player.
The Tamarin virtual machine currently implements the ECMAScript 3rd edition language standard that is the basis for JavaScript, Adobe ActionScript, and Microsoft Jscript, plus some of the new language features proposed …
ActionScript 2.0, ActionScript 3.0, Flash CS4 »
Flash player 10 is in beta … its time to check the Flash player version installed in your system and upgrade to latest Flash player..
There are some easy ways to check the player installed..
Follow the link and check the version
kb.adobe.com
duber.com
playerversion.com
Â
Dont have Adobe Flash Player….
Install Adobe Flash Player
Design, Flex »
I recently came across Scalenine.com, Contains useful Flex related stuffs..
The website contains useful Skins and Themes that can be used in Flex and AIR…
I recoment to use the skins and themes to make your Flex application more exciting and cool UI for flex
Â
Â
Â
Â
Some of the themes contains flash version too ..This site also contains instructions to install the themes..
The theme contains SWF, CSS, and background image too..Hope this will solve our design time in Builder…
Some of the eye catching Flex UI here too
 enjoy
 …
