Articles in the XML Category
ActionScript 3.0, Flash CS4, Flex, XML »
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.
Solution:
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);
addChild(textField);
ActionScript 3.0, Flash CS4, XML »
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:
XML is a single or collection of XMLNodes with in a rootnode.
XML example:
Note:
Here the root node …
ActionScript 3.0, Webmasters, XML »
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
Portfolios
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 »
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,
Events,
Display List,
OOP,
Text,
Sound,
Video,
XML,
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…
cheers
ActionScript 2.0, XML »
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, XML »
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, XML »
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.
XpathAPI:
The native XPathAPI class allows us to search the XML nodes and attributes within XML that €™s 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
Same Logic using the conditional operator
var test_boolean : Boolean = true
test_boolean == true ? trace(”I am True”) …
ActionScript 2.0, XML »
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
{
…
