Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Re: Strange Read From Text File Problem |
| From: | John Croteau |
| Date: | Tue, 28 Dec 1999 01:39:59 GMT |
Hi David,
> I am reading in a value from a text file that will determine a movie to load
> into _level1 from another url. Here is the scenario:
>
> data.txt
> ***************************************
> &movie=template1.swf
> &color=red
>
> ***************************************
>
> Now from another movie in the same folder as the data.txt file I am calling
> out to the text file data.txt and reading in the variable movie. This has
> always worked fine on other projects for me however I tried for about a day
> to debug why when I read in the value of movie eventhough when I show the
> value on the screen it looks correct what could be wrong! I managed to fix
> my problem somewhat by editing the text file a bit until it worked and this
> is how it had to be:
>
> data.txt
> ***************************************
> &movie=template1.swf
> ***************************************
>
> It ONLY worked when I took all of the data below the &movie=template1.swf
> out! I can have as many lines above it as I want but if I have data below
> it messes up!
>
> I NEED to be able to have lines of data setting varibales below it just by
> the way this project works..
>
> Does ANYONE know WHY this might be happening?????
Should be as follows with no other garbage.
Line returns are sent as part of the variable and can mess things up.
movie=template1.swf&color=red
A technique that has been suggested is terminating lines with & or %0,
the %0 technique has not been documented to work in all cases:
data.txt
&movie=template1.swf&
&color=red
--
Co-author of Flash 4 Web Animation F/X and Design
Autographed copies now available - http://www.crownmall.com/Flash4/
----------- -----------------------
John Croteau croteau
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central (The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
Re: FLASH: Re: Strange Read From Text Fi, David Doggett
Replies
FLASH: Check for plugin, Nelson Rothermel
FLASH: Site check, Stef-Alogia
Re: FLASH: Site check, Jerry Sullivan
FLASH: Re: Strange Read From Text File P, David Doggett
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

