Rajeev
Rajeev

Reputation: 46979

class not found in Actionscript error

I am trying to run the program from http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf61c8a-7ff4.html

I am using Adbobe builder version 4.6 i encounter this problem WAVwriter class not found when i do import com.adobe.audio.format.WAVWriter;

Also var outputFile:File = File.desktopDirectory.resolvePath("recording.wav"); File type is not found..

How to resolve this error

Upvotes: 0

Views: 204

Answers (2)

Varnius
Varnius

Reputation: 1517

Exactly as Adnan Doric said. And if you want to output your file using Flash Player runtime (instead of AIR), you should use flash.net.FileReference class. Calling its dowload() method will pop up an external dialog which can be used to save your file.

Upvotes: 1

a.s.t.r.o
a.s.t.r.o

Reputation: 3338

File is an AIR class, make sure your project is for desktop or mobile (AIR). If not, you can make new desktop project by going to File/New/Flex Project... and check in the Desktop checkbox (for mobile, choose Flex Mobile Project).

Regarding WAVWriter, make sure you linked the related sources.

Upvotes: 0

Related Questions