we are working on an application that use a microphone.
We would like to show the the privacy settings panel, but without the tab microphone, camera etc, just the basic privacy panel.
Here the picture to make everything clearer:
SETTINGS WITH TAB
http://www.creativewave.it/settings_tabs.jpg
SETTINGS WITHOUT TAB
http://www.creativewave.it/settings_notabs.jpg
We know the if we use
mic:Microphone = Microphone.getMicrophone();
mic.setLoopBack(true)
we can have it.
The problem is that in this way the user hear his voice when speaks at the microphone,
and it's horrible for our application.
And if we use:
Security.showSettings(SecurityPanel.PRIVACY);
we get the privacy panel, but with the tabs.
Is there anyway to have SETTINGS WITHOUT TAB panel but WITHOUT using setLoopBack(true)?
Alternatively, is there a real way to use setLoopback(true) but without having the echo of the own voice? we did try A LOT of things for that but really without success.
thanks a lot.
Paolo
Try setting the volume of the mic to 0 using soundTransform & later increase it...
var st:SoundTransform = mic.soundTransform;
st.volume = 0;
mic.soundTransform = st;
Try muting the global audio right before calling Microphone.getMicrophone() Then turn the volume back up after the privacy box has been dismissed.
I think if you use Security.showSettings("2"); you will get what you want
Related
So, I'm pretty much a beginner in Flash and Actionscript (using AS3, as I said in the title), and I'm trying to make a basic escape the room game. I haven't gotten far, and right now that's because every time I test my game (or publish preview it) the graphics get this annoying outline. Here it is when tested: http://i305.photobucket.com/albums/nn228/chokingondrama/flash.png
Every outline corresponds to some object present in the game, most of which have an alpha component of 0 since they're on different sides of the room. This didn't happen before, but once I added the code that allowed the player to change their view with the arrow (each viewpoint/wall is a different frame) these appeared.
It's a little different when published to HTML, basically it just gives each image a white background: http://i305.photobucket.com/albums/nn228/chokingondrama/html.png
Also, it would be nice if somebody could give me advice on how to make sure importing to flash won't result in lower quality.
Thanks in advance. If needed, I'll post any part of the code.
Some tips:
Don't set alpha to 0, instead use the visible property, setting movieclip.visible = false will make it a lot more efficient.
As for the importing and quality, after you import to stage or library, bring up the library (ctrl + l), and right click on the file you imported, go to properties. If it's an image, set compression to lossless, and allow smoothing.
For audio, go to file-> publish settings, and change audio stream and audio event (whichever you might use) to 128kbps.
As for your main question, I need more info, if you want you can post your source. It might be because of how you are placing your graphics on the stage.
For each of your MovieClips in question:
Try disabling button mode and see if the rectangles go away.
movieClipName.buttonMode = false;
If that doesn't help, or you really want button mode, try setting
movieClipName.tabEnabled = false;
There's a chance that since you added keyboard interaction each of your MovieClips are now expecting to be selected by the user when they press the tab key, much like any normal web form.
tabEnabled in the docs
You could also try
movieClipName.focusRect = false;
focusRect in the docs
I added audio control on panel. I'm just settings its url and nothing else.
On running the app I can see the audio control and song is also played. I can do actions like play/pause/mute volume. Hovering on volume control i get volume changer seek bar but I am not able to change the volume. I am using chrome to test my application.
Any idea on how to handle volume change of audio control ?
thanks
If you want to change the volume programmatically,
you can use the 'setVolume' method on your 'audio' xtype element:
http://docs.sencha.com/touch/2-0/#!/api/Ext.Audio-method-setVolume
You just pass a float value between 0.0 (minimum) and 1.0 (maximum).
If you are talking about the automatic control panel, look at this fiddle:
http://www.senchafiddle.com/#fOAGD#CcDKl
I am testing this one in Chrome and I am perfectly able to change the volume using the native slider. I also added a custom slider to show you how you can do it programmatically.
Can you precise what your problem is?
i want to know how to disable the right click menu in the "incubator(FlashPlayer 11)"?
As i know, in the old version, we can use set wmod is "opaque" then the right click menu could be disable by a javascript.
But, in the "Incubator" we must set the wmod is "direct" could use the hardware render. So, how to disable the right click menu in the "Incubator"?
One method:
"Just add this to the html-file of the flashmovie, into the object tag of the flashmovie:
<param name=menu value=false>
That does it!"
Another method is to do so using AS3 code:
var custom_menu:ContextMenu = new ContextMenu();
custom_menu.hideBuiltInItems();
_root.menu = custom_menu
Sources:
http://board.flashkit.com/board/showthread.php?t=299218
http://forums.creativecow.net/thread/190/859287
This is something a quick and easy google search can reveal rather easily.
Available since Flash Player 11.2, you should be able to simply suppress the default context menu like so:
stage.addEventListener(MouseEvent.RIGHT_CLICK, function(e:Event):void{});
You can also download an example from Lee Brimlow or video guide if it helps.
I want to create a dialog or alert box, where a DisplayObject would take and force the focus, until an okay button or something releases the lock. thanks.
The easy way to do this is to make your "dialog" as big as the stage, with a whacking great transparent area around the dialog itself.
The transparent area can listen for any mouse clicks, and just swallow them (which will prevent them being picked up by stuff further back in the display list).
To show the alert, just stick it on top of everything else, When the user closes it, take it away again.
If you are using flex and actionscript, simply use a SkinnablePopUpContainer
var alt:CustomPopUp = new CustomPopUp();
alt.open(this,true) //the second variable is for modal, which will disable view
this.enabled = false; //this will grey out the parent view and provide visual focus to your popup.
To do this, you will need to disable access to all objects under your 'alert' DisplayObject. There are multiple ways of doing this, here 2 I can think off:
Loop through the display list and disable any display objects under your alert depth wise.
Cheat it with a blocker. When you display your alert, display another clip (could have alpha set to 0 ) that blocks the user from hovering/clicking objects. The blocker might need a bit of setup( buttonMode = true, useHandCursor = false, etc. )
This 'modal' behavior has been around for some so there might be no need to reinvent the wheel, depending of your current setup.
If you're using the Flex framework, you've got the functionality in, for Flash you can use the Alert Manager from the Yahoo! Flash Astra Components:
Goodluck,
Has anyone build a AS3 Camera-Select-algorithm, ready to use?
With MacBooks you have the problem that the build-in webcam is not rightly choosen from the webplayer.
You have to select the USP-Cam by youself from the list
DV Video
IIDC FireWire Video
USB Video Class Video
by
camera = Camera.getCamera("2");
THNX!
I found kind of a workaround here
You cant actually set the camera programatically. The best you can do is prompt the user to set it next to a video panel to show them if the camera they've chosen actually works. example here: http://www.neave.com/webcam/
to prompt them to change cameras you use:
Security.showSettings(SecurityPanel.CAMERA)
there is no event to wait for, though you can poll your video panel's bitmap data for changes and prompt the user behind the security panel when you think they've chosen the right camera.
Having done battle with this problem, I would suggest that everyone use this library.
https://github.com/cataclysmicrewind/CameraDetection/
Flash + webcam should = easy + awesome.
Unfortunately, it is pain + suffering.