Posts Tagged ‘xml’
Security error: securitySandboxError with Flash
You have a flash uploader and you get this error: security error: securitySandboxError This means that the flash is not trusted by the domain and you have to place an xml file in the root of the domain. The file is called “crossdomain.xml” and this is what should be inside it: <?xml version=”1.0″?> <cross-domain-policy> <allow-access-from domain=”*” /> </cross-domain-policy> Solved!
How to correctly form HTML
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ /> <script type=”text/javascript” src=”javascript/javascriptfilename.js”></script> <title>Title goes here</title> <link href=”stylesheetname.css” rel=”stylesheet” type=”text/css” /> </head> <body> Page content goes here </body> </html>
how to load xml into flash using actionscript 2
Create an xml object: var myXmlObject = new XML(); Perform action when xml file has been loaded: myXmlObject.onLoad = function(success) { if (success) trace("XML File has been read."); } Load the xml file into the object: myXmlObject.load("myXmlFile.xml");