|
Posted by SpaceGirl on 03/09/07 12:17
On Mar 9, 11:55 am, Onideus Mad Hatter <use...@backwater-
productions.net> wrote:
> On 9 Mar 2007 02:17:41 -0800, "SpaceGirl"
>
>
>
> <nothespacegirls...@subhuman.net> wrote:
> >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
>
> My way is easier to read therefore superior. Sorry if I think a lil
> too far out of the box for you, I know it can be a little scary.
Heheh. Very old, long argument. I'm not sure why the standard for AS
is "my way", I generally find your way easier to read too. There is a
lot to be said for not following standards blindly :)
Navigation:
[Reply to this message]
|