Mic comboBox xy positions wrong in page load at first time....

i made a camChooser using camboBox component.
every thing is fine. but first time (page loading) camCombo(video combo) component x,y positions is ok, but micCombo(mic) x,y positions going to  0, 0.
after i refresh the page then going to correct position.
What is the wrong...?
please help...?
Code:
//====================Video SetUp ==========================
var cam:Camera = Camera.getCamera();
cam.setMode(canWidth, camHeight, camFPS, false);
cam.setQuality(camBW, camQuality);
cam.setMotionLevel(10, 2000);
videoDisp.attachCamera(cam);
videoDisp.smoothing = true;
var DDTextFormat:TextFormat = new TextFormat();
DDTextFormat.size = 10;
DDTextFormat.font = "Arial";
var camCombo:ComboBox = new ComboBox();
addChild(camCombo);
camCombo.textField.setStyle("textFormat",DDTextFormat);
camCombo.dropdown.setRendererStyle("textFormat",DDTextFormat);
camCombo.x = 130;
camCombo.y = 180;
camCombo.width = 110;
camCombo.height = 20;
for (var i:uint = 0; i < Camera.names.length; i++)
          camCombo.addItem({label:Camera.names[i], data:i});
setdropdownwidths();
function setdropdownwidths()
     var selectindex:Number = camCombo.selectedIndex;
     var maxLength:Number = 0;
     var j:uint;
          for (j = 0; j < camCombo.length; j++)
          camCombo.selectedIndex = j;
          camCombo.drawNow();
          var currText:String = camCombo.text;
          var currWidth:Number = camCombo.textField.textWidth;
          maxLength = Math.max(currWidth,maxLength);
     camCombo.selectedIndex = selectindex;
     camCombo.dropdownWidth = maxLength + 20;
camCombo.addEventListener(Event.CHANGE, onSelectCam);
function onSelectCam(event:Event):void
          cam = Camera.getCamera(camCombo.selectedItem.data);
          videoDisp.attachCamera(cam);
          videoDisp.smoothing = true;
          cam.setMode(canWidth, camHeight, camFPS, false);
          cam.setQuality(camBW, camQuality);
          cam.setMotionLevel(10, 2000);
//====================Audio SetUp ==========================
var micCombo:ComboBox = new ComboBox();
addChild(micCombo);
micCombo.textField.setStyle("textFormat",DDTextFormat);
micCombo.dropdown.setRendererStyle("textFormat",DDTextFormat);
for (var k:uint = 0; k < Microphone.names.length; k++)
     micCombo.addItem({label:Microphone.names[k], data:k});
micCombo.x = 130;
micCombo.y = 158;
micCombo.width = 110;
micCombo.height = 20;
micCombo.addEventListener(Event.CHANGE, onSelectMic);
var mic:Microphone = Microphone.getMicrophone();
init();
function init()
     mic.gain = 60;
     mic.rate = 11;
     mic.setUseEchoSuppression(true);
     mic.setSilenceLevel(15, 1000);
function onSelectMic(event:Event):void
     mic = Microphone.getMicrophone(micCombo.selectedItem.data);
     init();

i'm facing same problem.....
but i getting first time this error
Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
          at broadcaster_fla::MainTimeline/frame1()[broadcaster_fla.MainTimeline::frame1:177]
177 line is
177:      for (var m:uint = 0; j < Microphone.names.length; j++)
178:          {
179:                    micCombo.addItem({label:Microphone.names[j], data:j});
180:                   micCombo.dropdown.rowHeight = 15;
181:                    micCombo.dropdown.horizontalLineScrollSize = 5;
182:         }

