out of the circle when click on panel_picture

Hello

I just wanted to know if it is possible to get out of a circle when I click on my panel_picture or a workaround?

I have a picture and when I click on it I want to trace my path.

Thank you

A photo control cal meet EVENT_LEFT_CLICK event, such as mentioned for example in this thread.

To show a graphic element on the screen that you can for example have a hidden picture control the game with a transparent background with the appropriate element and the position + the show on the click event; Alternatively, you can move your image to a canvas and draw directly on the canvas. With regard to the canvas there is an example godd you can look to use the example finder (help > search with the keyword CANVAS example).

Tags: NI Software

Similar Questions

  • How to open a link in the browser when clicking on Image?

    I created a clickable image. Now, I want to open a link in the browser when clicking on Image.

    How to get there?

    Call Browser.getDefaultSession () .displayPage (String url)

  • across the circle when the mouse is idle?

    When the mouse is idle, dynamically create a circle and a scale. the scale must depend on the duration of inactivity mouse... so here I could not put the circle wide, but all others are made. put the code here. Please check and give me the solution to fix this problem. Thanks fo the help...

    CODE.................

    import flash.display.MovieClip;

    Import fl.transitions.Tween;

    Import fl.motion.Tweenables;

    Import fl.transitions.easing.Strong;

    Import fl.transitions.easing.None;

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    import flash.events. *;

    import flash.utils. *;

    var tweenScaleX: Tween;

    var tweenScaleY: Tween;

    var scalecir;

    var i = 1;

    var for_knw:Boolean = false;

    var inactiveTime:int;

    var t:Timer;

    switcher var: int = 0;

    var posXa:Number = stage.mouseX;

    var posYa:Number = stage.mouseY;

    var posXb:Number = stage.mouseX;

    var posYb:Number = stage.mouseY;

    inactiveTime = 1000;

    t = new Timer (inactiveTime);

    stage.addEventListener (MouseEvent.MOUSE_MOVE, stall);

    t.addEventListener (TimerEvent.TIMER, onTimer);

    t.Start ();

    function startt(e:MouseEvent):void {}

    t.Reset ();

    t.Start ();

    }

    function onTimer(e:TimerEvent):void {}

    trace ("Secnds inactive mice:" + i ++);

    }

    this.addEventListener (Event.ENTER_FRAME, checkMovement);

    function checkMovement(e:Event):void

    {

    If (switcher == 0)

    {

    posXa = stage.mouseX;

    posYa = stage.mouseY;

    Switch = 1;

    }

    on the other

    {

    posXb = stage.mouseX;

    posYb = stage.mouseY;

    Switch = 0;

    }

    var cir:Sprite = new Sprite();

    cir.graphics.beginFill (0x0066CC);

    cir.graphics.drawCircle(mouseX,mouseY,2);

    cir.graphics.endFill ();

    If (posXa == posXb & & posYa == posYb)

    {

    addChild (cir);

    tweenScaleX = new Tween (cir, Tweenables.SCALE_X, None.easeNone, cir.scaleX, i, 1, true);

    tweenScaleY = new Tween (cir, Tweenables.SCALE_Y, None.easeNone, cir.scaleY, i, 1, true);

    }

    on the other

    {

    stage.addEventListener (MouseEvent.MOUSE_MOVE, startDraw);

    function startDraw(e:MouseEvent):void

    {

    i = 1;

    graphics.lineTo (mouseX, mouseY);

    graphics.lineStyle (1, 0 x 000000);

    graphics.moveTo (mouseX, mouseY);

    }

    }

    }

    I don't see the need for the i value, but if you want to keep it, you can and you can use instead the end point for the value of the scale of the tween, as in...

    tweenScaleX = new Tween (cir, "scaleX", None.easeNone, cir.scaleX, i, 1, true);

    To have the circle grow over time, you have to shoot the declaration circle out of the loop so that it is accessible to the Timer event handler function.  You can use the timer event handl. er function to take care of the scaling of the circle and settle the interpolation of...

    import flash.display.MovieClip;
    Import fl.transitions.Tween;
    Import fl.transitions.easing.Strong;
    Import fl.transitions.easing.None;
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.events. *;
    import flash.utils. *;

    var tweenScaleX: Tween;
    var tweenScaleY: Tween;
    var scalecir;
    var i = 1;
    var for_knw:Boolean = false;
    var inactiveTime:int;
    var t:Timer;

    switcher var: int = 0;
    var posXlast:Number = mouseX;
    var posYlast:Number = mouseY;

    var allowDrawingCircle:Boolean = true;

    inactiveTime = 1000;
    t = new Timer (inactiveTime);
    t.addEventListener (TimerEvent.TIMER, onTimer);
    t.Start ();

    function onTimer(e:TimerEvent):void {}
    i ++ ;
       tweenScaleX = new Tween (cir, "scaleX", None.easeNone, cir.scaleX, cir.scaleX + 1, 1, true);
    tweenScaleY = new Tween (cir, "scaleY", None.easeNone, cir.scaleY, cir.scaleY + 1, 1, true);

    }

    this.addEventListener (Event.ENTER_FRAME, checkMovement);

    var cir:Sprite;

    function checkMovement(e:Event):void
    {
    If (posXlast == mouseX & posYlast == mouseY)
    {
    {if (allowDrawingCircle)}
    allowDrawingCircle = false;
       
        CIR = new Sprite();
    CIR.x = mouseX;
    CIR.y = mouseY;
    cir.graphics.beginFill (0x0066CC);
    cir.graphics.drawCircle (0,0,2);
    cir.graphics.endFill ();
       
    addChild (cir);
    }
    } else {}
    allowDrawingCircle = true;
    }
             
    posXlast = mouseX;
    posYlast = mouseY;

    }

    stage.addEventListener (MouseEvent.MOUSE_MOVE, startDraw);
    function startDraw(e:MouseEvent):void
    {
    t.Reset ();
    t.Start ();
    i = 1;
    graphics.lineTo (mouseX, mouseY);
    graphics.lineStyle (1, 0 x 000000);
    graphics.moveTo (mouseX, mouseY);
    }

  • Video cut out of the box when importing to chronology :( What should do?

    Hello!

    My first video on my calendar and everything's fine so I.

    However when I try to import another video with the same framework, it seems that he zoomed because it cut a large part of the frame that I see even more my face . I even tried the consultation in the preview area on the top left (which seems well) until I have drag in the timeline.

    Photo 1: This is the original video

    Screen Shot 2015-01-10 at 10.44.46 AM.png

    Photo 2: This is the additional clip that I add that cuts out of the frame

    Something I need to specify so is, I recorded audio & video separately and them merged with the Merge option he that Premiere Pro, but that should not be a problem because I did the same thing with my first video to synchronize audio and it did not cut out of the frame.

    I'm still new to first pro and when I search for tutorials, nobody seems to have this problem. Any help?

    Thank you

    Your images, your sequence is1920x1080 is 1280 x 720, go to the settings of the sequences and change the size of 1920 x 1080.

  • The audio when click box is clicked

    I'm puzzled. I thought that adding an audio file to a click box play audio when it was activated, but he plays just the audio when the slide with the clickbox loading. Seems pretty useless. What I need is the ability to have the audio file play only when the click box is clicked. How can I do this? I don't know that one of you Haiti Captivate have a work around. I have the clickbox executes a Javascript that would play the audio?

    Thank you!

    Jim

    Hi Jim

    This give a try. Change your click box. Click the Options tab and select the success caption. Close the dialog box click Inbox, and then double-click the legend. Configure it with no text and Transparent. This will keep it projection (if you do not want it). Now, click on the Audio tab and assign the audio clip wished the legend of success. Reject and test. The net result would be that you click on the click box, the invisible text caption appears and plays the audio clip.

    Hope this helps... Rick

  • How to make an object follow the mouseX when clicked on

    How to make an object follow the mouseX if clicked? Help, please.

    You should think it through - your code does not match your very simple explanation of what you say, it should do so, and it should... click an element and follow the mouse.

    A game loop (ENTER_FRAME) could work, but in this case it wastes unnecessary treatment if the mouse does not move.  And in your code example, it does not expect the clicks.

    Use a MOUSE_MOVE instead of an ENTER_FRAME event listener.  Inside of the event by clicking on the handler function is where you must be defined the MOUSE_MOVE listener.  The MOUSE_MOVE listener Manager is where you assign rock1Cnt.x = mouseX.

    public void Main (): void {}

    rock1Cnt.addEventListener (MouseEvent.CLICK, mouseClickHandler);

    }

    private void mouseClickHandler(e:MouseEvent):void {}

    stage.addEventListener (Event.MOUSE_MOVE, followMouse);

    }

    private void followMouse(e:MouseEvent):void {}

    rock1Cnt.x = mouseX

    }

  • my pictures are coming out on the side when downloaded on my computer what can I do to solve this problem

    When I download my photos from my iphone to my computer they come out backwards what can I do to solve this problem

    Hello

    1. what software do you use to view the photos?
    2 is confined with any particular photo?

    Method 1:
    You can try to rotate images in Windows Picture and Fax Viewer and check.
    http://Windows.Microsoft.com/en-us/Windows-XP/help/digitalphotography/manage-your-pictures

    Method 2:
    If the problem occurs with all the photos and then, try to rebuild the cache of icons without restarting the computer.
    a. press the combination of keys, logo Windows + R key to bring up the Run dialog box.
    b. type cmd and press ENTER to open the command prompt window.

    c. in the command prompt window, type the following commands pressing ENTER after each line:

    Taskkill /f /im explorer.exe
    attrib-h "%userprofile%\Local Settings\Application Data\IconCache.db.
    del "%userprofile%\Local Settings\Application Data\IconCache.db.
    Explorer.exe

    d.This should restart Windows Explorer and rebuild the cache of icons as needed.

  • Remove the text when click on

    How can I set special instructions in a text box (for example, "enter your name") and then make them disappear when the user clicks on the text box and also have the return instructions if the user clicks the text box empty?

    http://cookbooks.Adobe.com/post_TextArea_with_a_prompt_string_that_automatically_d-16529.h tml

  • When you're in the long list, and you are in the Middle when click a link and open the go back to page 1 will top and the keyboard popup

    How can I go back to the same place on the page without firfox me to go upstairs.

    Open worldgsm.com and navigate to treat and offers page, then select any product the go back to deal with and the page it is going back at the top of the page and the pop-up keyboard.

    The site defines a no.-cache header when sending to the homepage of the site and we have therefore re - search the page from the server. We don't remember the position of ScrollBar in this case because the page is likely to have changed.

  • How to find out if the mouse button click

    Hello

    Using the structure of the event, how can I know if the left mouse button is pressed?

    I should be knowing this, but I have no

  • call cavas them when click the button

    Can you please tell me how can I call the canvas when click on the button. and position the fabric next to the button

    Hello

    try something like that.

    go_block('block_name');
    SHOW_VIEW('CV_STACKED'); ---for showing
    HIDE_VIEW('CV_STACKED'); ---- for hidding.
    

    and...

    SET_VIEW_PROPERTY('CV_STACKED', VISIBLE, PROPERTY_FALSE);
    

    I hope this helps.

    Sarah

  • Highlight when click Help

    Hello

    I'm working on a home page and the "scrolling when click on" function is not proberbly work.

    It seems werry randomized, and you click on "Home" which should go to the top, if not smooth like the others.

    How can I solve this problem?

    what it is supposed to do:

    When you click on a link in the menu, it should scroll the div to a sertain point.

    and there at - it a way to detect where is the skrolled div and then move an object?

    http://www.loxfear.com/GC.zip

    This is the files for the project

    Thank you very much

    figured this out my self by trying things with the code, it worked very well:

    Var mydiv = sym.$("ScrollingContainer");

    myDiv.animate ({scrollTop: 2471}, 2000);

  • I have a modal using html and css that opens very well.  However, given that modal is on layer 2 layer 1 objects fade out (gray out) in the background.  I can't put the modal on the top layer, so that it appears on all my pages.  It is specifi c that

    I have a modal using html and css that opens very well.  However, the modal is on layer 2 that the objects in the layer 1 fade out (gray out) in the background when the modal opens.

    I can't put the modal on the top layer, so that it appears on all my pages.  It is specific to the single page on my site.

    Here is the link: http://www.ueonline.com/website_NEW/certificationsapprovals.html#openModal

    Any help is appreciate!

    You can create a separate mask for this specific page with modal to the top layer and then apply that master page.

    Thank you

    Sanjit

  • If so many conditions, including the next button click

    I just want to use Javascript (generator of action a fits on several "trigger" conditions).  As if previous/next statements I used just .rawvalues of the radio buttons and checkboxes.  Now, I want the event to occur (navigation of page x) when the user clicks on the next button AND a value of box 1.

    I don't know & & to join conditions, I do not know how to code in a rawvalue for an OK button.

    Is there a clean way to do this?  I don't want a dozen becomes visible and Ok buttons occupying the space given to a value of the check box. This seems a bit awkward.  I'd appreciate any help!

    Hello

    Buttons do not hold the values - you can't assign a value to a button.

    Normally, you put a script on its Click event, solutions for you would be

    • have a hidden field or a formVariable) store if a click has occurred.
    • change an attribute of the button (such as the fillColor) when clicked and have then other scripts look for that. A click event of button change fillColor does not calculate the events of shooting, so if you want a script on the calculation event to run in response to a change in the fillColor, put a

    TextField1.execCalculate (); at the end of the script.

    Here is an example:

    ///////////////////////////////////////////////////////////////////////////////

    Form1. #subform [0]. Button1::click - (FormCalc, client)

    $.fillColor = "255,255,255" //button click changes its own fillColor

    TextField1.execCalculate (//then) fires the script below

    /////////////////////////////////////////////////////////////////////////////

    Form1. #subform [0]. TextField1::calculate - (FormCalc, client)

    If (Button1.fillColor == "255,255,255") then //checks button fillColor

    $ = "yes" something //does

    on the other

    $ = "no" //or did something

    endif

    /////////////////////////////////////////////////////////////////////////////

    I hope this helps!

    Stephen

  • I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help?

    I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help

    Try to drag the image to id web site (favicon) on the left side of the address bar, instead of the URL.

Maybe you are looking for