IDE :: Draw In Specific Area - Custom Cursor?
Sep 4, 2009
I'd like to be able to use a pencil image (custom cursor?) to draw in a defined area - its the 'ol pencil drawing a line idea on a pad. I don't know how to define the area? I've tried creating either a btn or mc instance called pad_mc & trying rollOver/Out which confines the pen but not the line. This is what I have so far, which works (ie it draws the line) but obviously it goes everywhere, not just over the mc of the pad.
Code:
createEmptyMovieClip("Line",1);
Line.lineStyle(1, 0x666666, 65);
onMouseDown = function () {
Mouse.hide();
pen_mc.startDrag(true);
[Code] .....
Also, I've got an onClipEvent on my pen_mc to try & define where its allowed to be dragged.
View 2 Replies
Similar Posts:
Nov 10, 2009
I have a flash cs3 file where I want a mask to move on the y axis (up and down) when the user is scrolling over the navigation area.
In my code, I have:
maskMC.startdrag();
How do I limit the area where the mask will move, then make it return it back to it's original position when the user moves away from the specific area (in this case the navigation).
View 2 Replies
Nov 4, 2010
I have a custom cursor in my Flash document. Now that it is all set up, I want to specify an area that it can be in and nowhere else. Basically, I want to keep it in my navigation area on the top of the stage and not be able to go below it to the rest of the stage.I don't know if it will help or not, but I have the following as my custom cursor code:[code]
View 3 Replies
Feb 24, 2009
When I add a custom cursor it won't draw because when the mouse is down it's referencing the cursor and not the board. So drawing doesn't = true.
I can fix it by changing the eventlisteners to "stage" instead of "mBoard" but when I do that it will draw the the coordinates of where the mouse is on the cursor and the board.
So the Cursor could be x= 255 and y = 200 it will draw that coordinate but it will also draw the coordinate of where the mouse is over the cursor which could be x = 1 and y = 1. It will also draw that on the drawBoard.
Here are the examples in case I didn't make myself clear.
example 1 example 2
Here is the simplified code
Code:
package {
import flash.display.*;
import flash.events.*;
[Code].....
View 4 Replies
Jun 24, 2009
I'm working on my personal portfolio site and desperately need help with some AS3. my knowledge about AS3 is very rudimentary. Hope anyone who's I want to change the pointer cursor to custom movieclip when mouseover different invisible buttons. These buttons are mainly forward & backward button for my gallery. I got some help from other site but still unsolved. Please take a look at my fla attachment to point out what's wrong with the coding. To elaborate a little bit more as what I wish to achieve you can take a look at the sample URL...I just need the pointer cursor to turn to custom mc when it mouseover the hit area of the respective buttons.
View 6 Replies
Oct 3, 2006
Is there any way I can fade in/fade out a custom cursor when a visitor rolls into/out of an active area?
View 2 Replies
May 30, 2004
However I'd need to be able to draw *only* on the board area (a 450 x 350 pixels area) instead on the whole movie... how to "tweak it?" Here's the fla: [URL]
View 8 Replies
Nov 10, 2011
I just want to do not allow editing at some area of text area in flex. How it can be done?let suppose text length in text area is 50 characters, i want to allow editing if cursor position is less than 15, and if cursor position in text area is greater than 15 it should not allow user to add more text in text area.If user press any key it should not add any character in text area.[code]
View 1 Replies
Mar 18, 2010
I am making use of a custom cursor on itemRenderers in a List component. The custom cursor works just fine except when I mouse over the Text component which is a child of the itemRenderer at which point I get two cursors, the custom and an iBar one on top of the other.Here's the code:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
[code].....
View 2 Replies
Jan 25, 2006
Is it possible to make a custom cursor with restraints (meaning you only see the cursor when you put your mouse in a certain spot, by defining both the max and min of the x & y), that is placed inside a movie clip; then make the movie clip move on the stage when you click certain buttons.
[Code]...
View 1 Replies
Oct 24, 2011
I'm working on an AS3 flash animation where I am using a custom cursor. At the end of the animation I want to default back to the regular arrow/hand cursor
View 7 Replies
Apr 22, 2009
what i want to happen is have images in a movie clip scroll up and down but i don't want to have to move the mouse to the top of the page to see the top image
here is my code so far
frame 1:
if (_root._ymouse > _root.circle._y) {
_root.circle._y = (_root.circle._y + 10);
} else {
[Code].....
View 2 Replies
Apr 22, 2009
what i want to happen is have images in a movie clip scroll up and down but i don't want to have to move the mouse to the top of the page to see the top image here is my code so far
[CODE]...
View 4 Replies
Feb 10, 2010
I am using a movie clip with graphics as a cursor.
However, it appears that the actual 'hit' area of the movie clip is related to specifically the normal arrow cursor.
I would like to be able to define an area of the graphic, in this case it's a hand holding a billy club so I'd like just the tip of the billy club the 'hit area.'
Is this possible via AS2.0?
View 2 Replies
Apr 21, 2009
I'm trying to make a movie clip follow my mouse. I have that working. But I want to designate a specific area where this the following of the cursor happens. Outside of this area the house would be visible and functional normally. startDrag("myMovieclip", true);
Mouse.hide();
View 7 Replies
Aug 8, 2011
I want to zoom the area wherever my cursor is placed. I don't want all the area to be zoomed. How can I achieve this?
View 5 Replies
Jan 20, 2010
I am using a custom cursor for my flash app and when I have the cursor click button1 (menu_btn in the code) it goes to scene2 and when I click button2 (current_btn in the code) it goes back to scene1. The problem is that when I click on button2 it leaves an image of the cursor right there on the button. It doesn't happen on button1. It was suggested that I am calling "cursor = new Cursor();" and extra time, but I am not. The code is below.
[Code]...
View 5 Replies
Mar 6, 2009
My problem is that my final .swf is embedded onto an html page and stretches for the entire width of the users screen. This means that if they have a particularly high resolution, the width of the .swf file stretches significantly beyond the initial stage settings. I'm okay with this, as I really need the .swf to fill the width of the screen.
However, it means that the cursor is able to be pointed more than 100% left or right of the stage, causing the panning image to move further left or right than it should.
What I need to know is how to get around this. I'm assuming I could set a boundary at the left and right of the stage where the code wouldn't be active?
Here's my code:
Code:
this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 1);
constrainedMove(fg_mc, 4, 1);
[Code].....
View 13 Replies
Jul 14, 2004
I need to know how to script the drawing board as in the user can only draw on a specified area. For example, on a 800x600 layout, only 1/4 of it is the drawing board.After the user has drawn the image, when he/she clicks on a button, the image will be replicated on another area in the same 800x600 space. So far, I can only manage to make a drawing board on the whole 800x600 space and erasing.
View 2 Replies
Aug 28, 2009
I have a Flash interaction where I exchange the cursor for a hand holding a flashlite mc. The entire stage is black. The cursor drags a mask around that illuminates a small image in another mc on the stage that the user has to find (illuminate).2 problems
1. When the mouse is rolled outside the stage, the custom cursor is still visible.
2. When imported into Captivate 3, and I move outside the stage and over buttons for navigation, the cursor is no longer visible, for the rest of the Captivate movie.
Desired functionality:Custom cursor to be visible only when on the stage area and the normal cursor to be visible outside the stage area. The stage area is 400x330.[code]
View 1 Replies
Oct 25, 2010
I would like to know how to have the cursor visible in non editable Text Area.
View 7 Replies
Dec 14, 2009
I know that the image panning has been done to death on these forums, but I was curious if anyone had an AS3 version Krilnon code
from this post titled: AS 2: Restricting cursor area in Interactive Image Pan
here is what Krilnon posted to use in AS 2
import flash.geom.Rectangle;
this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 1, new Rectangle(0, 0, Stage.width / 2, Stage.height));
};
[Code]......
View 5 Replies
Mar 18, 2009
how do I load video into the movie area like in the pic? where I can click on a box on bottom and the video for that will load in movie area?
View 1 Replies
Sep 12, 2011
I have created and added my enemyHolder class with
width:800
height:262
to this class I am adding a bunch of squares using this method
ActionScript Code:
for (var i:int = 0; i < enemyNum; i++)
{
enemy = new Enemy();
[Code]....
I thought this would only add the child within the dimensions of my enemyHolder, but they are being spawned everywhere! I'm sure it's just something with my x and y placements, but I can't figure it out.
View 6 Replies
Dec 1, 2006
Does anyone know how in the world to make the menuItems that appear on right-click be different depending on where the user's mouse is over?
View 2 Replies
May 22, 2009
I need to stop my cursor from moving on certain points on the stage. I'm using a magnifying glass effect but in the browser this only show the glass up to the stage so I need to stop it moving past those points. You can see what I mean if you move the magnify glass to the very left or right here:
[URL]
this is the code I have for the magnify glass:
var moveGlass:Number;
magnifyingGlass.onPress = function() { moveGlass = setInterval(startGlass,1);};function startGlass() { magnifyingGlass._x =
[Code]....
View 4 Replies
Aug 30, 2009
I would like to export a specific area of the stage. So, for example. My stage is 400 x 400 and I would like to export only 100 x 100 of the stage at xy 0 pos.
View 6 Replies
Jun 16, 2011
Is possible to add an EventListener to a specific area of a picture ?
View 1 Replies
Feb 10, 2010
I've created a widget that that, on roll over, starts an animation and allows the user to jump to a url on clicking the widget. It all works well, except that the whole stage area (209x204 pixels) is sensitive to the roll, and I want to somehow make a specific target area start the animation on roll over.
I've tried putting it into another button and adding a hit state to the button, which did create the specific area I was aiming for, but prevented the movie from playing, creating a weird 'stutter' of the cursor.
View 2 Replies
Jul 22, 2011
So I've recently started working with ActionScript 2.0 at my internship. I am now working on a game, that already had all its graphic interface designed and I am doing all the programming. Basically what I have to do is get some movie clips (randomly) from a different scene and print them on another scene in a designated area (but also randomly). I am not sure the best way to explain my problem, so I made a sketch of how the scene should look. [URL] So basically I want to print the movie clips on the black space, as if they were the red squares. But the movie clips are stored in a different scene in the same project. So I want to know two things: how do I get the movie clips from the different scene? And how do I print those movie clips on the specific area?
View 1 Replies