Microhpone work in swf but not projector(exe)

I have an actionscript use to record voice from microphone, it work fine in swf but if i publish it as projector (exe) it won't work anymore, even the "adobe flash player setting asking for camera and microphone access" box din't appear.
Below is my actionscript, is it because of the classes i use or projector(exe) won't support microphone.
Help! Thanks in advance.
import flash.media.Microphone;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.SampleDataEvent;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.utils.ByteArray;
var _mic:Microphone;
var _sndBytes:ByteArray;
var _snd:Sound = new Sound();
var _channel:SoundChannel = new SoundChannel();
_mic=Microphone.getMicrophone();
_mic.rate=44;
_mic.setSilenceLevel(5);
_mic.gain=70;
_mic.setUseEchoSuppression(true);
mc_recorder.btn_startrecord.addEventListener(MouseEvent.CLICK,startRecording);
mc_recorder.btn_stoprecord.addEventListener(MouseEvent.CLICK,stopRecording);
mc_recorder.mc_equalizer.addEventListener(Event.ENTER_FRAME,updateEqualizer);
function startRecording(evt:Event):void {
    _sndBytes = new ByteArray();
    if (! _mic.hasEventListener(SampleDataEvent.SAMPLE_DATA)) {
        _mic.addEventListener(SampleDataEvent.SAMPLE_DATA, getMicData, false, 0, true);
function getMicData(evt:SampleDataEvent):void {
    _sndBytes.writeBytes(evt.data);
function stopRecording(evt:Event):void {
    _mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, getMicData);
function updateEqualizer(evt:Event) {
    mc_recorder.mc_equalizer.gotoAndStop(_mic.activityLevel);

Check you publishing settings and parameters.

Similar Messages

  • My Fullbrowser Portefolio Website work in SWF but not work in HTML

    Hi people
    First of all I am not very good in English language.
    I created my portfolio website in flash as3, with javascript (SWFAddress and SWFObject), with contact form with PHP, and XML Gallery.
    When uploading all the files into the correct folders for the server, the first times I view the site in browser it works correctly, the browser reads the HTML without any problems.
    However I tested it on firefox, safari, ie, google chrome, and it just did not work in google chrome, so I tried to solve the problem, beginning to see where the error was in the HTML file.
    I copied the original file, because that original file I knew it was working properly in other browsers, and started to make changes. I managed to get google chrome to open the HTML correctly but then did not work in firefox and safari.
    So I decided to eliminate this html file and continue with the original file. I'll test again and something happen! The file browser can't read XML, everything else works correctly, alltransitions are correct, the animations are correct.
    I try with the SWF and it opens the XML Gallery, I try with the HTML and it does not open.
    I don't know what to do, can you guys help me?
    Thanks!

    If the swf file is in a different folder than the html file, then it is might be a problem with targeting the XML file in the swf.  When you place an swf file in an html page, anything that swf tries to load has to be targeted as if the swf file is in the same folder as the html.  It does not have to live in that same folder, but it has to act as if it does.

  • Flash hyperLinks work in Swf but not HTML

    I have Flash CS3 and created the movie. When I preview the
    movie in Flash all the links work fine and launch the relevant
    webpage that I am linking to. However when I preview the movie in
    HTML some of the links don't work, the mouse pointer changes as if
    the link is there but clicking does not launch the web page.
    I have checked that the javascript file is in the publish
    directory and can't figure what is missing.
    Any suggestions appreciated

    Wizardfromoz wrote:
    > I have Flash CS3 and created the movie. When I preview
    the movie in Flash all
    > the links work fine and launch the relevant webpage that
    I am linking to.
    > However when I preview the movie in HTML some of the
    links don't work, the
    > mouse pointer changes as if the link is there but
    clicking does not launch the
    > web page.
    > I have checked that the javascript file is in the
    publish directory and can't
    > figure what is missing.
    > Any suggestions appreciated
    Did you test it online?
    For security reason and due to not so recent changes in
    browser and player,
    some things do not work locally, only on line in real time.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Multi-Slide Synchronized Video Working in SWF - but not HTML5

    We have a module that has 8 slides that contain Multi-Slide Synchronized Videos, each of which are contained on 1 slide (as seen in the screen shot.)
    When we publish the project, the swf version works fine. However, the first html5 video shows up, then none of the others do.
    We first tried inserting the video as an "Event Video" but when we tried that, in html5 there were no controllers at all for the in-slide video. This breaks our spec because the client needs cross browser and mobile device combatability.
    Any clues as to why the video isn't even appearing after the first slide in html5?

    No controllers showing here either. Controllers show and work in preview mode, but when publishing to Html5 then playing on Ipad, video in slide plays once, but now controls visible...can't pause. stop or rewind...
    Dave

  • Flash Player works in Safari but not Internet Explorer 9

    I've installed Flash Player 10.3 and it works in Safari but not Internet Explorer 9. When I look in Manage Add-Ins I see Flash Shockwave but not Flash Player. My operating system is Windows Vista Ultimate (32bit). Safari is 5.0.5 and IE 9 is 9.0.8112.16421. I've tried uninstalling and re-installing Flash Player and uninstalling Norton 360. Nothing has worked so far. Can you help?

    Thank you for your reply. Shockwave is loaded and enabled.
    The files in flash directory are: a folder called FlashPlayerTrust: file, flash10q.ocx: file, FlashInstall.log; file, FlashUtil10q_ActiveX.dll; file, FlashUtil10q_ActiveX.exe, file, install.log.
    There is no file: NPSWF32.dll.
    When I test the browsers I get no spinning logo in either Safari or IE9. Safari says: missing plug-in, where I think the logo should be. IE-9 says nothing at the same location.
    Thanks.

  • Slide show works on PCs but not on Macs

    A parent at the school where I teach has just created a
    website for us. She used Dreamweaver and photoshop to create it.
    There are some pages where there should be a looping slide show
    (that runs on its own). These slide shows work on PCs but not on
    Macs (it just stays on one photo on Macs). For the slide show she
    "just added a timeline to the jpg image, changing the imagesource
    every 60 frames, that you can do in dreamweaver." Is there some way
    to fix this so it works on both?
    Here's the school's website: www.smash.smmusd.org

    Unfortunately, the timeline function may not be the best way
    to do this.
    Notwithstanding Joe's comments about 508 compliance, there
    have been issues
    reported in the past regarding the use of timelines on Macs.
    It may be
    better to seek some 'banner rotation' scripts using Google,
    and replace the
    timelines with that script. Your volunteer may or may not
    know how to do
    that....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Joe Makowiec" <[email protected]> wrote in
    message
    news:[email protected]..
    > On 16 Jun 2007 in macromedia.dreamweaver, Mana Hale
    wrote:
    >
    >> A parent at the school where I teach has just
    created a website for
    >> us. She used Dreamweaver and photoshop to create it.
    There are some
    >> pages where there should be a looping slide show
    (that runs on its
    >> own). These slide shows work on PCs but not on Macs
    (it just stays
    >> on one photo on Macs). For the slide show she "just
    added a timeline
    >> to the jpg image, changing the imagesource every 60
    frames, that you
    >> can do in dreamweaver." Is there some way to fix
    this so it works on
    >> both?
    >>
    >> Here's the school's website: www.smash.smmusd.org
    >
    > I'd worry about accessibility/Section 508 issues before
    I worried
    > about slideshows. That page is all images.
    >
    >
    http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&url1=http%3A%2F%2Fwww.sma sh.smmusd.org%2F
    >
    http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=2&url1=http%3A%2F%2Fwww.smas h.smmusd.org%2F
    >
    > --
    > Joe Makowiec
    >
    http://makowiec.net/
    > Email:
    http://makowiec.net/contact.php

  • Flash work in preview but not in the browser!?

    Hi there:)
    I have a .swf file in a table in Dreamweaver. When I preview it in place and in Safari, it plays. When I upload eveything, it is not in any browser on the server.. any ideas?
    Thanks!
    V

    Hi John!
    Yes, sorry about that.. here it is.
    http://farmingtonfarm.com/appraisal.html
    Thanks for your help!!
    v
    Date: Thu, 8 Apr 2010 18:52:05 -0600
    From: [email protected]
    To: [email protected]
    Subject: flash work in preview but not in the browser!?
    Can't really help without a link to the site. Can you provide one?
    >

  • Custom F4 help in a BSP application working in Mozilla but not in IE

    Hi,
    I have created a custom F4 help in a BSP application.
    It is working in Mozilla but not in IE. I tried enabling javascript as well but still it is not working.
    Can someone please suggest a possible solution for this?

    Hi,
    See simmilar discussion in thread /thread/1883519 [original link is broken]
    I think this may be helpful for you.
    Thanks,
    Chandra

  • Why does the counter work in MAX, but not Labview?

    Please help, I have been away from Labview for over 3 months, and I am quite rusty....
    Last year, I successfully configured NI9401 to measure period (seconds) by counting the rising edges of my sensor signal.  Since then, I have aquired a new PC, and loaded all my software into it, including the Labview VI's that successfully worked on the old computer.
    I can see the digital signal using MAX and the test panel for the NI9401, so, I know my wiring and my TTL signal is OK, but, when I try to run the attached VI, nothing happens except the error below..  How do I tell this VI to look for the signal on MOD3/CTR0 and channel 14?
    Thanks. I am sure it is a small adjustment...this worked fine a few months ago...not sure what is wrong now.
    Thanks,
    Dave
    Solved!
    Go to Solution.
    Attachments:
    continuously measure period buffered_singlechannel_forum_feb_23_2012.vi ‏20 KB

    OK, now.  Resolved the issue. The vi is fine, but, some shaky wires were identified...worked in MAX but not in the vi.  Now that the connections have been tightened up, it works for both.  Sorry for the inconvenience.
    Dave

  • Works on emulators but not on mobile devices

    Hello,
    My project works on emulators but not on mobile devices (no image and on Samsung it says "unsupported file").
    Please help, I don't know what to do. My configurations: MIDP 2.1, CLDC 1.1.
    Thanks in advance.
    Edited by: Vitali.pom on Oct 27, 2011 12:01 PM

    Edit: I succeeded to solve it accidentally. I did the following: Sign the jar in Netbeans, clean and build, the jar didn't work, I wiped out the .ks from the jar and clean and build again. Now it worked.
    Edited by: Vitali.pom on Oct 30, 2011 1:28 AM

  • Wifi works at home but not when away from home

    My Wifi works at home but not when away from home, what is wrong?  I thought with a phone plan I didn't need to have a wifi connection.

    You either need WiFi or Cellular (or both). If you have neither, you can't connect to the internet.
    Most people use WiFi at home and Cellular while away from home, or connect to public WiFi networks where there are some.

  • Can't FaceTime anymore?  iPad states wifi connected and iPhone 4 states not connected?  I have wireless in my home? Not sure what happened.  Password works for iPad but not on phone?

    iPhone won't connect to wifi.  iPad is connected.  Password working on iPad but not on phone.  Can't upload software update of IOS 7.1 because phone not connecting to wifi?

    Connect iPhone to computer and open iTunes.  You will be prompted to update to iOS 7.0.  Keep your phone connected until the update is finished.

  • My apple id works on itunes but not on my ipod touch, what gives ?

    my apple id works on itunes but not on my ipod touch, what gives ?

    What are you trying to do on the iPod?
    Have you went to Settings>Store and sign out and then sign back in?

  • Album Art works for most, but not all

    I was reading previous forums on the subject, but no clear answer was given..
    The album art shows up fine in itunes and my library and works for most of my music on my ipod, but how come some album's art does appear? I have it set manually and select 'Get Info' then 'Artwork' and add it from there, then drag in the finished product to my ipod. I've been doing that and it works fine for most of the albums, but every so often, the album art will not appear on my ipod. Am I doing something wrong? I take them all from the same source (amazon.com) but it makes no sense to me how some randomly don't appear.
    I tried deleting the artwork and re-adding it, but nothing happened again. If you could answer why it works for most but not all or how I can get the album art to appear for the ones it will not by re-doing something, it would be appreciated. thanks.

    I encountered the same problem in the beginning. When I compared the size of the original images, the working ones seemed to be smaller in general, so I reduced the size of all covers I intended to upload on the pod to 300x300 pixels.
    This seemed to work - for 2 days. I bought the pod on friday, had pictures on sunday, but on Monday (after the first time the pod was fully discharged) none were left left.
    So I ended searching this forum for related problems...
    And decided to join my problem to this entry.

  • How to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?

    how to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?
    == This happened ==
    Every time Firefox opened
    == Always

    Check with your web mail service provider for help with that issue.

Maybe you are looking for

  • How do I copy my old profile folder to a new computer with Firefox 4?

    Hey, I saved my old profile folder from my previous Firefox 4 installation on my old computer. I installed FF4 on the new computer. I tried placing the old profile files on the new profile folder, but when I start Firefox, it doesn't show any of my p

  • I would like to know how to extract my old contacts from the iTunes backup? Please explain in basic english i am a beginner

    I have had my old Iphone 5s replaced with a new one but I would like to know how to extract my old contacts from the iTunes backup? Please explain in basic english i am a beginner

  • Variable Exit for YTD using posting period

    Hi Friends, I need to calculate the YTD amount per user entry, i.e., when user enters the posting period value as 5 the Actual value should calculate the amount for posting period 5 and Actual YTD value should calculate the amount from Period 1 - 5.

  • Im desperate....

    my itunes on my computer was erased and all my songs gone. i currently have all my songs still on my ipod. if i insert my ipod into my computer will tunes automatically erase all my songs? is there anyway to transfer all my songs on my ipod to itunes

  • Condition Type Rounding Rule

    Hi all, All my condition types have rounding rule as Commercial. When the client was checking calculation after billing in the accounting document; for VAT condition type, it is rounding below. For example; VAT amount is 2164.989; it should round as