Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-04-2004, 03:00 PM   #1
enmac
Registered User
 
Join Date: Jun 2003
Posts: 4
Question help! making flash get text from a .txt file?

How can I make flash take text from a text file?
eg. for a flash wabsite, instead of changing the flash file every single time I can change a .txt file. flash takes the text from the file to use in the site (Ie. news).

any help for me? if so thanks. Ive checked cyan blues tut list but I dont think its there... If anyone has a link Id take that too.
enmac is offline   Reply With Quote
Old 03-04-2004, 03:04 PM   #2
free mojo
Registered User
 
Join Date: Oct 2003
Posts: 236
Default

I think it is in the cyan threads, it's everywhere anyway. The best way is to use LoadVars or similarly loadVariables. Search for Load Vars or something similar in the "search" option. It should be easy enough to pick up.
free mojo is offline   Reply With Quote
Old 03-04-2004, 03:53 PM   #3
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,534
Default

It's all here, in the second half of this page...

http://www.macromedia.com/support/fl...ng_text_mx.htm
oldnewbie is offline   Reply With Quote
Old 03-04-2004, 04:07 PM   #4
yubin
Registered User
 
Join Date: Feb 2004
Location: Florida
Posts: 13
Send a message via Yahoo to yubin
Default

for the Dynamic text:
select the text box and open the actions panel.
in the VAR box at the bottom of the Actions panel, put in: textField

create a new layer and add this to the actions

loadVariablesNum("http://www.yoursite.com/yourtextfile.txt",0);
replacing the obvious from the url line.

in your textfile it has to start with this:

textField=and whatever you want to say here.
that's it. Flash has a tutorial built into MX. Just look for tutorials under the Help menu.

Regards,
Yubin
yubin is offline   Reply With Quote
Old 03-05-2004, 04:00 AM   #5
enmac
Registered User
 
Join Date: Jun 2003
Posts: 4
Default

thanks for the help people! just shows how well these forums work!
enmac is offline   Reply With Quote
Old 03-05-2004, 04:04 AM   #6
thaumaturgy
Macromedia Mercenary
 
thaumaturgy's Avatar
 
Join Date: Feb 2004
Location: Rose Bowl Country
Posts: 300
Send a message via Yahoo to thaumaturgy
Default

Quote:
Originally posted by enmac
thanks for the help people! just shows how well these forums work!
My sarcasm meter isn't working this evening.
thaumaturgy is offline   Reply With Quote
Old 03-05-2004, 04:06 AM   #7
thaumaturgy
Macromedia Mercenary
 
thaumaturgy's Avatar
 
Join Date: Feb 2004
Location: Rose Bowl Country
Posts: 300
Send a message via Yahoo to thaumaturgy
Default

Also:

A lot of people just need to buy this book:

http://images.amazon.com/images/P/05...1.LZZZZZZZ.jpg

And memorize it, it'd answer 50% of the questions you'd have about AS. It's more than worth it's weight in gold. And it's cheaper than when I bought it! $38!
thaumaturgy is offline   Reply With Quote
Old 03-05-2004, 04:25 AM   #8
splict
spend my time in blender
 
splict's Avatar
 
Join Date: Oct 2003
Location: tampa, fl
Posts: 1,139
Default

Not to mention that the first edition is (at least was) freely available online, and I would believe, must be very helpful itself.
__________________

Certified Flash MX 2004 Developer
splict is offline   Reply With Quote
Old 03-05-2004, 04:32 AM   #9
thaumaturgy
Macromedia Mercenary
 
thaumaturgy's Avatar
 
Join Date: Feb 2004
Location: Rose Bowl Country
Posts: 300
Send a message via Yahoo to thaumaturgy
Default

Quote:
Originally posted by splict
Not to mention that the first edition is (at least was) freely available online, and I would believe, must be very helpful itself.
Was it? Damn, missed the gravy train that time...

Speaking of books, anyone read Robert Penner's book? Is it worth the $30-some-odd bucks?
thaumaturgy is offline   Reply With Quote
Old 03-05-2004, 04:41 AM   #10
splict
spend my time in blender
 
splict's Avatar
 
Join Date: Oct 2003
Location: tampa, fl
Posts: 1,139
Default

yeah, I don't think it was publicized but I found it through google. I just double checked my bookmark, and it is still there. I would post it, but since the main part of the site is in italian, I don't know if it is posted for public use or internal. Anyone else know if it is supposed to be freely available? That would be a good link to post, if so.

Don't think I've read any of Penner's, but I can only imagine that if he wrote them, they've got some good info.
__________________

Certified Flash MX 2004 Developer
splict 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 05:31 PM.


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