Similar Messages

  • Calling a Flash object HTTPS (  only in IE, not loading the first time )

    Hi everyone !
    I'm trying to call a flash object from a bsp page, I've uploaded the flash into the mime repository (via the SE80). It works quiet well in Firefox, but with IE, i need to refresh the page, it won't load the first time i access the page.
    Does anyone has any idea ?? do i have to customize something within the SICF ?
    thx for the help
    merry Xmas
    Quentin

    Solved it, I created a page to call the flex from the MIME
    here it is :
    DATA: w_xstring TYPE xstring.
    DATA: w_mimetype TYPE string.
    * References
    DATA: w_url TYPE string.
    CONCATENATE 'sap/bc/bsp/sap/Z0008/' url  INTO w_url.
    CALL FUNCTION 'Z_FLEX_MIME'
      DESTINATION sy-sysid
      EXPORTING
        url        = w_url
      IMPORTING
        l_xstring  = w_xstring
        l_mimetype = w_mimetype.
    response->set_data( w_xstring ).
    navigation->response_complete( ).
    EventHandler Oninitialization :
    sap/bc/bsp/sap/Z0008/ is the url to my swf file in the SICF
    Module Function  Z_FLEX_MIME
    FUNCTION Z_FLEX_MIME.
    *"*"Interface locale :
    *"  IMPORTING
    *"     VALUE(URL) TYPE  STRING
    *"  EXPORTING
    *"     VALUE(L_XSTRING) TYPE  XSTRING
    *"     VALUE(L_MIMETYPE) TYPE  STRING
    * References
    DATA: lo_mr_api TYPE REF TO if_mr_api.
    * instantiate MIME API class
    CALL METHOD cl_mime_repository_api=>if_mr_api~get_api
      RECEIVING
        r_mr_api = lo_mr_api.
    * Get file from MIME repository
    CALL METHOD lo_mr_api->get
      EXPORTING
       i_url             = url
      IMPORTING
        e_content         = l_xstring
        e_mime_type       = l_mimetype
      EXCEPTIONS
        parameter_missing  = 1
        error_occured      = 2
        not_found          = 3
        permission_failure = 4
        OTHERS             = 5.
    ENDFUNCTION.
    If you have any questions please fell free to ask
    good day
    Quentin
    Edited by: Quentin Dubois on Feb 6, 2008 5:55 PM

  • TS1702 I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to rein

    I have contacted EA about this and can find no help. I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to reinstall it. During the process you sign in and approve the purchase KNOWING that another window will open saying that you have previously purchased it and that there is no charge. So what happened this time? It will not connect and all of my saved and current games are wiped out. I want my money back, this game interface is pretty junk and operates like some ancient DOS program,,bug,bug,buggy. I want my money back.

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • In advanced search page for the first time choices value disapper

    Hi,
    I have a problem with advanced search page, in the advanced page for the first time choices field values are disapper when refresh page then all of the choice fileds value ara appear
    Thanks;

    You can create a test case based on the JHS Demo (shipped with JHeadstart 10.1.2.2) or the HR Schema (see http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html#setuphrschemaanddata). Please e-mail it to [email protected],
    * removing the cabo folder from the web root (public_html) before zipping it, it makes the zip much smaller
    * renaming the .zip file to something like .zipped, otherwise our mail server will not process it
    * including detailed steps to reproduce the problem.
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Auto submit page only on first time load

    hi all.
    i ve a requirement to display a report for a particular value of an LOV. now the problem is, until i dont submit the page, report do not show for the first displayed value of LOV. so i need to submit page so that a default report is displayed for the first value being displayed in my LOV. i have used following function in page's after footer processes:-
            begin
            htp.p('<script type="text/javascript">');
            htp.p('document.wwv_flow.submit();');
            htp.p('</script>');
            end;
    guess what.....? my page freaks me out by refreshing again and again and again..............same old GW BASIC infinite-loop-hang-up type thing............
    plz help me up

    Hello,
    no wonder your code results in an infinite loop. A submit means that the page gets reloaded, and the code is executed each time the page loads. Remove that code.
    As for the intial problem, try setting the source value of your select list to the desired value.
    Regards,
    Dirk

  • Scrolling issue with Sharepoint 2010 in brower IE9 and Chrome sp.ribbon.js is not loading at first time

    The scroll bar does not appear on the loading of the sharepoint site. It appears only after refreshing 2 or 3 refreshes. We have found that SP.Ribbon.js does not load on page load it gets delayed as it appears after the refreshing.
     We have tried various CSS work around but could manage to get the scroller in browsers but the ribbon will not still appear. from CSS we are able to bring scroller but its a Page scroller but ribbon wont work, somehow we need to load sp.ribbon.js after
    all webpart loads at one server request by the browser.
    if any more information  required please get back to me.
    we tried.
    http://kyleschaeffer.com/sharepoint/sharepoint-2010-scrolling/ 
    http://www.greggalipeau.com/2011/01/28/a-better-enhanced-sharepoint-2010-floating-ribbon/
    http://www.webpoint0.com/blog/fixed-width-layouts-scrollbar-ribbon-sharepoint-2010/

    No answer for this issue?

  • Cannot get the parameter from a HTML page at the first time

    Hi everyone,
    I have a html page with <input name="username" ...>, and the submit action is a url to my JSF web application. In the start page of the JSF webapp, I use following code to get value of username.
    FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance();
    String userName = (String)facesContext.getExternalContext().getRequestParameterMap().get("username");
    However, I cannot get it at the first time. The strange thing is if i click "refresh" button, the value of username is shown up on my page.
    Why? and How to solve it?
    Thanks in advance,

    Hi,
    Are you putting this code in the public void preprocess() method?
    Check out
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/app_model.html
    The assumption is that Creator is being used.

  • JSF: Accessing Page for the first time

    Hi,
    I found out that accessing a JSP page(developed with JSF tags ) for the first time does not display any output. Either the page has to be refreshed or re-submitted. Am I missing something here or is it a known functionality ?
    Configuration
    Web-Container: Tomcat 4.1
    IDE: Jbuilder 9.0
    Regards,
    Priyesh

    Hi,
    I found out that accessing a JSP page(developed with
    JSF tags ) for the first time does not display any
    output. Either the page has to be refreshed or
    re-submitted. Am I missing something here or is it a
    known functionality ?You need to access the page behind a "/faces" prefix. For example, if you've got JavaServer Faces component tags on a page named "/foo.jsp", your URL should be something like:
    http://localhost:8080/myapp/faces/foo.jsp
    Craig

  • Certain website does not load page on the first time in Firefox 31

    Hello,
    When I start Firefox 31 after loading Windows or again after clearing internet cache, this particular bookmark of mine " http://mdotnetpublic.state.mi.us/drive/ " won't load the web page. All you see is a blank screen and a spinning wheel.
    However, if I click on the reload button the page then loads correctly.
    I don't have this problem with any of my other bookmarks.
    Does anyone know what the problem might be? Thanks for your help.
    MBR9743

    Hi cor-el,
    Yes the problem has reappeared, so I tried bypassing the cache for my Windows computer as you suggested: Hold down the Shift key and left-click the Reload button, or "Ctrl + Shift + R" (Windows) I then clicked on my bookmark (http://mdotnetpublic.state.mi.us/drive/ ) and I still see a blank screen and a spinning wheel. This seems to go on indefinitely. But like before I posted the question, when I click the reload button it forces the page to load right away.
    [running Firefox 32]
    I appreciate your quick responses, and look forward to more suggestions. I'll also search the support pages for information about my problem.
    Thank you.
    Mbr9743

  • I keep getting a box saying 'this URL is invalid and cannot be loaded' sometimes the page loads at other times I'm blocked. It's very annoying

    It happens with many sites on a daily basis and is so annoying that I'm considering going back to Explorer. Sometimes the site appears and so does the box (sometimes with multiple boxes and I must delete each one before I can continue. On other occasions I'm blocked and cannot open the page

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Firefox does not load the first time I click on it -- a script appears which ischrome://webvideodownloader/content/utils.js:131 -- when I stop this script running I can then load firefox -- how can I keep this script from running

    I can still load it with the script running or attempting to run in the background but it makes firefox tremendously slow. After I click on stop running the script then everything seems to be ok.
    how do I get the script not to run in the first place.

    In Firefox the use of the term chrome refers to the user interface and other elements that are not part of the web pages.
    See https://developer.mozilla.org/en/Chrome
    Your problems seems to be caused by the GreaseMonkey extension.<br />
    See [[Troubleshooting extensions and themes]]

  • Everytime I start up it goes to the mozilla start page, as if first time started

    Everytime I sart firefox it shows the start up page. If I change the home page, when I shut down, then start back up again, it changes to the firefox start page.
    I also see a skype page for a little bit

    The "<b>MetaStream 3 Plugin r4 </b>" extension has been reported to cause this issue.
    * https://support.mozilla.com/kb/Troubleshooting+plugins
    See also:
    * [/questions/832793]

  • Error while loading data first time in DSO

    Hi I was trying to load data to ODS from PSA i got following error,
    Please help me on how to resolve
    Error in the ABAP Application Program
    The current ABAP program "GPD84AP5MBQCZCCQ7O3GICVIWAY" had to be terminated
      because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "/MPR/SAPLBIH_ACCOUNTING60 " in
      include "/MPR/LBIH_ACCOUNTING60U04 " in
    line 103:
    ""/MPR/BIH_HWK_ZUO" is not defined in the ABAP Dictionary as a table, p"
    "rojection view, or database view."*
    The include has been created and last changed by:
    Created by: "STRAEHLT "
    Last changed by: "STRAEHLT "
    Error in the ABAP Application Program
    The current ABAP program "GPD84AP5MBQCZCCQ7O3GICVIWAY" had to be terminated
      because it has
    come across a statement that unfortunately cannot be executed.

    Thanx Bilvanth,
    You are right table is not activated.
    when i checked  the table i got following message
    Table /B96/AROA200 is not available ,create the table ?
    Earlier As I need just  one Infocube for reporting i have activated the required info-cube and related info object..so the required table should also be created..
    /MPR/BIH_HWK_ZUO is a view having 2 tables.. one is activated ..other is not Created ( /B96/AROA20)
    what should be my approach now..i dont know what fields should be there if i have to create the table manually

  • JFileChooser slow to load the first time...

    Is it possible to speed up the JFileChooser on it's initial load or should I just put a worker thread around it to "pretty up" the display?

    Hi
    I may have a workaround for you. Se my discussion on the topic in:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=307332
    Enjoy!

  • When itunes  load   for first time ,the  ios operating system  load    automatically?

    I connect my  ipod for first time ,and   download itunes, but   an  operating system doesnt show  in  settings /general/ doesnt appears software?? 
    can somebody   tell me   what  to do  ? or  if  my  ipod  may be  is not working properly? and any time  I try to download an apps , read   need  ios5.

    What then does show?
    Did you setup/activate the iPod? You have to do that via wifi (for newer ones) or conneft to iTunes and restore
    iTunes: Restoring iOS software

Maybe you are looking for

  • Sales invoice print out

    hi experts. we are  3 plants for our concern and  we are prepared the sales invoice through t-code j1ip , when we are shifted the materials from one plant to another plant .it could not print the customer address in the to block. but when we are shif

  • Z68a-GD65 (G3) Problems Using USB Bootable Tool 1.25g

    I am having problems using the USB Bootable Tool 1.25g with the P77, P80, and P82 BIOS's. I have tried both modes 1 and 2. Both modes copy over everything successfully. When booting using the bootable USB drive, after copying the BIOS file via mode 1

  • Portal activity report, which tables in database?

    Hi, Could someone say, which tables in database have information for Portal Activity Report? I need to build my own report which I cant build using standart Portal Activity Report template. great thanks

  • I want product costing related documents

    Hi I want product costing related documents, material..when i can download full producting, internal orders, profit centers, cost centers related... Thank you

  • Annoying mouse issues of cs6 and cs5.5 on mountain lion

    Hi everyone, a couple month ago, a mac pro bought, which has mountain lion. i installed cs5.5 and for a while i have started to fight with mouse issues. illustrator, indesing and photoshop, all of them has mouse lag. photoshop has also freezing when