1 Reply Latest reply on Apr 5, 2009 6:30 PM by injpix

    [Flex3] Undefined "SampleDataEvent"

      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):

      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">
      import flash.events.SampleDataEvent;
      function sampleDataHandler(event:SampleDataEvent):void

      Best regards,
      florian heft

      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 :/