Sikulix : move the mouse to the right - sikuli

I need to move the mouse after a selection of a picture.
The mouse go to the picture but after the mouse need to go to the right and the position of the picture is not always at the same place.
How can i move the mouse 50px to the right please.
Thanks

I have find
x=50
y=0
mouseMove(x,y)
From the official documentation:
https://sikulix-2014.readthedocs.io/en/latest/region.html#lowlevelmouseandkeyboardactions
"""
mouseMove(xoff, yoff)
Move the mouse pointer from it’s current position to the position given by the offset values (<0 left, up >0 right, down)
"""

Related

Make stage draggable, but keep a specific shape always in the same relative position (KineticJS)

does anybody know, how to drag the stage "behind" a certain shape or shape-group, so the shape doesn't get dragged around with all the other items on the stage and of course, the stage itself?
In my example I have a stage with many items outside of the visible part of the<canvas>-tag which can only be reached by dragging the stage to the left/right, but one of the shapes should be always on position (0, 0) of the <canvas>-element and shouldn't change its position while the stage is dragged.
I couldn't find a way to do this yet, so I would be very glad if anyone knows a way to get this working.
If the one shape left at (0,0) of the canvas is always the same shape and never changes, you can add all other elements to a group excluding the shape that is positioned at (0,0) and drag the group instead of dragging the stage.
If you must drag the stage, then you'll have to calculate the distance of x that the mouse has moved while dragging, and apply that to the position of the shape at (0,0).

Setting movieclip origin with AS3

I have a spotlight that moves on a stage.
Now I rotate the spotlight but its not rotating on the correct point/origin.
I am trying to do something like
myOject.setOrigin = {x , y};
//and then rotate it about x,y.
I have manually set the white circle in the correct place and when I rotate the
object with the mouse on the screen it works.
Can somebody help me?
Make sure the registration point is in the middle of your symbol. It's not the white circle that appears when you use the Free Transform Tool:
But the crosshair that appears when you edit your movie clip:
You can easily center the object by selecting everything, then opening the Align panel and aligning its horizontal and vertical axes to the center using the two "center" icons under the Align section. If your MC has multiple items per layer, group each layer before aligning, then ungroup after aligning:
The white circle is not what will be used as the origin, it's the little cross. Adjust your clip to have that in the center (you'll have to move all of it's contents). Another option, if moving is not possible, is to wrap your clip in another clip and move it within that.
Select symbol and click CTRL+E - Then move it to positioning cross.

Add image under menu on mouseover

Here's my code
http://jsfiddle.net/6748w/
I would like that the imgs/fleche_bleue.png in my CSS to appear under the hovered menu. I can't figured it out.
Thanks
UPDATE
http://jsfiddle.net/6748w/20/
See the small arrow under the mouse over, that's what I want without the glitch it make !!
Try this: http://jsfiddle.net/NKRZG/
When you hovered over the link, the position moved. Since it moved out of range of the mouse, it moved back to it's original position. This kept repeating until the mouse was moved completely away. All I did was remove the top:30px.
(Also I added a background color since the image did not load just to show that it works.)
http://jsfiddle.net/6748w/18/

AS3 move image as the mouse moves

This probably will be very easy for some, but I am stuck on this. I have a map in a movieclip(mc_map) on stage and a small square which acts as a mask to the really bigger size of the same map. What I am want to do is that when I move the mouse on the mc_map(eg: say my cursor is on New York), the small sqaure window will unhide the same area, or will move that bigger image such that the same area is shown under the square mask. I also want to add another cursor(or crosshair) to the stage which is live only in the area of the square and replicates the position of mouse on map. Any help on this will be great thanks.
There are a lot of tutorials on this type of "magnify" effect. See if this one helps: http://www.flashuser.net/flash-actionscript-as3/create-a-magnifying-glass-in-actionscript-3-0.html

HTML 5: how to make stackable images?

Is it possible to load up 10 images (same dimension), stack them on top of one another only showing 1 image at a time and then by holding down the left mouse button and dragging the mouse up you scroll in one direction and moving the mouse down scrolls in the opposite direction?'
if so how can this be done? canvas element would be the begining, no?
This sounds like a job for... Javascript!
This solution isn't perfect, but it's an example of mouse scrolling images: https://github.com/kamranayub/Just-Another-Carousel