Welcome To Snipplr
Everyone's Recent ActionScript 3 Snippets Tagged xml
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
TimedText (TT) XML captions files can have namespaces that cause problems when parsing them in AS3. To get around this you can use this code to remove the namespace from the root XML node using Regex. This example uses
0
827
posted 12 years ago by adrianparr
If you don't deal with namespaces in XML correctly they can break your parsing in AS3. One way of getting around this is to remove the namespace from the XML a using regular expression.
0
930
posted 12 years ago by adrianparr
Simple usage:
var xmlLoader:LoadXMLUtil = new LoadXMLUtil("path_to_xml.xml");
xmlLoader.addEventListener(Event.COMPLETE, onLoaderComplete);
private function onLoaderComplete(event:Event):void{
trace("Loaded XML: ");
trace(xmlLoader.xml...
2
604
posted 13 years ago by burnandbass
Use this static class to encode and decode HTML Entity Names. For some reason Snipplr doesn't display all the code, so download the ZIP file for a full working demo and source code.
0
1649
posted 13 years ago by adrianparr
These five characters should be replaced with their HTML entity names before being used in XML, otherwise they may cause the XML to be invalid.
0
1042
posted 13 years ago by adrianparr
Basic usage of GreenSock\'s LoaderMax class for AS3. A simple slideshow controlled via XML.\r\n\r\nGo to http://adamcoulombe.info/lab/as3/loadermaxslideshow/ for demo and downloads.
3
908
posted 13 years ago by adamcoulombe
« Prev 1 Next »