Owner: Flash / Flex articles and experiments URL:http://flexcomps.wordpress.com Join Date: Thu, 31 Jul 2008 01:56:53 -0500 Rating:0 Site Description: The blog contains my experiments and articles on Flash / Flex and Actionscript. These are multimedia authoring tools, which supports development in different domains like web animation, rich internet applications, the enterprise RIA development and presen Site statistics:Click here
AIR - EncryptedLocalStore 2008-07-30 04:56:22 This is an exciting feature when you are developing an application for AIR platform. The feature supports AIR application to store encrypted data onto local hard disk. The encryption used is of 128 bit. Here is more information on the class.
The EncryptedLocalStore class provides methods for setting and getting objects in the encrypted local data [...]
AMFEXT (An extension for AMFPHP performance boosting) 2008-07-30 02:29:11 I have been recently studying the AMF3.0. During this period had an impression that AMFPHP is faster than XML however after some research i had to look for some performance boosting
tips for AMFPHP as the benchmarks by Mike Potter clearly says that the XML is having an upper hand in terms of data processing. [...]
Copying objects with Flash.utils.ByteArray 2008-07-17 02:21:03 I have been exploring the ways to copy an Array object to a new Array with less of the effort. Reason being the following statements in ActionScript
var arrayA:Array = new Array(”Jack”,”Steve”,”Mark”,”Ted”);
var arrayB:Array = arrayA;
The above statements appears to create a copy of arrayA, however in the actual it creates a new reference to the arr Read more:Copying
, Flash
, objects
Escape text utility in Adobe AIR 2008-07-10 02:45:41 A copule of days back i have come across a situation where we need to escape multiple xml files, so just to explore AIR and have a conversion utility i have created this small application using flash.filesystem package of AIR. The utitlity provide an option to browse a text/xml (UTF/ANSI) file on disk and then [...] Read more:Adobe
, Escape
Loading library assets from flash9 swf to Flex 2008-07-07 02:29:04 This is a prototype to load external flash9 swf file into flex and using the library items from the swf. In given example we have two library symbols with linkage ids (”mc1″, “mc2″).
Just make sure when you create a movieclip from these definitions, you firstly add these to a UIComponent and then that component to [...] Read more:Loading
SWF goes search engines compatible 2008-07-02 02:38:41 Adobe is teaming up with search industry leaders (Google and Yahoo) to dramatically improve search results of dynamic Web content and rich Internet applications (RIAs).
Till now the spider search option in swf was available only for static text whereas now this colleboration will work together towards a dynamic data search/indexing of SWF which means now [...] Read more:compatible
, engines
, search engines
Resizing button component on the fly 2008-06-10 04:04:30 We have encountered a situation where the the UI button
label was changing frequently in Flash CS3. So basis on that we have to resize our button component as the label changes. There is no inbuilt AutoResize feature in button component so what we have done is, get the size of the label and then [...]
Capturing keyboard events in Flex 2008-06-02 02:09:27 This is a small code in flex /AS3 to demonstrate how you can capture the keyboardevents
in Flex. The application invokes init() method once the creation of form is completed.
The init() method have two lines of code. The first line is for making sure that once the user click on stage the focus should [...]
AIR Port Tester 2008-06-01 07:34:51 The application is an experiment based on Adobe Air and newly introduced Binary Socket class in Actionscript 3. The support for XMLSocket was there in earlier version AS1 and AS2 however now with AS3 developers have another socket class i.e Binary socket. So to try it out i have thought to write a socket tester [...] Read more:Tester
Flex UIComponent hierarchy 2008-05-26 05:59:13 This post is regarding the new object to UIComponent hierarchy which has been changed in ActionScript3 UIComponent model . The flow works with AVM2 - Flash player 9 and above. I have taken reference from the following Adobe documentation URL however i have tried to make it bit more elaborated by defining some of the [...]
RIA Development Technologies 2008-08-06 23:48:20 Rich Internet applications (RIAs) are web applications that have the features and functionality of traditional desktop applications. RIAs typically transfer the processing necessary for the user interface to the web client but keep the bulk of the data (i.e. the state of the program, the data, etc.) back on the application server.
RIAs typically do [...] Read more:Development
AS3 - calling myFunction() on main timeline from loaded SWF 2008-09-01 09:46:26 The post is about loading an external swf in a main swf file with some function on main timeline and calling those functions from loaded swf file.
Now the problem is when you try to compile the external swf file with any reference to the main timeline using parent.parent or loader.parent etc. it gives error in [...]
How to use Subversion with FLEX Builder 2008-08-25 02:45:36 Please check this instruction manual to install the SVN client into your Flex Workspace. If you are behind firewall please check my other article on Setting flex editor with proxy. Read more:Builder
JSFL Export Batch images to FLA/SWF 2008-08-20 01:00:15 This is a utility to convert bunch of images to SWFs with the same size of images. You need to place the source.fla under c:\JSFL folder or you can edit the path of your fla in the JSFL file at line 35. Download it from here.
FLfile.copy(”file:///C:/JSFL/source.fla”,folder+’/Exported/’+tempName);
Also you can change the name of FLA/SWF accordingly [...]
Sorting Algorithms in AS3 2008-08-18 03:17:22 I was studying Data Structure book last week and have converted some C based sorting Algorithms
into AS3. The code is quite slow as compared to Flash Player’s internal sorting algorithms however just for an example purpose i have written this code
Following are 3 algorithms those i have converted. All these 3 are not one [...] Read more:Sorting
Adobe AIR Command Line Tools 2008-08-17 23:56:19 The AIR SDK provides the following command-line tools:
AMXMLC : AMXMLC is a simple wrapper for the MXMLC Flex compiler, which links in the appropriate AIR-specific libraries.
Usage is the same as it is in flex compiler MXMLC:
amxmlc main.mxml
This shell script is included in the bin directory of the AIR SDK directory.
The first argument passed to the [...] Read more:Adobe
, Command Line
, Tools
Adobe FLASH CS4 Professional has been released 2008-09-23 05:27:00 Adobe had released the Flash CS4 professional edition at a preorder price of $699. Following are the Some of highlighted features
Object-based animation
3D transformation
Procedural modeling with Deco and Spray Brush
Metadata (XMP) support
Authoring for Adobe AIR
XFL support
Inverse kinematics with the Bones tool
Motion editor
Motion presets
H.264 support
Check here for more details
Posted in A Read more:Adobe
AS3 XML Loader Utility Class 2008-09-23 04:19:01 I have developed this XMLUtility
class in conjunction with a CustomEvent Class which returns me the loaded XML/String Data along with the complete event firing. You can download the sources from here. Following is the code you need to write when you want to load this class
//———— Import Classes
import com.flexcomps.utils.CustomEvent;
import com.flexcomps.utils.XMLLoader
Uti
Datagrid : Sorting Numeric data having commas 2008-09-22 00:56:42 The post is regarding a solution in case you have some numeric data with commas, which is going to be shown in a datagrid with sorting enabled. If you use the Array.NUMERIC as an option on the DataGridColumn.sortOptions with values having comma the results are not as desired. So what we have done is use [...] Read more:Sorting
AS3 Scrollbar component for MovieClip 2008-09-15 02:48:45 Here is a ScrollBar component class. The class takes a movieClip as a parameter and then attach the scrollbar to it. Following is the snapshot of same
You can download the sources from here
AS3 Undocumented Method Date(String) 2008-09-09 03:05:47 The Date class constructor is documented with the following parameters in Adobe Docs
Date(yearOrTimevalue:Object, month:Number, date:Number = 1, hour:Number = 0, minute:Number = 0, second:Number = 0, millisecond:Number = 0)
However today i just tried out and found that there is also a undocumented calling of Date constructor with a Date in a string format. I have [...] Read more:String
Finding and changing BG color of all input TextField Instances 2008-09-08 02:05:27 Following is the code for finding and changing BackGround color of all the Input textfields in a perticular scope
//—- Import classes ———-
import flash.utils.getQualifiedClassName;
import flash.text.TextField;
import flash.text.TextFieldType;
//——— initialize variables —-
var temp:Array;
trace(this.numChildren)
for(var k:int=0;k < this.numChildr Read more:input
Improve Performance with BitmapData.lock( ) 2008-10-10 08:24:19 While reading a book i come to a very interesting topic which i would like to share here
———————–
By default, The bitmap instances that reference a given BitmapData object are notified every time setPixel32( ) or setPixel( ) is called on that object. When setPixel32( ) or setPixel( ) are used in rapid succession within the [...] Read more:Improve
, Performance
Replicating click Event on a MouseOver event in Flex Accordion 2008-10-09 04:19:03 The following code is solution to a problem where you need to make the accordion component’s MouseOver event
to behave like a click event. The code will work only in the case if you have not given the names to the AccordionHeader explicitly. Check the solution out here
<?xml version=”1.0″?>
<mx:Application xmlns:mx=””>
<mx:Script>
<![CDAT
Attaching MovieClip from library by passing classname as a string in function in AS3 2008-09-26 05:55:43 The post contains a solution for a case where you need to attach a Library symbol and you have to pass that class name as a string to the function
.
The approach followed here is by using the getDefinitionByName utility which interprets the string and convert it into a Class. Then you can use a new [...] Read more:passing
Enabling Handcursor on a MovieClip having dynamic TextField in AS3 2008-09-25 08:09:10 You can enable the hand cursor on a MovieClip by defining the following statement
MovieClip.buttonMode = true;
However the solution does not work in-case you have a dynamic textField in that movieclip. To enable hand in this case you have to additionally write the following statement
MovieClip.mouseChildren = false;
The reason is that the mouseChildren property determines whether or [...]