Flasher Archive

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


Subject: Re: FLASH: A Variety of Questions
From: Nigel Randsley-Pena
Date: Fri, 3 Sep 1999 01:22:50 +0100

Rachel,

Second batch then ;)

As I told you before you do have to try and forget your lingo when in
Flash.
The process as you described :
"get line 1 of "updated.txt" and put it into x
put x into myTextField"
With Flash the updated.txt file will have to contain pairs of
variable_name=variable_value.
Each pair is seperated from the, possibly, next one by the '&'
character.
An example of the contents of an updated.txt file could be something
like :
name=widget&price=2.50&quantity=10
This defines three variables, name, price and quantity.
To get these variables into Flash you would do a Load Variables.
In the action scripting area choose Load movie then select Load
Variabels into location. In the URL box place the url to your
updated.txt file, this can be an absolute or relative path.
For location choose Level and use 0 instead of the default 1. In the
variables drop down box choose Don't send.
When this action is performed Flash will locate the updated.txt file
open it and read it's contents. This will instanciate the three defined
variables that will from now on be available to you.
To get one of these values to appear in a textfield you can either give
that textfield the same name as that of one of the variables or set the
textfield's value to the value of one of the variables. So if you had a
textfield called price it would be filled with the value 2.50, and if
you had a textfield called 'something_else' then you could do
Set Variable "something_else"=:name and it would be filled with the
value widget.
Notice how Flash uses ':' to reference a variable. There is more to this
of course but try to get this first idea working and progress from here.

Anything else just give a shout on the list ans someone will answer you.

Nigel

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: A Variety of Questions, Rachel Bachman

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