Magesh
Novice
Reged: 01/28/04
Posts: 5
|
|
Hi,
I have data.xml file. I read the xml file and displaying.
Let the text as, " John |@is| coming from Newyork.
In this, there is a TextField should be placed instead of |@is|. It's like fillin-gap exercise. I have to create this at runtime. Because I have more questions like this. So TextFiled should be created depending upon the delimeter, " |@is| ". ie, it should be like this,
John _______ coming from Newyork.
Is it possible to create like this in Flash MX2004 using ActionScript? If so, please can you please give me some samples ?
Thanks in advance.
Best Regards, Magesh.
|
Jeremy
Journeyman
Reged: 11/20/02
Posts: 49
Loc: Columbus, OH
|
|
Hey Magesh,
there are string operators you can use. Check Objects > String > Methods in the reference panel of flash. Unfortunately I dont have any examples of this to show you, but using those methods you should be able to delimit at the | character and insert some spaces. Placing the dynamic text field at that point for user entry will be tough and require some tricky code though. Good luck!
-------------------- JS [EOTT]
|
|