Showing posts with label air. Show all posts
Showing posts with label air. Show all posts

Tuesday, October 27, 2009

Learn Flex

Flex is neither a programming language nor a scripting language. Flex is an IDE (Integrated development environment) and as well as a SDK (Software Development Kit) for the development and deployment of cross platform, RIA (Rich Internet applications) generally based on Flash.

Checkout more topics available at learna2z.com

All the useful stuff related to flex includes basic information like what is flex,framework,features,advantages over other ria technologies, controls,components,build custom components,code samples,customizations..n more


find out how to design using layouts,controls,navigators ... to develop custom components through example,sample codes

Flash® video is one of the standout technologies on the Internet. However, the traditional presentation of video--in a rectangular screen with a progress bar and some control buttons underneath--is only one possible use of video in a Flash application. Through ActionScript™, you have fine-tuned access to and control over video loading, presentation, and playback.


AIR (code name Apollo) is a new technology by Adobe allowing web developers create Rich Internet Applications (RIAs) for the desktop.


Tuesday, February 17, 2009

Delete a node from XML / XMLListCollection

source

PROBLEM SUMMARY

simply using the Delete key work in Flex does not work most of the time and if you have a Tree that's bound to the XMLListCollection Flex will mess up the Tree Selection after deleting an XML element.
SOLUTION SUMMARY

Use a custom method to for loop and delete proper child and reset tree selection
EXPLANATION
__________________________________________________________________________________
Use this method:
private function xmlDeleteNode(xmlToDelete:XML):Boolean
{
var cn:XMLList = XMLList(xmlToDelete.parent()).children();

for ( var i:Number = 0 ; i < cn.length() ; i++ )
{
if ( cn[i] == xmlToDelete )
{
delete cn[i];
return true;
}
}

return false;

}

Also, remember to do on an XML Bound Tree Control:
myTree.selectedItem = null;
_______________________________________________________________________________

i have extended this logic
myTree.selectedItem = null;
after delete ... instead setting the selectedItem to null, it wud b gud
if you select the deleted node's parent
before calling the xmlDeleteNode method

save the xmlToDelete's parent
**************************************
var tmp:XML = xmlToDelete.parent();
xmlDeleteNode(xmlToDelete);
myTree.selectedItem = tmp

**************************************

Freelance