Programming Art Forums

Programming Art Tutorials >> Flash

Pages: 1
Magesh
Novice


Reged: 01/28/04
Posts: 5
How to create dynamic Components at runtime?
      #342 - 02/17/04 03:16 AM

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.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jeremy
Journeyman


Reged: 11/20/02
Posts: 49
Loc: Columbus, OH
Re: How to create dynamic Components at runtime?
      #344 - 02/17/04 12:37 PM

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]


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 19 anonymous users are browsing this forum.

Moderator:  Programmingart, Brad 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 5836

Rate this topic

Jump to

Contact Us Programming Art Home

*
UBB.threads™ 6.5.1.1

Notice: due to an unmanageable amount of spam, the forums are closed to new members until further notice. You may still get support for any of your software products by emailing us at support@ at our website domain. Please feel free to browse existing posts as a guest as there is plenty of valuable information here. Thanks!