Home » Archive

Articles in the XML Category

ActionScript 2.0, XML »

[6 Jan 2009 | No Comment | ]

In this version2 of Dynamic slide show i have added preloading support and opening links on clicking the image..
Here you can have look t previous version
Nothing complicated from the previous version… just need to update the swf and xml
in xml
image url=”Images/image1.jpg” gotoURL=”http://www.designscripting.com” target=”_blank”
gotoURL = webpage to be opened on clicking
target = _blank | _self
_blank opens the link in new page;
_self opens the link in same page.
Next in slideshow is Fader Classes in AS3 with that its possible to Fade back to back images, wait till preloading, load animated swf …

ActionScript 3.0, Flash CS4, Flex, XML »

[13 Nov 2008 | One Comment | ]

XMLManager is a utility class that provides a single interface to load XML. Please find the source files at the end of the tutorial.
XMLManager Utility makes work easy to load XML in actionscript3.0, Utility is free to use.
Just pass the URL of the xml as explained in code at timeline at source file to load XML.
XMLManager Class :

/**
* XMLManager is a utility class that provides a single interface to load XML
* And dispatches XMLLOADEDCOMPLETE event when the XML loaded
*
* Code from …

ActionScript 2.0, Webmasters, Wordpress, XML »

[12 Nov 2008 | 2 Comments | ]

This tutorial shows how to create dynamic slideshow by fetching the data from XML and the slideshow. This tutorial covers reading XML using XPathAPI, Conditional operator, MovieClipLoader, setTimeout. Follow this link for Dynamic Slideshow using ActionScript 3.0
Difficulty of Tutorial:
Beginner – Intermediate
XpathAPI:
The native XPathAPI class allows us to search the XML nodes and attributes within XML that is loaded in to flash.
To know more about using XPathAPI click here
Conditional Operator:
Using conditional operator is similar to if else statement.
Example:
 
var test_boolean : Boolean = true
if(test_boolean)
trace(“I am True”);
else
trace(“I am False”);
//output:I am True
 
Let us use the …

ActionScript 2.0, XML »

[7 Nov 2008 | No Comment | ]

XPath API:
XML used to make our flash applications more dynamic.
The native XPathAPI class allows us to search the XML nodes and attributes within XML that €™s loaded in to flash.
Simple XML Structure:

Loading XML:

The basic actionscript code for loading XML in actionscript 2.0

var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function( isLoaded:Boolean )
{
if(isLoaded)
{
// here this refers to the xml object. Instead of this we can also use xml there.
trace( this );
//trace( xml );
}else
{