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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:flexcoders-dig...@yahoogroups.com 
    mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    flexcoders-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to