Making The MC Point Towards The Cursor?
Mar 14, 2009Making the MC point towards the cursor?
View 3 RepliesMaking the MC point towards the cursor?
View 3 Repliesif i move the cursor to a point A, it automatically moves by itself to a point B. then if i move the cursor from B to a point C, it bounces away to a point D. i stumbled upon this site while googling around. i'm not a techie, but yeah, i can handle word processors.
View 5 RepliesWhat I want to find is where exactly my text cursor point is -- basicly the point that I last typed or placed my text cursor with the mouse relitive to the textfield -- not an x y position but number of characters position
View 2 RepliesBasically I have a scrolling bar with thumbs of images that you can click and view. The bar scrolls depending on where the mouse is located along the X plane. Basically, the greater the value of X, the faster the bar scrolls to a certain extent. I am trying to figure out a way that if the Y value of the mouse cursor reaches a certain point, the scrolling stops. Like if the mouse is scrolling off the bar of images itself, the scrolling stops. As it stands the scrolling is only controlled based on where the mouse is located along the X plane and it has nothing to do with the Y value. I would like to be able to stop the bar with a certain Y value. Make sense? I Hope So :P
[Code]...
Looking for code to enable zooming in/out on a graphic or movie clip using mouse scrollwheel with origin of scale change being at the mouse cursor position. I have one where it is at top left. I also require it to stay proportional, when applied to a rectangular graphic my code makes it go letterbox on zoom out!
View 3 RepliesI'm looking to force the cursor to slow down/stop moving when it gets close to a MovieClip. Idealy you would be able to rollover the MovieClip when moving the cursor slowly but if the cursor is moving at some speed, it would be forced to stop at the edge of the MovieClip.
View 3 RepliesI have been trying in vain to make my movieclip look at my cursor on the X axis. The problem I have is that, when it's negative scale. it's keeps looping the 2 directions.
[Code]....
I've been trying for literally three days now to make a hand cursor appear over a dynamic text box -- which pulls text from an XML doc. The link works fine just no hand cursor.
View 8 RepliesI am making a custom cursor flash. In each frame there is a different crusor. I got the code that make the real cursor dissapear and my custom one follow the mouse. Im try to create some code that knows when I click and geos to the next frame and stop there so the custom cursor can be viewed.
View 5 RepliesI know how to make something follow the cursor (e.g. a ball that moves where your cursor does). However, I'm having a lot of trouble figuring out how to do what I need to for an animation, namely make eyes follow a cursor.Here's the situation: I need to make a graphic (the eye in the middle of the eyeball) follow the cursor (i.e. look up, look left, look in any number of diagonal directions) depending on where the user moves the cursor. But the eyes, obviously, need to stay put in one static spot and move in a very limited region (the entire white part of the eye, but not beyond it).
Furthermore, the eyes start out staring at the user. How do I additionally make them dart to the edges where they'll be looking around once the cursor is moved?
How do I take Object_MC and have it attract towards the mouse cursor within 100px and return to it's point of origin when the mouse is 101px + away from the cursor, all while doing an "elastic" like recoil effect, and going from 50% alpha to 100% over that distance to the mouse?
View 1 RepliesI am creating a dynamic text field in the IDE and putting it on top of a simple one-color square movie clip. I've attached a listener to the movie clip in AS 3, to make it act like a big button. However, since the text field is on top, it blocks the button from reading the cursor, within the text field. I set "selectable" to false in the IDE, on the text field, but that didn't seem to work. Any ideas? Do I have to add a listener to the text field, also?
View 2 RepliesWhen I Selection.setFocus(someTextField); the cursor doesn't start blinking in the text field. I've tried it in the flash IDE as well as in a HTML page, I can't seem to get the cursor to start blinking automatically in an input TextField.
I even did an onEnterFrame script to make sure the TextField was loaded and ready before I did the selection. I've also used Selection.setSelection(0,0) , etc. It just never shows up.
If I click the input TextField the cursor shows up as normal though. I just want it to automatically appear as this is a form and I want it to be clear to the user which textfield is currently selected when I change focus.
This is for a touchscreen project with an on-screen keyboard so the user has no mouse.
Even if the user types some letters and sees them appear in the input box properly the cursor STILL doesn't appear. Only when I click the input does the cursor appear.
how would one go about making a mouse cursor follower in Flash MX, if one was so inclined??
View 3 RepliesI was wondering if there was a way of making your mouse cursor stick to an object for a period of time when clicked?
eg. If i clicked "about" then the mouse would stick to that button while it slid to a new location on the stage. Once the tweening stops, you can move the mouse again.
i'm triying to make a dinamic generated plane, that plane has a grid with lines in X and Y, by now i'm able to generate a grid clicking and dragging points to make 4 lines and i generated 2 lines between the midles of the opposites lines like this:
[Code]...
I made a map for big shopping center in flash that uses tooltips to display the shop names when moused over. Is there anyways I can make a url(html) from any of those shops refer to its specific movie clip? I am askingt because the shops wishes that its customers or site visitors should easily see the location of the shop when they click " show shop location on map"
View 4 RepliesI used Selection.setfocus("input textbox instance name") is not making the text box cursor blink.
View 9 RepliesI'm currently trying to make a class that changes the mouse cursor. I made it in a new class so that I can call it again whenever I needed it, but there are some errors and I don't know how to solve it. The class filename is Cursor. This class is not linked with the fla file.
Here's the ActionScript Code:
package {
import flash.events.MouseEvent;
import flash.ui.Mouse;
import flash.display.MovieClip;
public class Cursor extends MovieClip {
public function Cursor()
[Code] .....
This class will just let me type Cursor.makeCursor(cursorMovieClip); and the cursor will change. The problem is that Flash does not recognize "addChild" and "stage". Is it because the class isn't connected to the fla? Or do I need to import some stuff in? Also, flash does not recognize "obj" in the code line
ActionScript Code:
var cursor:MovieClip = new obj;
I need to know how to make a movie clip appear exactly where the user clicks.I have a button that is made up of four separate parts across the stage, and when you click a part of it, I'd like for a movie clip to appear on that button, where you just clicked.Rather than creating 4 separate movie clips (and four separate buttons) showing the same thing, can I just make one, and make it move to the location the user has clicked?Please let me know if this makes sense! Essentially, I'd like to know if there is a code that says "Make movie clip appear on location of mouse"
View 2 RepliesI have the problem that i am making a little gamewhere on a certain point the comand mc.y=mouseY is used but further in the program this need to be disabled how can i do that because everything i try the movieclip wil keep following my mouse.
View 2 RepliesHere is what I am working on. [URL]
I am creating an interactive map. It has little bullets that, when you hover over them, display a short description of the room and a link to another page. What I am trying to do is make it so that the user can hover off of the bullet, and onto the link to the seperate page, without the link and description disappearing because of leaving the bullet's "hit" area.
Do I have to define another hit area for the description and link somehow?
trying to make a movie clip follow a custom drawn vertical line, the movie clip follows the cursor but only the y axis
I have added an example of what i mean and the file i need it to happen to
ps the vertical line needs to be hidden.
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].....
so the custom cursor I'm using works on the main timeline of my project. However, there are buttons in the application that load in movie clip pop-up windows and when this happens the cursor stays on the main timeline behind the movie clip resluting in the cursor not being seen. This is the code I'm currently using:
[Code]...
In as3, how do you change the cursor to the systems default busy/wait cursor (e.g. the spinning wheel on a mac)?
View 2 RepliesWorking on a small kiosk app that runs in Firefox for Ubuntu. Mouse.hide() works for everything else, but the cursor is showing up in Firefox for Ubuntu
View 2 RepliesIs 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]...
If I have a movie clip that has an onRollOver event, how do I turn the back into a pointing cursor from the gloved button cursor?
View 2 RepliesI am trying to make a simple game in flash it is a target shooting game i would like to make it so that the mouse cursor dissapears and a crosshair is shown as the cursor (if you get what i mean). I have created the crosshair and made it into a graphic symbol called: "crosshair" so what is the script i need to make it the cursor for the game
View 3 Replies