Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Flash content in Text Files |
| From: | 2Nerotik |
| Date: | Mon, 20 Sep 1999 02:25:11 +0100 |
yes in fact you can do this very easily.
It's what I've been playing with the last couple of days... you may have
seen my posts on questions I had about this same thing.
To do this you need to do the following:
1) Select where you want this text to appear (select or make layer & KF)
2) Select Type Tool... at the bottom of the type tool options there is a button
the has ab on it press it.
3) draw you type box as big as you want it to be to fit the text you will
be displaying
in it.
You should now have a white box with a small square on the right hand
bottom corner
4) Select your Arrow button go back over the box you just made, right clik
and select
properties. Select the properties you want the box to have and make note of
the
variable name and it should at this point say "TextField1"... You'll need
it later.
Property Options: To kill the white background you now have uncheck "Draw
Border..."
the rest of the options are pretty straight forward... Except 1...
"Outlines" To get the lettering
to be bold, italics etc. check the middle check box "Include All Font
Properties"
5) Create your text file in your plain text editor... in this example I'll
use foo.txt for the
file name.
the first thing to appear in your file is "textfield1=" without the quotes
of course
all text after this is what will appear in the field you created in steps 1-4.
If you use the ENTER key to go to the next line you will get and extra
blank line when the
text is shown in the Flash movie... so instead of this (quotes are only
used here to distinguise
example from rest of text):
"This text will appear in the Flash movie.
Don't you think this is kewl."
You will get this instead:
"This text will appear in the Flash movie.
Don't you think this is kewl."
To avoid this you must use %0 before you hit the ENTER key.
So your full text file will look like this:
textfile1="This text will appear in the Flash movie. %0
Don't you think this is kewl."
The %0 is not required IF you want a blank line to appear tho... so if you
want the
text seperated by a blank line the leave out the %0 and just press ENTER.
6) To make this text appear in the Flash movie you now need to do the
following.
a) If using a button to trigger the text do this:
--> Properties --> Actions --> Load/Unload Movies
---> select "Load Variables into Location"
---> URL window enter the name of the text file in this case foo.txt
---> if loading from the main stage select Location Level and enter 0
if loading from a MC select Location Target and leave blank
So if loading from the main stage the action should now look like this:
Load Variables ("foo.txt", "0")
If from a MC it should look like this:
Load Variables ("foo.txt", "")
b) If you want the information to load automatically enter all info in
6a into the
frames properties rather than a buttons properties.
NOTES: the text field and frame (or button) calling the Action to display
the text
should be on the same time line ie. if the frame calling the
action is in frame 10
then the text field (created in steps 1-4) should also be in
frame 10 (not necessarily
on the same layer)
Also You may reuse the Text field (steps 1-4) by calling different text
files to it using the same
text variable from a different button.
ie... button A may have Load Variables ("foo1.txt", "0")
and button B may have Load Variables ("foo2.txt", "0")
with both text files containing the text variable "textfield1="
One will just be displaced by the second.
Does that help you at all =c) sorry can't help on the second question.
At 10:15 AM 9/20/99 +1000, christopher [dot] j [dot] trott
>Hi one and all,
>
>I have been lurking here for a while, and have contributed where I could over
>the last couple of months.
>But despite my best efforts to date, I have been unable to get something
>working...
>
>I was hoping therefore to cast my question before you, my esteemed, and
>learned
>flash fellows (and fellowettes :-P)
>
>I would like to be able to have my flash prog dynamically load text from a
>text
>file. ie
>
>In my dream world, my flash movie could say have 2 text objects, one in blue
>text, one in red text, I could have two text files on the server..
>"red.txt" and "blue.txt" I would be able to change the text in my text files,
>and the changes would magically be reflected in my flash movie.
>
>Does 4 allow this, or do I have to get genereator ?
>
>as a second question : I havn't quite got the pass variable's through the URL
>thingo yet, how would I get my flash movie to interact with a database or
>ASP ?
>(another generator candidate ?)
>
>Well, I do appreciate feedback from you all !
>
>I can be reached on cynwulf
>forward
>to your comments.
>
>Many thanks,
>
>Chris
>
>
>
>
>------------------------------------------------------------------------
>To UNSUBSCRIBE send: unsubscribe flasher in the body of an
>email to list-manager
>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-manager
.oOo.
|| Gene Police: YOU.. Out of the pool !
||
|| Addicted 2 Swing ---> http://www.nisa.net/~2nerotik/
|| Fontaholic ? ---> http://www.fontsanon.com
|| HTML Writers Guild ---> http://www.hwg.org
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
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-manager
Replies
FLASH: Flash content in Text Files, christopher.j.trott
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

