Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Make Mc Point Towards Cursor


I'm trying to rotate a MovieClip to point towards cursor.
Ive been trying ages but I still could not figure out.

This is my code: (doesen't work)


ActionScript Code:
var xdif = (mouseX - herogun.x);
var ydif = (mouseY - herogun.y);
           
           
           
var radAngle = Math.atan2(xdif, ydif);
herogun.rotation = ((radAngle*360 / (Math.PI)));




ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 08-06-2008, 12:00 PM


View Complete Forum Thread with Replies

Sponsored Links:

Any Ideas On How To Make Cursor Point To A Hotspot?
I want to have the cursor constantly point toward a hidden hotspot on an image in order to give the user a hint as to where to click. Any ideas?

View Replies !    View Related
Point At Cursor?
Hi, I'm Flip'd. I'm new to this forum, but not so new to Flash. I have 1 year of experience, but mainly, I've focused on frame by frame animation. From time to time I got interested on Actionscript. And now, I'm interested on doing a game. A top-view one. I have the cursor thing down, but now I have a bit of trouble with my main character looking at the cursor. I've searched through here, but I only found a link to an old Flash 5 tutorial.

Any help with the code would be greatly appreciated



NOTE: I'm not really interested on Copy-Pasting a code, but more on understanding the code, so on another ocassion applying it to something different, and make my AS knowledge larger.

View Replies !    View Related
Insert Text At Point Of Cursor
hi all,

i have created an input box that allows the user to insert a hyperlink into a text field. this works very simply by adding the contents of a popup window to that of the main message. the way i'm doing this is by saying:
message=message+urlField

I have a problem in that i would v-much like to be able to insert the urlField content at the point of the users cursor, rather than at the end.

any ideas???

tnx

View Replies !    View Related
[MX-F8] Checking Which MovieClips Are Under The Cursor Point
Hey,

I've created two MovieClips on the stage and they are overlapped. I've added some ActionScript (included below) to both MovieClips. This ActionScript changes the right-click menu by removing the built in items and adding a custom item. This works fine when I right-click on either MovieClip, what I want to achieve though, is for both MovieClips to add their custom item to the menu.

I'm not sure of the best way to do this, but I would have thought it could be done.

Here is the code that I currently have on each MovieClip:

Code:
onClipEvent (load) {
var localMenu = new ContextMenu();
localMenu.hideBuiltInItems();

var localMenuItemOne = new ContextMenuItem("Item One", doSomething);
localMenuItemOne.separatorBefore = true;

localMenu.customItems.push(localMenuItemOne);

this.menu = localMenu;

function doSomething () {
trace("MC1: It Worked!"); // trace("MC2: It Worked!"); for the second MC.
}
}
Any help will be greatly appreciated,
Kind Regards,
ninjakannon.

View Replies !    View Related
Getting An Arrow (movieclip) To Rotate And Point At The Mouse Cursor?
Hi all, my first post. Hopefully some helpful folks will help me out

I'm not sure how to script this, and am struggling to find something that demonstrates it to me.
I simply want a movieclip (which will be an arrow) to constantly point at the mouse cursor. So it will be rotating around, as if looking at the cursor as you move it around the screen.

it doesnt actually have to point at the mouse cursor though, it could just point at another movieclip, which the user will drag about.

does anyone have a script lying around that could do this? Or know of a fla somewhere that i can use?

thanks!
Phil

View Replies !    View Related
Setting Cursor Insertion Point In Text Fields
What I'm trying to do is, I have edit button on the stage, when you click on it a box appears (which is on the stage but hidden), this box has radio buttons and a input text field. What I'm finding is if the last thing you clicked on was radio buttons, the cursor insertion point no longer appears in the text feild the next time the box appears. What I want is when click on the edit button the insertion point is place in text feild automatically everytime. Can anyone help me?, thanks!

View Replies !    View Related
CAN YOU MAKE IT POINT AT ME?
hey guys.

ive been trying to make an effect where an arrow inside a circle
will rotate to follow my mouse with it's point, so it doesnt ever MOVE anywhere, it's just always pointing at my mouse (with ease of course).

i've tried to do this on my own,
after looking at

http://www.kirupaforum.com/forums/sh...w+mouse+follow

stringy had a nice little thing goin there,
but my problem is making the arrow point to ANYWHERE
inside the mainstage.

i hope you can understand what im saying.

thanks so much!

View Replies !    View Related
CAN YOU MAKE IT POINT AT ME?
hey guys.

ive been trying to make an effect where an arrow inside a circle
will rotate to follow my mouse with it's point, so it doesnt ever MOVE anywhere, it's just always pointing at my mouse (with ease of course).

i've tried to do this on my own,
after looking at

http://www.kirupaforum.com/forums/sh...w+mouse+follow

stringy had a nice little thing goin there,
but my problem is making the arrow point to ANYWHERE
inside the mainstage.

i hope you can understand what im saying.

thanks so much!

View Replies !    View Related
How To Make An Anchor Point?
I searched but couldnt find anything on it, but what im doing is I have a person standing and I want there arm to follow the mouse but i want the shoulder to be an anchor point so it wont leave the body, it would just move up and down following the mouse position

View Replies !    View Related
Make A MC Point At A Another One In AS2 Using Rotation.
Any tips on how to make a MC always point at a another one.

Lets say that I got a fixed arrow that always point at or follow the mouse position in rotation.

Using AS2.0 .. any idea ?

View Replies !    View Related
How Make Something Disappear Above A Certain Point?
Hi,

I'm sure this is a easy one for the most flash users but i dont know how to do it.

I'm making a slideshow that is in the top of my layout. It is sitting on the top of a white thing that is part of the background.

It gives a shadow to the main background.

So, i cant put the slideshow under something to hide it because of the shadow.

How can i make a mask that will make disappear the slideshow above a certain point?

You have to see it, otherwise my english will not permit you to understand.

http://www.imaginando.net/tectoreve/main1.swf

Thx,

Nuno

View Replies !    View Related
Make An Mc Circle Around A Point
How can I make a movieclip circle around a point? (I don't really need the actual code, just need help with the math...)

View Replies !    View Related
Make An Anchor Point?
Short and sweet. How do you make an "anchor point" in flash. Like the one you can make in Dreamweaver i.e. Jump to top.

View Replies !    View Related
How Can I Make Something Return To Its Origional Point?
Hi,

I was wondering how, if I tweened something such as a switchblade knife (the one wher you push a button and the blade pops out and if you push it again the blade retracks in), once the blade comes out((note: the switchblade has the AS \\\on (rollover) {
}//////
on it))

how can i make it so that the animation plays backwards so that it looks like the knife is going back in? do i have to make another movie clip of this?

View Replies !    View Related
Make An Object Stop At Specified Point
Hello guys!

Im currently working on a little game of mine, and I need a little help solving one of my greatest mysteries

If you look at my example, youŽll probably figure out my problem allready. As seen on the sheet, I want to move an object from one point to another, using actionscript.

IŽve figured out that iŽll need the help of good oldschool maths. Trigonometry to be exact. IŽve jumped the current conclusions:


Code:
moveSpeed = 5;

movingAngle = Math.atan(endY/endX)
speedX = moveSpeed * Math.cos(movingAngle);
speedY = moveSpeed * Math.sin(movingAngle);

if(this._x < endX) { this._x += speedX; }
else if(this._x > endX) { this._x -= speedX; }

if(this._y < endY) { this._y += speedY; }
else if(this._y > endY) { this._y -= speedY; }
IŽve tested this code, and it seems to work allright. The problem is that the movement is continius - the object doesnt stop at my selected point. My question is therefore; How do i stop the movement when the object reaches its destination?

IŽve tried to make if-conditions, but the speedoperarator (speed * angle) is not precise enough to make my object stop where i want it to. Any good ideas people?

Please help

View Replies !    View Related
Using Cue Point To Make Things Happen?
Hi

I am having the following problem:

I have set up a movie with a video display component which imports an flv. I have set several cue points in the properties, the first one being "tvStatic". Which when encountered I want to hide, move, alpha=0, (any thing will do) a movie clip called tvStatic.

Alas nothing happens, the cue point is found and the if statement is satisfied, but my tvStatic refuses to budge. I am using the following code. Can anybody help?

myObj=new Object();

myObj.cuePoint=function(p){
trace("received sync cue point named: "+ p.target.name);
if(p.target.name=="tvStatic") {
tvStatic.gotoAndStop("end");

trace("it works!!")
}

}

myMedia.addEventListener("cuePoint", myObj);

View Replies !    View Related
How Do I Make A Button To Jump To A Cue Point?
Hello all-
I have two MC's named tomBtn and daveBtn. onRelease I want to jump to say cuepoint 5 that I have set through an array, but I dont know how to do it. Could someone please help me out? Here is my AS. Thanks guys.


Code:

var kVIDEO_FILE:String = "01_001.flv";
var kVIDEO_READY:Boolean = false;
trace("kVIDEO_FILE = " + kVIDEO_FILE);
var kVIDEO_DIR:String  = "";
var kSLIDE_CUE_FACTOR = 1;

/******         captions         ******/
// voice captioning times (2 arrays, times and strings)
var captions_ar:Array = [
   "00:00:00.00", "c1",
   "00:00:03.00", "c2",
   "00:00:06.00", "c3",
   "00:00:09.00", "c4",
   "00:00:12.00", "c5",
   "00:00:15.00", "c6",
   "00:00:18.00", "c7",
   "00:00:21.00", "c8",
   "00:00:24.00", "c9",
   "00:00:27.00", "c10",
   "00:00:30.00", "c11",
   "00:00:33.00", "c12",
   "00:00:36.00", "c13",
   "00:00:39.00", "c14",
   "00:00:42.00", "c15",
   "00:00:45.00", "c16",
   "00:00:48.00", "c17",
   "00:00:51.00", "c18",
   "00:00:54.00", "c19",
   "00:01:13.02", "c20" //This isnt really a slide, but needed in order to see previous slide.
];

// Startup inits
var mediaNum:Number = 1;

// just for fun, let's time this
tt = getTimer();

// copy data from big storage array into runtime arrays
var captionSeconds_ar:Array = new Array();
var captionStrings_ar:Array = new Array();

// Init variable for caption cues if not already init'd.
if (capOffset == undefined) {
   var capOffset:Number = 0;
}

// fill the parallel captions-related arrays
for (var i = 0; i < captions_ar.length; i++) {
   // copied from alternating timecode strings (converted to Number) and caption strings
   var time:Number = tcToSeconds(captions_ar[i]);
   time += capOffset;
   if (time < 0.3) {
      // if it's close to 0, back it off so 1st cuepoint will hit while seeking/replaying
      time += 0.3;
   }
   captionSeconds_ar.push(time);
   i++;
   captionStrings_ar.push(captions_ar[i]);
}

// done with data array so free up that memory
delete captions_ar;

function tcToSeconds(tcStr:String):Number {   
   // translate timecode sting into a number of seconds
   // tcStr formatted as "00:08:48.7" for 0 hr 8 min 48.7 sec and splits into a 3-item array
   // where t[0] is hours, t[1] is minutes, t[2] is seconds (probably with decimal)
   var t:Array = tcStr.split(":");
   return( t[0] * 3600 + t[1] * 60 + t[2] * 1);
}

function getVideoFile(slideNum:Number):String {
   // return abs or rel path to video for given slide number. Remember arrays are 0-based but slides start at 1
   //   return(kVIDEO_DIR + slides_ar[slideNum - 1].video);
   return(kVIDEO_DIR + kVIDEO_FILE);      // there is only 1 video
};

this.createEmptyMovieClip("slideHolder", depth++);
slideHolder._x = 525;
slideHolder._y = 110;

//   load text caption cuepoints
for (i=0; i<captionSeconds_ar.length; i++) {
   // text caption cuepoints start with 'c'
   vidPlayer.addCuePoint("c"+i, captionSeconds_ar[i]);
}

/*****************************************************************/
/******      Video Component Playback Event Listeners       ******/
/*****************************************************************/
var myCuePointListener = new Object();

myCuePointListener.cuePoint = function(eventObject) {
   var cueName = eventObject.cuePointName;
   // what kind of cuepoint was it?
   trace("cue point: " + cueName);
   var str1 = cueName.split("c");
   var newNum = (str1[1]*1)+1;
   //trace(newNum);
   slideHolder.attachMovie("c"+newNum, "slide", depth++);
   if (cueName.substr(0, 1) == "c") {
      // if 1st char is 'c' it's a text caption
      var myIndex = cueName.substr(1);
      displayCaption( captionStrings_ar[Number(myIndex)] );
      if (!searchMode) {
         scriptList.selectedIndex = myIndex;
         if (getTimer() > myTimer) {
            autoScroll(myIndex);
         }
      } else {
         // how do you deselect everything in the list?
         
         scriptList.selectedIndex = undefined;
      }
   } else {
      // slide change
      //myBigSlideChanger(Number(cueName));
   }
}

vidPlayer.addEventListener("cuePoint", myCuePointListener);
// scrubbing the video counts as mouse activity with the script
vidPlayer.addEventListener("playheadChange", shrinkTimer);


/**********      OLD FILE SEPARATION   was: code_video.as      ************/
//comment out to enable flv resizer
vidPlayer._chrome._toggleNE.setEnabled(false);

// Get first video and play it
trace("getVideoFile(mediaNum) = " + getVideoFile(mediaNum));

vidPlayer.contentPath = getVideoFile(mediaNum);
vidPlayer.play();
trace("vidPlayer.contentPath = " + vidPlayer.contentPath);


// on current file reached end
var listenForEnd = new Object();
listenForEnd.complete = function(eventObject) {
   vidPlayer.stop();
}

vidPlayer.addEventListener("complete", listenForEnd);

var videoStarted:Boolean = false;
var origVideoSize:Number = 0;

View Replies !    View Related
How Do You Make Your Own Cursor?
how do you make your own cursor?

View Replies !    View Related
Make Object Return To Origin Point
Attempting to script a sliding tab-navigation (similiar to the Mac Control-Strip Panel).

The sliding "tab button" has
the following script which sends
it into position on the main stage.

on (release){
this._x = 200;
}


I am trying to figure out how to
send it back to its' origin point on
the next (on release) event.


Any recommendations on how to approach script?

thanks,
superintendent

View Replies !    View Related
How To Make A Corner Vector With A Single Point?
How do I select a point on a line and convert it to a corner -- make the grabber handles go at different angles than 180 degrees?

I'm finding that flash is doing that for me when it does a shape tween ... but I cant seem to find the correct control-whatever-click action to make it happen on my own!!!

Whenever I do select one of those corners made by the shape tween, the corner converts to 180 degree grabber handles....

thanks

frizzo

View Replies !    View Related
How Do You Make An MC Keep Moving Till It Reaches A Certain Point?
I have a mc that I want to move up (i=3 , myMC+=i) untill it reaches a certain point (_y = -100).

I tried:

if (myMC._y == -100){
i=0;

But that doesnt work, although this does work:

if (myMC._y <= -100){
i=0;

But when I trace myMC._y it stops at -104, But I want it to stop at exactly -100.... So can anyone help me out?

View Replies !    View Related
Drag & Drop ? How Do You Make Something Fall To A Certain Point When You Let Go Of MC
I have a Drag & Drop Question. PLEASE HELP!!!!

How Do you make a certain MC fall down to a certain point when you let go of MC? LIKE GRAVITY!

http://www.AltGraphicDesign.com/Mr_Myers/Mr_Myers.html

If you look on the bottom of the flash site I'm creating, there is a Shell and a Starfish that you can drag.

I'm looking to be able to drag and drop those objects, but instead of just staying there in the place where you left it, the dragable MC or button falls down to the ground and perhaps bounces? I would just be happy with falling!

Help!!!

Thanks!

View Replies !    View Related
[AS2] How To Make A Walk Around In Point And Click Style
Hi everyone. I'm making a game and almost everything is done, but I still need to know how I can make a point-and-click style walk around in Flash by mouse... That's the only thing left, like this: you click a place somewhere in the ground, the character begins its walking animation and when it arrives the place you clicked, it stops and the walking animation is stopped too, coming to an idle animation where the character is sttoped. Please, if anyone knows, please tell me.

Thank you since now

View Replies !    View Related
How Do You Make An Object Move Away From Its Registration Point
How do you make an object move away from its registration point using actionscript.

Is it possible?

Thanks for helping,
Rick Ryan

View Replies !    View Related
How Do You Make An Object Move Away From Its Registration Point
How do you make an object move away from its registration point using actionscript.

Is it possible?

Thanks for helping,
Rick Ryan

View Replies !    View Related
Custom Cursor - How To Make Sure Its Always On Top?
I've got a custom cursor in my flash movie. I'm also loading external movies to different levels in my flash movies. When i do this, my cursor drops behind the movie this is loaded to level_5.

How do i make my pointer so it is always on the highest level?

View Replies !    View Related
How Can I Make The Cursor Dissapear?
Hey all,

I want to make the cursor dissapear whenever it's over my flash movie.

It's actually a projector file that i've made full screen.

Is it possible to make the cursor dissapear?

View Replies !    View Related
Text Cursor - - Can You Make It Appear?
I have a movieclip "dialog box" with an input text field that pops up. Is there any way to set the key-cursor to default to that text field so that a user can just start typing when they see the box. I don't want them to have to click in the field with the mouse, then type, (or have to tab over to it.)

I know you can set tab order. Can you set the current tab position?

View Replies !    View Related
How Do I Make The Cursor I Made Always...
I was wondering how to make my custom cursor stay in front of everything else. I made a note pad kind of thing where you can draw, but the pen is behind the ink. please help, i think it is just a property. I have tryed the layers crap.

View Replies !    View Related
How To Make The CURSOR MOVE ON
Does anyone know how to make the cursor move on to the next input box in a single frame when the user hits the <Enter> key. Currently when i press enter the cursor disappears. I need the cursor to move to the next input box. Below are the codes i use, could any kind person help me amend the codes so that the cursor moves on tho the next input box ... It's really URGENT !!!
================================================== ===================

on (keyPress "<Enter>") {
if (user3lon eq "hostname London") {
gotoAndPlay(30);
} else {
setProperty("errormsg2", _x, "148.4");
setProperty("errormsg2", _y, "352.1");
}
}

================================================== ===================
1) user1lon is the inputbox variable name
2) hostname london is the answer expected from the user

View Replies !    View Related
How To Make A More Complicated Cursor?
Hi!

I been searching high and low for a tutorial on a custom cursor, which changes shape, only when above a button (or anything click-able). Like the arrow turns into a hand on most cursors.

Thanks in advance anyone...

View Replies !    View Related
Make MC Invisible To Cursor?
Say there are several circular buttons on the screen behind a graphic of a chain link fence. Is there a way to modify the MC containing the chain link graphic so it won't block the mouseOver of the buttons?
Thanks.

View Replies !    View Related
Movie Clip Scaling - How Do You Make It Scale From A Certain Point? Still Can't Do It
Hello..
I've asked this question before but still couldn't work it out. Say you have a movie clip and scale it using actionscript.. how do you make it scale from one side only..or make it's width grow from one side only..

say i have a clip that looks like this.. (the * representing the centre registration point thing..)

*-----

and i scale it..it goes like

--*-------

but I want it to go like..

*---------

if that makes sense..

can anyone help me..?

Thanks in advance if you can..

View Replies !    View Related
Make Object Move To Point And Face Direction?
Okay; so I'm using rather an odd system to trigger enemy AI in my latest game. If you're wondering why it's odd...don't ask. I'm a 14 year old n00b; whatever works for me . Anywho; here's the triggers I need attached.

onClipEvent (enterFrame) {
if (_root.hdeath1.text>=1) {
//Enemy is alive
if (this.hitTest(_root.meleeai)) {

Here's where I need to make the MC: guy1 move to and face the MC: attack

}
}
}

Thanks
-SaRs

View Replies !    View Related
How To Make A Draggable Point Rotate About The Circumference Of A Circle?
Hello.

I'm in need of some help to make a point rotate about the circumference of a circle upon dragging.

How do I go about doing it? Is there something to do with the startDrag(...); ?

From what I have right now, I can move the point but not on the circumference of the circle.

View Replies !    View Related
How To Make A Mc Follow Cursor On _y Axis
I was wondering how I would get a mc to follow the cursor along the _y axis. I want to have a mc trail the cursor as it goes across the menu.

This is probally pretty basic but I am just starting to step out of basic flash and consentrating on learning more advanced script and such. My first flash site is http://www.thegermanfolks.com.
Not really much flash just a basic menu done in flash. I like flash for its efficiency in optimization and not so much for fancy animations although I do intend to become more advanced in flash. I am already working on v.3 for the German Folks and it is going to be pretty advanced. That is part of the reason for getting on this forum and asking questions.

One day I hope to answer some questions for someday.

Sorry I am rambling this is my first post here and I have a lot of respect for designers and programmers. I currently only have a degree in visual communications and also working on a CIW degree.

thanks,
Dusty
[Edited by GambleForFood on 11-15-2001 at 04:40 AM]

View Replies !    View Related
How Do You Make The Cursor Chase An Image?
I posted this question a number of months ago, someone responded with the exact thing I was looking for, a flash example they called "Red Ball". Unfortunately my computer "died" on me just last week & I only had the example saved on my desktop & not on cd. Foolish of me!!! So I lost the example.... here's my flash quandary:

How do you make a cursor chase an image??
I think it's technically called a "mouse chaser"..

I have an image on my website that I want to run away from the mouse when you put the mouse over it. You have to be able to catch the image eventually, because you need to be able click on the image to take you to another webpage in my site.

I can't figure out how to do this in Flash,
I've asked some of my friends who know Flash better than I do & they can't figure out how to do it either.

Does anyone know how to do this????
Please help.

Thank you so much

View Replies !    View Related
HOW Do You Make The Cursor Chase An Image?
I posted this question a number of months ago, someone responded with the exact thing I was looking for, a flash example they called "Red Ball". Unfortunately my computer "died" on me just last week & I only had the example saved on my desktop & not on cd. Foolish of me!!! So I lost the example.... here's my flash quandary:

How do you make a cursor chase an image??
I think it's technically called a "mouse chaser"..

I have an image on my website that I want to run away from the mouse when you put the mouse over it. You have to be able to catch the image eventually, because you need to be able click on the image to take you to another webpage in my site.

I can't figure out how to do this in Flash,
I've asked some of my friends who know Flash better than I do & they can't figure out how to do it either.

Does anyone know how to do this????
Please help.

Thank you so much

View Replies !    View Related
Change Cursor / Make It Unusable - Can It Be Done?
I want to make it so that when a user clicks a button the cursor changes to an hourglass icon, and she cannot click on any other buttons untill I change the cursor back to normal.

Is there a way to make a cursor with no click point?

View Replies !    View Related
[F8] How To Make Eyes Follow The Cursor
I've come to this forum as according to my lecturer it's the best for help. Anyway, I am trying to make the eyes of this Dracula character follow the mouse but for some reason it won't work. I've tried various tutorials even copied the code from an example and changed it accordingly but still doesn't wanna work. And I do not know what I am doing wrong. If someone is able to help me then I will greatly appreciate it.

I've attached a copy of the character as well.

Thanks,


thegreatest21

View Replies !    View Related
Trying To Make A Odometer Move With The Cursor
im lookin to make an odometer move with a mouse on an axis and im havin a lil trouble its for a web site and its the navigation can some one plz help me?





























Edited: 11/13/2008 at 06:26:03 PM by visions3000

View Replies !    View Related
How Do I Make _MCs Flee From My Cursor?
I know how to make Objects follow my cursor, thanks to these awesome tutorials... But what if I want to make a whole cluster of little movie clips in a swarm that run away from my mouse cursor when it gets near? Does anyone know how to do that?

View Replies !    View Related
How Do I Make Objects Dissapear When The Cursor Goes Off The Screen?
When the mouse rolls off the flash movie, I want certain movie clips to dissapear. How would i do this?

View Replies !    View Related
How To Make Two Lines Snap To A Mouse Cursor?
Example:
http://www.kirupa.com/developer/mx/basic.htm
( the small flash file on top )

can someone teach me and provide me the code?

View Replies !    View Related
How Do I Make My Custom Cursor Script Last Only For 30 Frames?
I've built a custom cursor script that changes the appearance of the cursor depending on its screen coordinates:


Mouse.hide();
_root.onMouseMove = function(){
if (_xmouse>0 && _xmouse<200 && _ymouse>0 && _ymouse<574) {
_root.attachMovie("leftAro", "leftAro1", 0);
_root.leftAro1._x = _xmouse;
_root.leftAro1._y = _ymouse;
} else if (_xmouse>200 && _xmouse<507 && _ymouse>0 && _ymouse<574) {
_root.attachMovie("upAro", "upAro1", 0);
_root.upAro1._x = _xmouse;
_root.upAro1._y = _ymouse;
} else if (_xmouse>507 && _xmouse<707 && _ymouse>0 && _ymouse<574) {
_root.attachMovie("rightAro", "rightAro1", 0);
_root.rightAro1._x = _xmouse;
_root.rightAro1._y = _ymouse;
}
updateAfterEvent();
}

The problem is that I only want this to affect the first 30 frames of my movie, and for the rest I want the pointer to display the 'upAro'image. Ive tried inserting a blank keyframe to end the span at frame 30 but it doesn't work, I've also tried inserting just the 'upAro' bit after frame 30 yet this whole script still seems to affect the rest of the movie after that.

What am I doing wrong?

Cheers, Skratch.

View Replies !    View Related
How Do I Make The Mouse Cursor Push Away An Objekt?
I would like to make an objekt "run away" from the cursor. For exampel a button that is "unclickable" because it moves away as soon as the cursor is getting close.

View Replies !    View Related
Make Movieclip Stop When Cursor Stops
first let me say i am very new to actionscripts...
ok i have been researching for a couple of days and can't find an answer, so i have decided to ask. i have a mc that follows the cursor. i want it(the mc) to stop playing when the cursor stops moving.

View Replies !    View Related
How To Make An Objekt Follow The Cursor In A Menu?
Hi everyone!

I`m very new in flashscripting and in scripting what so ever!
I have a large homepage projekt i`ve been working on for a very
long time so now i have most of the peices and animations done,
But i cant script and do interactivity im very novice in that.

So straight to the thing! I wonder how you make an objekt
follow the cursor when you navigate thruegh a menu insted
of the usual that a link highlights on mouseover or change color.
It shall ONLEY apear on mouse over with an infade and as i said
it shall follw the cursor BUT!!! I want it to be a little rubberband
effekt. And as the user takes the cursor away it fades away softly!

I have an almost perfekt example of a swedish homepage that i found.
Check out the pink underline that follows the cursor.

http://markus-2.rah.se/index.asp

Someone mentioned it could be enterFrame script
with x_mouse and y_mouse but it didn`t work!
But well its as most the scripting i do cause im new in it!

Help!!!

View Replies !    View Related
[F8] How Do I Make The Hand Cursor Not Pop Up When It Scrolls Over A Button?
How do I make the hand cursor not pop up when it scrolls over a button?

View Replies !    View Related
[CS3] I Have This Snake Following The Cursor But I Just Want To Make It Follow A Path
Hi Guys,

needing some aS help with this movie.

just want to get this snake moving across the stage following a path in a snake-like motion.

Can anyone help with the code or get it working with a motion guide.

Many thanks
Sparrow

View Replies !    View Related
How To Make The Object Move To Mouse Cursor
moves to the mouse cursor, but leaves from old the position to new postion but moves to the cursor straight away looks like jumping not moving hope that makes sense.....

var mouseListener:Object = new Object();

mouseListener.onMouseDown = function() {
circle._x = _xmouse;
circle._y = _ymouse;
};

Mouse.addListener(mouseListener);

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved