Hey Guys,
Now you can show a preloader animation even while loading any data from a XML file. The code for the preloader is like any other preloader in Flash except there is a change while extracting the loaded and total bytes -
loadedBytes=myXML.getBytesLoaded();
totalBytes=myXML.getBytesTotal();
myXML here refers to your XML object created to load the XML file.
Please feel free contact me at atul.narang@designworxz.com in case of any query.
Cheers :)
Thursday, May 24, 2007
Friday, April 27, 2007
Loading Image Dynamically
I don't recommend to use LoadMovie for loading images dynamically because you can not actually trace the progress & perform the next action depending upon the progress.
I will suggest using MovieClipLoader class and its function loadClip using which you can actually trace the progress & if required can play preloader animation & then hide it when the loading of image is completed.
Please feel free to post your query if you have any.
I will suggest using MovieClipLoader class and its function loadClip using which you can actually trace the progress & if required can play preloader animation & then hide it when the loading of image is completed.
Please feel free to post your query if you have any.
Labels:
Loading Image with Actionscript
Thursday, April 26, 2007
Parsing XML in Flash
XML2Object is an extension for Macromedia Flash & just to let those people know who are creating dynamic website or applications by integrating & reading data from XML that it makes your life very easy by creating an object of complete XML.
After creating an object of XML2Object you can extract data by using the following format -
ObjectName.nodename.data
It is very easy & faster to use rather than parsing through each node of XML file & then extracting the data.
After creating an object of XML2Object you can extract data by using the following format -
ObjectName.nodename.data
It is very easy & faster to use rather than parsing through each node of XML file & then extracting the data.
Labels:
XML Parsing
Subscribe to:
Posts (Atom)
