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

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 but on the code they don't:
Expand|Select|Wrap|Line Numbers
  1. import mx.formatters.DateFormatter;
  2.    import flash.sampler.Sample;
  3.    import;
  4.    import;
  5.    import mx.collections.ArrayCollection;
  6.    import;
Can I use the Micropone class without importing it?

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

Expert 5K+
P: 6,050

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.