Have you changed the project properties to target FP10?
-----Original Message----- From: Florian Heft <mailingli...@fam-heft.de> Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] undefined "SampleDataEvent" Date: Sun, 05 Apr 2009 17:02:31 +0200 Hello everybody, 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): http://livedocs.adobe.com/flex/3/langref/flash/events/SampleDataEvent.html What am I doing wrong? Simplest reproducable code: --- <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import flash.events.SampleDataEvent; function sampleDataHandler(event:SampleDataEvent):void { } ]]> </mx:Script> </mx:Application> --- Best regards, florian heft ------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links