Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-16-2005, 12:40 AM   #1
redpapaelmo
Registered User
 
redpapaelmo's Avatar
 
Join Date: Mar 2005
Posts: 10
Question Textarea components Help!

Hi to all!

I'm currently creating a flash project and I encounter a problem using the TextArea Component, I'm working with the following files:

1. pathfinder.txt - this is where the path of my file is located
sample:
path1=news/current.xml
path2=
.
.

2. current.xml - the file that should be loaded in the TextArea.

3. mycss.css - a cascading stlye sheet.

Can anybody tell me on how can I load the xml file to the TextArea?
Please
redpapaelmo is offline   Reply With Quote
Old 08-16-2005, 04:04 AM   #2
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

Post on a MX2004 forum... This is a MX and LOWER only forum, and the TextArea component is not available on MX only...

http://www.actionscripts.org/forums/...play.php3?f=34
oldnewbie is offline   Reply With Quote
Old 08-16-2005, 06:33 AM   #3
redpapaelmo
Registered User
 
redpapaelmo's Avatar
 
Join Date: Mar 2005
Posts: 10
Default TextArea Question

Hi to all!

I'm currently creating a flash project and I encounter a problem using the TextArea Component, I'm working with the following files:

1. pathfinder.txt - this is where the path of my file is located
sample:
path1=news/current.xml
path2=
.
.

2. current.xml - the file that should be loaded in the TextArea.

3. mycss.css - a cascading stlye sheet.

Can anybody tell me on how can I load the xml file to the TextArea?
Please
redpapaelmo is offline   Reply With Quote
Old 08-16-2005, 03:23 PM   #4
benDev
Registered User
 
Join Date: Jun 2005
Posts: 26
Default

hello,
The TextArea can be filled like many others component by adressing the .text property.
Then to open your xml file and read it, you must create an XML object and describe how to behave when the file will be loaded, that means what to do when the file has been read with the onLoad
ActionScript Code:
myObjectXML = new XML() ; myObjectXML.ignoreWhite     = true ; myObjectXML.onLoad  = load_XML_function ; // what to do when the file has been load myObjectXML.load     ('news/current.xml) ;   // that's tell where is your file and it's relative to you .swf
So it means that you have a load_XML_function somewhere in your class in which you will extract the content to put it in your textArea.text. It's probably a loop whell you will from the top to the bot with some nextSibling.
They are different scenarios depending on the structure of your file
I hope it's helpfull !
See You
benDev is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:29 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.