Home » Archive

Articles in the XML Category

ActionScript 3.0, XML »

[20 Jul 2012 | No Comment | ]

In one of my Flash project i need to retrive twitter feed and update UI on new feed is available.
This is not a big task, any way below is the code might be useful for the beginners in AS3.
Compare XML and need to reload it and update UI if new XML is available.
Checking the XML feed in Timer Event and load it and compare with old feed.

AS3 Code :
Entire Code For loading Twitter feed and Check for new Updates
var timer:Timer = new Timer(15000,1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, handleTimerComplete)

var userName:String = “coolmobilesites”
var currentXML:XML;
var oldXML:XML;

function handleTimerComplete(e:TimerEvent):void


var …

ActionScript 3.0, Flash CS4, Flex, XML »

[30 Aug 2010 | One Comment | ]

I was loading the XML data from a XML file and displaying the list( li ) data in an HTML text but it displays as single bullet and remaining content below as single line.
To overcome the issue we need to add multiline property well before we set the HTML text in the TextField.
Solution Code:
var textField : TextField = new TextField();
textField.multiline = true;
textField.htmlText = String(itemObject.data);

ActionScript 3.0, Flash CS4, XML »

[11 Mar 2010 | No Comment | ]
Looping through each XMLNode and each attributes within Node:

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 is a single or collection of XMLNodes with in a rootnode.
XML example:

Here the root node …

ActionScript 3.0, Webmasters, XML »

[24 Nov 2009 | 2 Comments | ]
Free Dynamic Flash Slideshow

Slideshows is an excellent way of organizing content, Images and keep your website clean and user-friendly.
One main reason for using slideshows over other ways is that people are used it regularly when they browse over the Internet, and it’s easy to showcase the content of a website.
Slideshows can be used in

Entertainment sites
Gaming sites
Magazine sites

Designscripting.com released FaderAPI to create slideshows on the fly; here is some working samples of Slideshows using the FaderAPI’s
Features of the slideshow:

Slideshow can load Image and SWF files.
SWF may also be an animated file.
No Need of Preloaded- …

ActionScript 3.0, Flash CS4, Flex, XML »

[10 Nov 2009 | 3 Comments | ]
ActionScript3.0 Quiz

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,
Display List,
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…