This content has been marked as final. Show 4 replies
don't make xnRoot local to your onLoad function by prefixing it with var.
kglad, I took the var out and get the following error.
**Error** Scene=Scene 1, layer=Actions, frame=3:Line 48: Syntax error.
xnRoot:XMLNode = this.firstChild;
**Error** Scene=Scene 1, layer=Actions, frame=3:Line 52: Unexpected '}'
Total ActionScript Errors: 2 Reported Errors: 2
kglad, just figured it out, I can't use the typecasting with the
That way I don't get the error anymore.
correct. or if you want to typecast, do that outside the function on the timeline: