user391370
user391370

Reputation: 31

flex 3.4 compile error when using FileReference object

When I using flex FileReference, in flex 3.4, I met a problem. The follows is my code:

public function save_click():void {

             var systemFileReference:FileReference = new FileReference();


            systemFileReference.save("test","testfile.txt");

        }

But it compile fails" invoke undefined method save in FileReference), I do not know why in Flex3.4 the FileReference does not support save() method?

Upvotes: 0

Views: 318

Answers (1)

Florian F
Florian F

Reputation: 8875

You need to target Flash Player 10.

Upvotes: 1

Related Questions