473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

can I use a Microphone without importing the class?

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
1 2074
Markus
6,050 Expert 4TB
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

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

Similar topics

1
by: | last post by:
Can I record voice via microphone... (what class???) ....and after send the voice to server? (With a Java Applet)
1
by: Thomas Aanensen | last post by:
Hi all. I'm sending a class over a socket connection, and I want to use this class at the new location. The problem is that I get a "module blah does not exist" error. Is it possible for me...
1
by: Ken Lemieux | last post by:
It's my understanding in order to mute the pc microphone from c# requires DirectX 9. Could anyone confirm this for me, and provide examples or technicle refrences where it may be discussed? ...
0
by: Dr. Zharkov | last post by:
Hello. The following program does not work for me: 1. We load components of Microsoft Agent and disconnect a computer from Internet. 2. In VB .NET we create the project, appears Form1. 3. On...
1
by: rajibnsu | last post by:
Hi, this is abu syed khan again. i want to write a program in c# that takes input from microphone and then give output through printer port. i can give output through a printer port. but the problem...
3
by: Porkie999 | last post by:
hi i created a program in vb.net 2005 that is meant to allow microphone activity i.e you read the lyrics to a song on the screen and you are meant to be able to sing to it through a microphone like...
3
by: stmfc | last post by:
how can a multithreaded code can be compiled succesfully without importing Thread class? the example below is taken from marcus green mock exam 1: public class Rpcraven{ public static void...
2
by: Ram | last post by:
Hello, I am trying to detect the USB device arrival and removal. I have registered to receive the device change message. I am able to get the interface class and also the name. But I am unable to...
0
by: roopaloswal | last post by:
Hi All, I need to record audio captured from microphone to the local file system .Is it possible? I am trying to use NetConnect() to connect to local file system. But its throwing error. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.