|
Posted by SpaceGirl on 03/09/07 10:17
On Mar 9, 4:26 am, Onideus Mad Hatter <use...@backwater-
productions.net> wrote:
> On 8 Mar 2007 04:30:36 -0800, "SpaceGirl"
>
> <nothespacegirls...@subhuman.net> wrote:
> >Here we go, ultra simple XML example:
>
> <snip>
>
> Your code is hard to read like that...why not make it like this:
>
> :var titles_xml:XML = new XML();
> :titles_xml.ignoreWhite = true;
> :var titleFromXML:String;
> :var clipName:String;
> :var urlFromXML:String;
> :
> :titles_xml.onLoad = function(sucess)
> :{
> : if (sucess) { XML_titles(titles_xml);}
> : else { trace("Couldn't load XML"); }
> :}
BTW, the standard bracketing for ECMAScript / AS2 / AS3 is
if (something){
//do this
}
-not-
if (something)
{
// do something
}
Either way compiles though :D
Navigation:
[Reply to this message]
|