Flasher Archive

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


Subject: Re: FLASH: Problem with loading text into textfield
From: Helen Triolo
Date: Wed, 26 Apr 2000 18:32:49 +0100

OK, Thorvald, I tried Jason's suggestion and it worked. (I'll email you
the fla and txt file offlist if you want). Here's what I did:

Create textfield, name it nestedfield. Convert it to a movieclip mc2.
Make a red rectangle (just so there's something), convert to movieclip
mc1. Edit mc1, drag mc2 into mc1. Give that copy of mc2 an instance
name of mc2instance. Edit movie, drag mc1 onto the stage, give it an
instance name of mc1instance. Now in first frame do Load Variables
("myfile.txt", "/mc1instance/mc2instance") then goto and play showvars.
Frame showvars has mc1instance in it and has a stop action. (you should
also put a wait loop in the middle of those frames to make sure vars are
loaded, but i did it with just one var and tested locally so i didn't
need it). The contents of myfile.txt were:

nestedfield=abcdef

and the frame labelled showvars does indeed display abcdef in the
textfield. (and of course, when I changed the contents of myfile.txt,
the display changed accordingly on rerun).

So, you can load vars directly into your movie clip if your instances
are set correctly.

Helen
----------------------------------------
helen triolo � http://i-technica.com
designerati-technica [dot] com � 301-424-6037
----------------------------------------

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Seeking Developer for Flash Proje, Abraham Lloyd
  Re: FLASH: Problem with loading text int, Cheri Harder

Replies
  Re: FLASH: Problem with loading text int, Helen Triolo
  Re: FLASH: Problem with loading text int, Thorvald Neumann

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