Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Flash AS question about loadvariables?

Hello, I'm trying something , if someone know whats the problem please help me. Here is my codes;

_root.loadVariables("results.txt");

var f1:String;

trace(f1)

results.txt is like that

&f1=blabla

This trace gives me UNDEFINED

How can i fix it ?

Update:

I already did that but still same

1 Answer

Relevance
  • 1 decade ago
    Favorite Answer

    you are defining f1 AFTER already loading it, so you end up redefining it. move the line:

    var f1:String

    to BEFORE loadvariables

    Source(s): pooping good code for years
Still have questions? Get your answers by asking now.