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.

1 Answer 1

3

Change your compiler settings to version 10

default is 9

Sign up to request clarification or add additional context in comments.

1 Comment

i switched to 9 by mistake.. and was wondering what happened to my FileReference class. Thanks, saved my time.:)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.