Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Saving variable to a text file.... multiple variables.
From: Brian Mackern
Date: Mon, 24 Jul 2000 18:59:41 +0100

> Ok folks, hopfully someone out there can help me... I have a "mini
program"
> that i am building to strictly make my life easier with creating a BUNCH
of
> txt files... I have 8 fields that need to be sent to a txt file, and then
> have the txt file be named by whatever is entered into the first field...
the
> first field is a product number, and its field name is "ProdIdent", and
every
> field after that is text1, text2, etc... How would i write the following
> script to enter in the information into a txt file that would represent a
> format that Flash can read (ProdIdent=2345&text1=gidget etc...) I have
> gotten the script to create the file, but it is named "prodident.txt", and
i
> do not not know how to make it save as whatever is entered into the
> "prodident" field... Also, it is only saving whatever is written in the
first
> text field (prodident).
>
> On (Press)
> fs command
>
("exec","command.com"&Chr(9)&"/c"&Chr(9)&"echo"&Chr(9)&"text1="&TypeVar&">c:
\w
> indows\desktop\products\prodident.txt")
> End On


Hi,

You have to set also the name of the file or directory as a variable.
For the text items the same.
Set them as variables and concatenate them as usual.

I've published an example in
http://www.internet.com.uy/vibri/Flash/save_w_variables.zip
I've made it to save by default on "c:\", but you can reconstruct the
variable "directory".
It saves three variables in the form:
text1=bla&text2=blabla&text3=blablabla.

It's not a very "tidy" solution, but I'm also trying to understand this
things... ;-)

Hope it helps :)


Brian:)
----------------------------------------------------------------------------
---------------------
Brian Mackern
/artef@ctos virtuales/web de la semana !!
http://www.elcultural.com/contenidos/webdelasemana/20000717.asp
http://www.internet.com.uy/vibri/
vibriatinternet [dot] com [dot] uy
----------------------------------------------------------------------------
---------------------



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Saving variable to a text file..., ComposiMo

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]