Jump to content

create textfield with index


Obi1-Cannabis

Recommended Posts

i'am trying to make a news engine using mysql, php, xml, flash... until the flash part everything is ok, but now i have a problem.i'am using a for that gets the information from each new of the xml and it's suposed to creat a new textfield for each one also, but i can't figure out how to make this last one happen i've tryied something like:

cont += "<font size='12' color='#006600'><b>"+titulo+"</b> -"+date+"</font><br><b>"+bdesc+"</b><br>"+desc+"<br><br>";this.createTextField("txt"+[i], 999, 20, txt[i-1]+20, 300, 200);txt[i].html=true;txt[i].htmlText=cont;

but it doesn't work... can anyone help me with this???

Link to comment
Share on other sites

I 'm still confused with your post, could you be more clearly :)
Nevermind it, i figured it out:
i=0;while(i<10){this.val = "mc"+i;this.createEmptyMovieClip(this.val, this.getNextHighestDepth());this[val].createTextField("data_txt", 8, 1, 20, 140, 20);this[val].data_txt.text=data_n;i++;

what i needed was something similar to this, of course data_n also gets changed inside the while.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...