Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-07-2001, 10:57 PM   #1
dubelclique
Registered User
 
Join Date: Jun 2001
Posts: 6
Lightbulb

i'm loading text into a flash movie from an external .txt file. that's all fine and good, but there are a few non alpha#ic characters that get rendered improperly. is there any way to code them in the .txt (perferably without checking the 'html' select box and doing it that way...?

any and all urgent help would be GREATLY appreciated.
dubelclique is offline   Reply With Quote
Old 06-08-2001, 06:45 AM   #2
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

in flash:
Code:
myVar = escape("this string has non-chars @^#&*")
then write that variable's contents to your file. Also remember to search the forums as we've dealt with this many times. In fact if you search you will find some opens ource by me which writes a text file with the escaped vars in it to save you having to copy and paste.

PS - the reverse is unescape() but it's prolly not necessary when loading variables in as Flash will most likely read them is as the special chars they are.
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 06-08-2001, 01:49 PM   #3
dubelclique
Registered User
 
Join Date: Jun 2001
Posts: 6
Thumbs up fantastic

thanks very much!
dubelclique 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically loaded JPG files do not load in AOL browser cmbarsotti Other Flash General Questions 11 06-06-2005 09:55 PM
How do I: Create a variable from a dynamically loaded Jpg? coopster ActionScript 2.0 1 02-02-2005 01:28 PM
Positioning dynamically loaded content Nole ActionScript 1.0 (and below) 2 12-30-2004 09:26 AM
preloader for dynamically loaded JPG poopski ActionScript 1.0 (and below) 8 02-07-2003 04:00 AM
resize dynamically loaded JPGs? ajitmenon ActionScript 1.0 (and below) 5 12-26-2002 05:08 AM


All times are GMT. The time now is 03:44 AM.

///
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.