Old 21-01-2004, 08:10   #1 (permalink)
dixon
Custom User Title
 
dixon's Avatar
 
Join Date: Apr 2003
Location: Brighton
Posts: 628
text files

can anyone tell me how to load a external text file into flash?
__________________
Dixon
  Reply With Quote
Old 21-01-2004, 08:12   #2 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
  Reply With Quote
Old 21-01-2004, 08:17   #3 (permalink)
dixon
Custom User Title
 
dixon's Avatar
 
Join Date: Apr 2003
Location: Brighton
Posts: 628
yer i seen that but i dont want to use a button.
__________________
Dixon
  Reply With Quote
Old 21-01-2004, 08:20   #4 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
have you tried just taking the 'on (release)' function out of the code and seeing if it works.
  Reply With Quote
Old 21-01-2004, 08:23   #5 (permalink)
dixon
Custom User Title
 
dixon's Avatar
 
Join Date: Apr 2003
Location: Brighton
Posts: 628
nope because i dont know where to put the actions
would it work if i just shove it in the 1st frame?
__________________
Dixon
  Reply With Quote
Old 21-01-2004, 08:23   #6 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
yeah it should do.
  Reply With Quote
Old 21-01-2004, 08:28   #7 (permalink)
dixon
Custom User Title
 
dixon's Avatar
 
Join Date: Apr 2003
Location: Brighton
Posts: 628
excellent! thanks mate!
__________________
Dixon
  Reply With Quote
Old 21-01-2004, 08:30   #8 (permalink)
dixon
Custom User Title
 
dixon's Avatar
 
Join Date: Apr 2003
Location: Brighton
Posts: 628
oh i forgot to ask what about if i wanted to load values from a text file?
__________________
Dixon
  Reply With Quote
Old 21-01-2004, 08:33   #9 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
sorry i aint quite sure, if you don't get a reply here, best to ask the question on kirupa forum, or http://www.flashdevils.com/
  Reply With Quote
Old 21-01-2004, 12:13   #10 (permalink)
flatcat
beauty through chaos
 
flatcat's Avatar
 
Join Date: Jul 2003
Location: Vancouver, British Columbia
Posts: 775
Text Files

_root.loadVariables("yourTextFile.txt");

put that in one of your frames and that will load your text file to your flash movie

you can load different variables into flash by separating with an & sign, for example:

myName=David Ronnie&myWebSite=http://www.theflattestcat.com

you can do this as many times as you like, just making sure that you place an & before the next variable name you like as that is how flash interprets a new variable name, then all you do to call it is go:

_root.myName or _root.myWebSite
__________________
audentes fortuna iuvat
Flatcat
  Reply With Quote
Old 21-01-2004, 12:18   #11 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
Quote:
Originally Posted by flatcat
you can load different variables into flash by separating with an & sign, for example:

myName=David Ronnie&myWebSite=http://www.theflattestcat.com

you can do this as many times as you like, just making sure that you place an & before the next variable name you like as that is how flash interprets a new variable name, then all you do to call it is go:

_root.myName or _root.myWebSite

until you're working with a dynamic site where you're passing queries within the url - then you'll have to load xml not txt.
  Reply With Quote
Old 22-01-2004, 09:34   #12 (permalink)
dixon
Custom User Title
 
dixon's Avatar
 
Join Date: Apr 2003
Location: Brighton
Posts: 628
thanks guys!
but is there a way to make the imported text anti alias?
__________________
Dixon
  Reply With Quote
Old 22-01-2004, 11:29   #13 (permalink)
flatcat
beauty through chaos
 
flatcat's Avatar
 
Join Date: Jul 2003
Location: Vancouver, British Columbia
Posts: 775
Quote:
Originally Posted by Brown
until you're working with a dynamic site where you're passing queries within the url - then you'll have to load xml not txt.

Quote:
Originally Posted by flatcat
_root.loadVariables("yourTextFile.txt");

put that in one of your frames and that will load your text file to your flash movie

you can load different variables into flash by separating with an & sign, for example:

myName=David Ronnie&myWebSite=http://www.theflattestcat.com

you can do this as many times as you like, just making sure that you place an & before the next variable name you like as that is how flash interprets a new variable name, then all you do to call it is go:

_root.myName or _root.myWebSite


Indeed, but he asked about passing values through a text file
__________________
audentes fortuna iuvat
Flatcat
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8