Hi

The bottom line is you can't for security reason.

Rationale

In order to give access to the microphone, Flash must display the privacy
settings dialog and get permission from the user to allow access to the
microphone and/or camerae etc.

This dialog is integral to the Flash player and is not a part of Director.

In order to display the dialog you must have a Flash sprite of at least a
minimal size required to display the privacy dialog. (see Lingo Dictionary
and Using Director manual or the online help).

In order to display said dialog, you must have the sprite set to DTS (Direct
To Stage) at least while the dialog is displaying. This prevents malicious
users from getting you to click through another sprite and onto a hidden
version of the dialog.

Each Flash sprite runs independently of each other and I do not believe the
settings are shared between sprites.. if so this could be a considered a
security risk as well.

Hope that helps you understand the issue

Sincerely
Mark R. Jonkman

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of torsten
> Sent: Thursday, October 09, 2003 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> microphone flash object without flash sprite
>
>
> hi all,
>
> i am trying to create a flash object which
> allows me to get the soundlevel from the selected
> input device (mic or line).
>
> it works fine, if i have a flashsprite on the stage
> which contains the following actionscript code (excerpt ):
>
> userMic = Microphone.get();
> this.createEmptyMovieClip("tracker", 1);
> this.tracker.attachAudio(userMic);
>
> the soundlevel can received in lingo:
> myObj=getvariable(sprite(1),"_level0",False)
> the_level = myObj.tracker.activityLevel
>
>
>
> BUUUUT it must be possible to get the input without
> importing a swf. its a question of elegance, i think.
>
> i can generate a flash microphone object in lingo using the flash xtra:
>
> the_mic = newObject("Microphone")
>
> and i can select my input device:
>
> my_mic  = the_mic.get(0)
>
> the problem is to read out the level information !
>
> my_mic.activityLevel always has the value -1
>
> the properties of my_mic seams to be ok ( my_mic.muted = 0 etc. )
> any ideas ? i am running director mx on mac os x
>
> best whishes backenbart
>
> [To remove yourself from this list, or to change to digest mode,
> go to http://www.penworks.com/lingo-l.cgi  To post messages to
> the list, email [EMAIL PROTECTED]  (Problems, email
> [EMAIL PROTECTED]). Lingo-L is for learning and helping
> with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to