A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Convet As2 to As3

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Posts
    13

    Convet As2 to As3

    function sina(xml){
    if(xml){

    ex = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;

    ex2= this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;

    ex3= this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;

    ex4= this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
    names.text= ex;

    family.text= ex2;

    city.text= ex3;

    year.text= ex4;

    erorr.text="flash";

    }

    else

    erorr.text="adob";

    }

  2. #2
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    here's a link that might help your XML troubles...it's basic, but it'll do.

    http://www.jasonljohnson.com/AS2_to_AS3/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center