Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old June 12th, 2008, 06:19 AM
Newbie
 
Join Date: Aug 2007
Posts: 17
Default simple xml actionscript

HI

I have a form that i m creating dynamically using xml .But i need to add labels on each formitem after all formitems are created.So i store each formItem in an array.After the form is created i tried adding labels to the form using the following code:

var i:int=0;
for each(var n:XML in externalXML..someObject.item) {


if(n.hasOwnProperty('label'))
{
formLabels[i++].label=n.label

}

}

though it creates the formitems with corresponding labels it gives errors on the way like this
TypeError: Error #1010: A term is undefined and has no properties.
Can anyone explain why i am getting this error
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles