By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,272 Members | 1,045 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,272 IT Pros & Developers. It's quick & easy.

can I use a Microphone without importing the class?

P: 54
Hi,

I'm new to flex and trying to understand a tutorial by reading the code.
There is a line:
Expand|Select|Wrap|Line Numbers
  1. var mics:Array = Microphone.names;
Flex docs says that you need to import flash.media.Microphone but on the code they don't:
Expand|Select|Wrap|Line Numbers
  1. import mx.formatters.DateFormatter;
  2.    import flash.sampler.Sample;
  3.    import mx.events.SliderEvent;
  4.    import mx.events.FlexEvent;
  5.    import mx.collections.ArrayCollection;
  6.    import mx.events.ItemClickEvent;
Can I use the Micropone class without importing it?

Thanks
Jan 26 '09 #1
Share this Question
Share on Google+
1 Reply


Markus
Expert 5K+
P: 6,050
http://livedocs.adobe.com/flash/9.0/...=00000298.html

The best way is to read and test for yourself.

Microphone.names returns an array, by the way; you'll get a type mismatch error (change mics:Microphone to mics:Array).
Feb 14 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.