2

Hi there I have a game in actionscript 3.0

I have been browsing the internet, I have found something like this

var file:FileReference = new FileReference();
file.addEventListener(Event.SELECT, _onRefSelect);
file.addEventListener(Event.CANCEL, _onRefCancel);

var ba:ByteArray = new ByteArray();
ba.writeUTFBytes(xmlUsers);

//save into drive
file.save( ba, "myXML.xml" ); 

But I get this error:

Call to a possibly undefined method save through a reference with static type flash.net:FileReference.

shanethehat
  • 15,460
  • 11
  • 57
  • 87
rcanu
  • 91
  • 1
  • 3
  • 9

1 Answers1

3

Change your compiler settings to version 10

default is 9

The_asMan
  • 6,364
  • 4
  • 23
  • 34
  • i switched to 9 by mistake.. and was wondering what happened to my FileReference class. Thanks, saved my time.:) – Vishwas Dec 09 '13 at 05:35