Skip to main content
Participant
February 16, 2012
Question

How to search from a file

  • February 16, 2012
  • 2 replies
  • 412 views

i have a text file that contains some information and i want to be able to read in the string from the file.

I know some c++ so kinda like how you would do a fscanf to obtain information.

anyidea how you would do this in actionscript. sorry really new to forums. actually first forums ive every signed up for

This topic has been closed for replies.

2 replies

Colin Holgate
Inspiring
February 16, 2012

Read this article to see how to use URLVariables:

http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cfd.html

That may not be as powerful as the fscan C++ features, so also read up on JSON. With that you could serialize a more complicated object variable, and reload it from the text file.

Participant
February 16, 2012

Thanks for the  help i'm going to try it and see if it can help me out. im rreally new so im trying to convert some html code to actionscript.