Stage.focus.id doesn't work

Hello,
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" applicationComplete="comp(event)" xmlns:s="library://ns.adobe.com/flex/spark">
<mx:Script>
    <![CDATA[
      public function comp(event:Event):void {
        stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
public function mouseUpHandler(event:MouseEvent):void {
  are.text=stage.focus.id;
    ]]>
  </mx:Script>
<s:VGroup paddingLeft="15" paddingTop="10">
  <s:TextInput width="400" id="inp"/>
  <s:TextArea width="400" id="are"/>
</s:VGroup>
</mx:Application>
I have a message error (InteractiveObject property) , thanks.

Stage.focus is too low-level, try getFocus().id

Similar Messages

  • Focus ring doesn't work of my Instant

    I just got my Instant VF-0040. However, the focus ring doesn't work. I couldn't figure out who is in front of the webcam. Is something wrong with this product? If it is the quality problem of my webcam, can I replace it? Thanks,

    http://osxdaily.com/2014/06/22/iphone-camera-not-working-press-fix/

  • "Print each stage of builds" doesn't work as expected

    Hi,
    I try to create a pdf of my slides. Therefore I use the print dialog and save the slides I want as pdf. I also want to "Print each stage of builds" which produces some unexpected result. If I use the option "Print each stage of builds" the numbering of the slides seems to change.
    Example:
    1. Make a presentation with three slides.
    2. Put three lines of text on every slide (e.g. "Slide I / Line I" for the first line of text on the first slide and do it this way for every slide and line. This will give you unique information on the output.)
    3. Add an animation for every line to appear after a mouse click
    4. Print slide 3 to 3 and select the option "Print each stage of builds"
    Question: Whats the output of the pdf?
    Answer: The first slide with two lines .
    But this is definitely not what I want if I want to print slide 3, especially if you have a presentation with about 290 slides (for a lecture) and you want to print only a few of them.
    Is there a workaround?
    regards,
    Wolfgang

    The forum just suggested https://discussions.apple.com/message/7081392#7081392 and https://discussions.apple.com/message/9099305#9099305 — don’t know how I missed those before, since they seem to be the same problem.
    Those are from 2008 and 2009. Anyone from Apple reading this? Worth writing a Radar?
    -- Mike

  • Line Drawing Script on Stage doesn't work in MovieClip?

    I have a little snippet of code that allows the user to create a line with the mouse, and clears the line if they end up touching the hitbox with the mouse, while they're drawing the line. It works fine when it's just thrown onto the main timeline. However, when I try to encapsulate it within a movie clip, it suddenly doesn't work. At all. Are there any suggestions as to why this is happening? Here's the code.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    var drawing:Boolean;
    var my_line:MovieClip = new MovieClip();
    this.addChild(my_line);
    drawing = false;//to start with
    stage.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
    stage.addEventListener(MouseEvent.MOUSE_MOVE, draw);
    stage.addEventListener(MouseEvent.MOUSE_UP, stopDrawing);
    function startDrawing(event:MouseEvent):void
    //move to the correct starting position for drawing
    my_line.graphics.lineStyle(3,0xFF0000);
    my_line.graphics.moveTo( mouseX, mouseY);
    if (drawBox.hitTestPoint(mouseX,mouseY,true))
      drawing = true;
    function draw(event:MouseEvent)
    if (drawing)
      my_line.graphics.lineTo(mouseX,mouseY);
      if (oneHitBox.hitTestPoint(mouseX,mouseY,true))
       my_line.graphics.clear();//remove line
    function stopDrawing(event:MouseEvent)
    drawing = false;
    Thanks for any help you can offer!

    Oh! Haha, sorry, brainfart. That is all of the code that I use in that particular frame, where I want the user to be able to draw within the confines of the box. The only other code I use are for the drag and drop boxes, meant to be dropped onto a particular area. Those are working just fine, but if you want to see that code too, then:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    /* Stop at This Frame
    The Flash timeline will stop/pause at the frame where you insert this code.
    Can also be used to stop/pause the timeline of movieclips.
    stop();
    /* Drag and Drop
    Makes the specified symbol instance moveable with drag and drop.
    lunchOff.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    function fl_ClickToDrag(event:MouseEvent):void
    lunchOff.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    function fl_ReleaseToDrop(event:MouseEvent):void
    lunchOff.stopDrag();
    if (lunchOff.hitTestObject(dropBoxTwo))
      if (offDuty.hitTestObject(dropBoxThree) && onDuty.hitTestObject(dropBoxOne) && lunchOff.hitTestObject(dropBoxTwo))
       gotoAndStop(16);
       stage.focus = aBox;
    else
      lunchOff.x = -548.95;
      lunchOff.y = -306.15;
    /* Drag and Drop
    Makes the specified symbol instance moveable with drag and drop.
    offDuty.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_2);
    function fl_ClickToDrag_2(event:MouseEvent):void
    offDuty.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_2);
    function fl_ReleaseToDrop_2(event:MouseEvent):void
    offDuty.stopDrag();
    if (offDuty.hitTestObject(dropBoxThree))
      if (offDuty.hitTestObject(dropBoxThree) && onDuty.hitTestObject(dropBoxOne) && lunchOff.hitTestObject(dropBoxTwo))
       gotoAndStop(16);
       stage.focus = aBox;;
    else
      offDuty.x = -557.0;
      offDuty.y = -155.95;
    /* Drag and Drop
    Makes the specified symbol instance moveable with drag and drop.
    onDuty.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_3);
    function fl_ClickToDrag_3(event:MouseEvent):void
    onDuty.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_3);
    function fl_ReleaseToDrop_3(event:MouseEvent):void
    onDuty.stopDrag();
    if (onDuty.hitTestObject(dropBoxOne))
      if (offDuty.hitTestObject(dropBoxThree) && lunchOff.hitTestObject(dropBoxTwo))
       gotoAndStop(16);
       stage.focus = aBox;
    else
      onDuty.x = -539.00;
      onDuty.y = 39.45;

  • Stage.focus doesn't show cursor in TextField?

    stage.focus = txt; // txt is a text input field
    It successfully gives the TextField "txt" focus because when
    I type, the characters appear in the input textfield, however the
    familiar blinking text cursor/beam does not appear in the
    textfield. This makes you think it does not have focus, so you
    click the textfield to give it focus -- completely defeating the
    purpose. What's the deal?

    Doing some searches online I found myself asking this
    question over at asctionscript.org over a year ago. :)
    http://www.actionscript.org/forums/showthread.php3?t=143111
    No one figured it out back then but I revived the thread and
    I think someone identified the issue:
    The SWF must have system focus for the blinking text
    cursor/carat to appear.
    In the browser, SWFs do not have focus until you click on it,
    or force focus using javascript's focus() function.
    What I don't understand is why the Flash Player in the IDE
    doesn't start out with focus -- it seems to start out with a sort
    of half-focus.
    The project I'm working now is in AIR, though. Again, it's
    surprising that the AIR SWF doesn't start out with focus, but I
    also have no idea how to programatically give the SWF focus from
    AIR.

  • How do you close a dragged applet, as Stage.close() doesn't work?

    I'm trying to implement a close button in a draggable applet, but Stage.close() doesn't work, and there's an odd little "X" icon which is causing me problems...
    My starting point and example is the simple draggable applet from the API documentation. It's the code listed under "User-Specified Close Example":
    http://java.sun.com/javafx/1.2/docs/api/javafx.stage/javafx.stage.AppletStageExtension.html
    import javafx.scene.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.paint.*;
    import javafx.scene.shape.*;
    import javafx.scene.text.*;
    import javafx.stage.*;
    var textContent = "Click the box to return to the browser";
    var outside: Boolean = false;
    var s: Stage = Stage {
        title: "AppDeploy Demo"
        width : 300 height : 200
        style: StageStyle.TRANSPARENT
        opacity: 0.5
        scene : Scene {
                content: [
                    Text { content: bind textContent 
                           x: 25 y:35 fill: Color.BLACK
                           font: Font{size: 24}
                    Rectangle { x: 100 y: 100 width: 100 height: 100 fill: Color.RED
                                onMouseClicked: function(e: MouseEvent): Void {
                                    s.close();
        extensions: [
            AppletStageExtension {
                shouldDragStart: function(e: MouseEvent): Boolean {
                    return e.shiftDown and e.primaryButtonDown;
                useDefaultClose: false
    }However, the Stage.close() function in the user code doesn't seem to close the applet once it's dragged. It seems this can only be achieved by a mysterious little "X" in a box top right, acting as a close button.
    Here's a demonstration of the problem once you've compiled that code:
    1. Open browser with applet (I'm using IE8 on Windows XP)
    2. Shift-drag the applet out of the browser. Notice the little X in a box appears when you drop the applet on the desktop.
    3. Click the red rectangle to invoke the Stage.close() function in the user code.
    4. Applet disappears from screen and does not reappear in the browser.
    5. But minimising all the icons on the desktop shows the little X in a box is still there sitting on your desktop (actually I find the X has gone, but the box is still there). This suggests the applet is still running.
    6. Close the browser. The little X's box is still on the desktop.
    7. After a short pause a Java dialog box appears: "Desktop integration warning. The application would like to create shortcuts. Do you want to continue? OK/Skip" The applet wasn't closed, it is still running!
    8. Click Skip. Dialog box disappears. But the little X's box is still on the desktop. Is the applet still running?
    9. Try to recompile app again into a deployable Jar (I'm using Eclipse for this).
    10. The compiler stops with "ERROR: Jar file C:\[...].jar could not be deleted. The Jar is probably locked by running application, Web browser, emulator or antivirus. Please check that all windows related to the application have been closed." Yes, the applet Jar is still being used.
    11. Minimise all the windows. The little X's box is still on the desktop.
    12. Click the little X's box.
    13. After a few seconds the box disappears. Does this mean the applet is no longer in use...?
    14. Recompile the app again into a deployable Jar. It works!
    By the way, you get the same experience with another Sun sample: the DraggableMP3Player at
    http://javafx.com/samples/DraggableMP3Player/index.html
    That, too, thinks it's implementing it's own close button, and again the same problem occurs.
    So it seems Stage.close() doesn't properly close the applet, and only the the little X in a box will do this.
    I'd like to be able to really close the applet from my own code. How can I do this?
    Many thanks
    Nik
    Edited by: nik.silver on Aug 6, 2009 12:48 PM

    After double tap home button, swipe up on the app card that appears above the icon.

  • Iphone 5 back camera problem after update to IOS 8. Focus doesn't work on back camera!

    My device is Iphone 5 64gb IOS 8.
    I have problem after update to IOS 8. When i run camera.. I hear some scratch inside my phone. And focus of back camera doesn't work.
    1. How can i fix it?
    2. Or how to rollback to IOS 7+ ?
    3. Should i come to app store with this problem?

    I'm having this same problem too.  Worked fine prior to iOS update.  I contacted Verizon this morning who advised that this is a known issue.  They suggested I backup my device, and perform a factory data reset.  When prompted to update to iOS 8 again, re-installation has been known to resolve the issue.  With all the problems with iOS 8, camera, and overall device slowing, I might just wait for a follow on SW turn.

  • Move focus between elements of browser page doesn't work with JVM 1.6.x

    Hi,
    why JVM 1.6 doesn't support accessibility?
    with JVM 1.5_10 or above it's possible to move from elements of IE browser page with tab and enter and exit from applet
    with JVM 1.6 or using plugin 1.6 this is not more possible.
    with plugin 1.6 and JVM 1.5 applet can gains focus but it doesn't release it
    with JVM 1.6 applet doesn't gain focus and all keyevents are intercepted from browser.
    to make my applet and page accessible I need to move focus between elements of browser page with tab,
    and enter and exit from applet.
    Just because my users can't use mouse but only keyboard.
    Note that FireFox doesn't work at all, even if bug seems fixed https://bugzilla.mozilla.org/show_bug.cgi?id=93149
    (you can watch a recorder right sample here on: http://www.vista.it/ing_vista_0311_video_streaming_accessibile_demo.php)
    Please advise.

    Hello Carl,
    some things are so easy if some one takes place the clou. I clear all cache information in the firefox browser and all is working fine.
    Thank you very much and have a nice weekend.
    Regards
    Thorsten

  • During video recording the auto focus doesn't work automatically!i must have a tap on the display for to use the autofocus! Ihave an iphone 4s

    during video recording the auto focus doesn't work automatically!i must have a tap on the display for to use the autofocus! Ihave an iphone 4s

    I know.  Same issue here.  When I'm not recording but have the video camera on, the autofocus works fine.  As soon as I tap the record button and recording starts, the focus is locked until I tap on the screen to focus.  I haven't used the camera all that much because of this problem.

  • HT4623 I try to update ios to 6.1 but it doesn't work and now iphone gone to factory mode from initial stage and upon when am connecting to itune its not getting thru, kindly advice

    I try to update ios to 6.1 but it doesn't work and now iphone gone to factory mode from initial stage and upon when am connecting to itune its not getting thru, kindly advice

    From the Firefox help files;<BR><BR>
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.

  • HELP! Uploading AS3 Game to server, no sound and Spacebar doesn´t work HELP!

    Hello, relatively new to AS3 and flash, this is the first time i am publishing anything. We are trying to upload our simple flashgame to our webserver, the game works perfectly fine locally save for one thing. We get an error regarding TLF which says it wont stream or something. So when it gets online, no sounds play and spacebar doesn't work, left and right arrow does work. We have three TLF text fields that are used to update score, lives and show you final score. If i turn these into classical text they stop working.
    Things we have tried: Changing default linkage from RLS to Merged into code, changing the text boxes to classical text(they then stop working), made sure the paths are correct(all files are in the same directory including the .swz file)
    This is the code from the soundclass:
    package 
        import flash.net.URLRequest;
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import flash.events.*;
        public class MySound
            private var bgSound:Sound;
            private var fireSound:Sound;
            private var waterSound:Sound;
            private var earthSound:Sound;
            private var lightSound:Sound;
            private var soundChannel:SoundChannel;
            public function MySound()
                soundChannel = new SoundChannel();
                bgSound = new Sound();
                var req:URLRequest = new URLRequest("BackgroundSound.mp3");
                bgSound.load(req);
                //fire
                fireSound = new Sound();
                var req2:URLRequest = new URLRequest("soundFire.mp3");
                fireSound.load(req2);
                // water
                waterSound = new Sound();
                var req3:URLRequest = new URLRequest("soundWater.mp3");
                waterSound.load(req3);
                // earth
                earthSound = new Sound();
                var req4:URLRequest = new URLRequest("soundEarth.mp3");
                earthSound.load(req4);
                // light
                lightSound = new Sound();
                var req5:URLRequest = new URLRequest("soundLight.mp3");
                lightSound.load(req5);
            public function playBgSound()
                soundChannel = bgSound.play(0, 999999);
            public function stopBgSound()
                soundChannel.stop();
            public function playFireSound()
                fireSound.play();
            public function playWaterSound()
                waterSound.play();
            public function playEarthSound()
                earthSound.play();
            public function playLightSound()
                lightSound.play();
    I can somewhat get that sound can bugg out, but why does spacebar stop functioning? ANy help is greatly appreciated as this has to be delivered in twelve hours(published online) for a school assignment.

    Also might add publishing it locally in my own browser everything works, as does ofcourse playing it in flash itself. Changing from RLS to merged into code stops the error from coming, but doesn´t fix the problem on the server.
    Code from main class related to sound and spacebar:
    import flash.display.*;
        import flash.events.*;
        import flash.ui.Keyboard;
        import flash.text.TextField;
        import flash.media.Sound;
        import flash.net.URLRequest;
        import flash.events.MouseEvent;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        public class main extends MovieClip
            private var fireTimer:Timer; //delay between shots
            private var canFire:Boolean = true;
            private var mySound:MySound;
            private var bulletSpeed:Number = -450;
              public function main()
                //load sounds
                mySound = new MySound();
            private function playGame(event:MouseEvent)
                gotoAndStop(2);
                // initialize
                myLives = 5;
                myHitsNo = 0;
                weaponType = 1;
                mybullets = new Array();
                enemys = new Array();       
                myScoreTxt.text = "Score: " + myHitsNo;
                myLivesTxt.text = "Lives: " + myLives;   
                fireTimer = new Timer(400, 1);
                fireTimer.addEventListener(TimerEvent.TIMER, shootTimerHandler, false, 0, true);
                stage.addEventListener(KeyboardEvent.KEY_DOWN, listenKeyDown);
                stage.addEventListener(Event.ENTER_FRAME, addEnemy);
                stage.addEventListener(Event.ENTER_FRAME, checkCollision);   
                player = new thePlayer(stage.stageWidth-40, spawnPoint2);// stage.stageHeight/2);
                stage.focus = player;
                addChild(player);
                mySound.playBgSound();
    public function listenKeyDown(event:KeyboardEvent)  // Controls and weapontype selector
                if (event.keyCode == 37) //left
                    player.movethePlayerDown();
                if (event.keyCode == 39) //right
                    player.movethePlayerUp();
    if (event.keyCode == Keyboard.SPACE) //space
                    shootBullet();
                    //soundFX.attachSound("Pistol Fire.wav");
                    //soundFX.start();

  • My Canon MX 922 does not scan. My printer is connected via cable. Wireless doesn't work either.

    My Canon MX 922 does not scan. My printer is connected via cable. Wireless doesn't work either.  I get an error message with multiple suggestions but none of them apply to my situation.
    I am so dissatisfied with this printer.  I'm sorry I got it from Amazon because now it is a hassle to return it.  I will never buy another Canon.
    The printer menus are confusing.  I hate using it.  I loved my previous Canon which finally stopped working after many years, that's why I purchased a newer Canon model.  Never again.  Stick with cameras.
    Marcy Hotz

    This note won't be as angry and frustrated as the last one...
    Because I still had my old printer drivers and other applications on my hard drive, I think the application was trying to connect with the old printer.  I deleted all the old stuff.
    I also had several scanning applications on my drive which just confused me.
    When I used the actual Canon MX922 application, I was able to scan but could only save as JPG, TIF or BMP (and one more, I forget which).  So I did some research on the Canon site and found out how to save documents as PDF files using the Canon IJ Scan Utility.
    It works now.  So I'm satisfied, will keep this maching.  I just had to take some time, sit down and focus on the problem.

  • Replay video in Muse (some controls doesn't work)

    Hello colleagues,
    Can't understand what is happening. I put a video in the Animate and assign controls for buttons (for example, replay video from 0:00 sec). For stage and video autoplay function are disabled.
    Then I export the oam-file and insert it into the Muse with a Scroll Effect "Edge Animate" (Autoplay) to play the video at a certain point. Video starts correctly, but some controls doesn'n work, for example, "replay video". Along with this function "Toggle video play/pause" works correcly.
    Actually, I want to loop video playback but it doesn't work in the Muse (Loop function for a video).
    Can anybody recommend a solution?
    Thanks!

    Hello Joe,
    This is very interesting, but when I upload the project from Muse to my FTP-server, everything is working properly in all of browsers, all of controls and loop for the video clip. I found it by accident when I lost all hope. In other words, the problem is only when previewing the page in a browser (via the built-in local server). Maybe this is a question for the team Muse? Anyway I can send it in PM.
    Thanks for your reply,
    Alexander

  • Lightbox (jQuery Lightbox Evolution) made in Adobe Edge, doesn´t work in Adobe Muse (oam file)

    Hi!, I got a problem that I can´t fix it, or I don´t know how to do it in Adobe Muse.
    First I have the Jquery Lightbox Evolution ready to do it in Adobe Edge.
    I could work the lightbox in Edge perfectly doing this:
    1. I added the JS files of the Jquery Lightbox Evolution into EDGE :
    2. I wrote this code in STAGE - COMPOSITIONREADY:
    yepnope({load: "js/lightbox/themes/classic/jquery.lightbox.css",complete: function() {}});
    3. I wrote this CLICK code into the blue box animation;
    {$.lightbox("images/4.jpg");return false;};
    4. Now, if I do a Preview, and if I click into the blue box animation, appears the Jquery Lightbox Evolution, like I want:
    5. Perfect, I publish the project like an Animate Deployment Package (.oam) to import this into Muse.
    6. Now the problems begins, I import the Edge animation into my Muse project, but when I see the preview of my page, the lightbox doesn´t work, Muse don´t recognize the lightbox CSS file because I see something like that:
    The blue box animation work perfectly into Muse!, but when I click on it and when it should appear the Jquery Lightbox, happens that problem, Muse don´t recognize the CSS file and the "lightbox" appears INTO the box animation, like if I put a "_self" code.
    Really I don´t know how to fix that, should import the CSS file into Muse? should write a code into Page Properties- Metadata?, write a code inserting a HTML?, change some code in Adobe Edge?
    Thanks!!!!

    I´m sorry, but any ideas how to fix that?

  • [SOLVED] Xmonad: trasparency doesn't work with compton intel

    Dear All,
    I am having a strange issue with Xmonad and I am not sure whether it is a problem of my Arch or Xmonad configuration. I decided to ask on Arch forum first, as my other computer running Arch has exactly the same Xmonad setup and it works fine. I would appreciate assistance from some Xmonad or Arch proficient users on this.
    Basically, I have this piece of code in my xmonad.hs:
    myLogHook :: Handle -> X ()
    , logHook = myLogHook dzenLeftBar >> fadeInactiveLogHook 0.8
    On the other computer this makes all the unfocused windowses slightly transparent. I find this feature very useful as it helps me focus on the window I am working with.
    For some reason this doesn't work on my laptop. My laptop is using xf86-video-intel since the lspci gave me
    %lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 03)
    Also I am invoking compton-git from AUR but I have also tried with xcompmgr in my xinitrc and it gave exactly the same result - no transparency whatsoever.
    I looked through my log file, but couldn't find anything relevant (please let me know if you can think of anything). How do I proceed with this issue? Do I try different composite managers? Do I try different drivers? Is there anyhting in X setup that I should include? Please let me know if you have any ideas.
    Last edited by AlmostSurelyRob (2013-06-18 10:18:08)

    I am very sorry. I've just discovered that neither compton nor xcompmgr were installed. It's not only solved, it should be marked as [NOT RAISED]. I was migrating my configuration and overlooked some erm... details.

Maybe you are looking for

  • How to add indent to here tab in the string

    hello friends, i want insert SpecialCharacters.INDENT_HERE_TAB; into the string object, how can i insert. my javascript code is as follows, function (commentText,authorQueryTextFrame,queryNumber) {       //queryNumber and commentText are of string ty

  • Create list item in parent site when list item is created in child site?

    SharePoint online - Can I create a list item in a parent site when a new list item is created in child site? Possible with workflows?

  • Visual Age 3.5 + windows 2000 + integration KIT 5.1 beta

    I can manage running Weblogic server in VA 35 integration kit with windows 2000. (it's work with NT4). I get the error immediately error : java.lang.unsatisfiedLinkError no server validator in java.library.path

  • Error Message during order confirmation.

    Hi PP Gurus, In the mapping of MTO process scenario and it's simulation I am using 2 BoM components  as the NON-VALUATED (MATERIAL TYPE) for this I have made only 'Quantity Update' indicator ON in IMG settings. After MRP run and at the time of Produc

  • Currency key relationship

    hi,    i m working on pm module alv report. i m using mara, mbew,marc, ausp, and makt. according to functional spec currency key is in t001 table (WAERS). but i m not getting any relationship to add into my final table. plz help me if there any direc