I'm playing around with the new sound capabilities of Flash10 and wanted to try out an example I found on the internet.
Basically, I ported the "DynamicSoundSample1" from http://www.adobe.com/devnet/flash/articles/dynamic_sound_generation/ to Flex 3.
But I keep getting the error "Flex error: type was not found or was not a compile-time constant: SampleDataEvent".
Indeed, Flex Builder also doesn't show SampleDataEvent in the code completition of "import flash.events.".
According to the LiveDocs, SampleDataEvents should be available in Flex 3.3 (and I recently updated the SDK to 3.3 and updated the project options):
What am I doing wrong?
Simplest reproduceable code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
PS: the new forum's great, i rly like it ... just had problems posting this and had to reformat the whole post
Message edited, because first post was totally messed up by the new forum :/
In FB, navigate to:
Project > Properties > Flex Compiler
In the 'HTML wrapper' section, the 'Required Flash Player version' must be greater then or equal to version 10.0.0.