Help,how Can I Make Arrowhead(a Mc) Direct Mouse Automatic?
i know it will be done by trigonometric function,but i can not do it,need ur help,thanx advance
FlashKit > Flash Help > Flash ActionScript
Posted on: 04-16-2002, 12:53 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Make The Actions Panel, Direct Active For Typing?
How to make the Actions panel, direct active for typing?
Because,
when switching from window (ALT + TAB) and then back to the .fla window, i always have to use my mouse to click on the Actions panel for being enabled to type in the Actions panel.
That takes double the time
Actionscript Arrowhead On Line
Hi,
I am creating a program in which XMLbased X/y coordinates are extracted to draw lines from one movieclip to another using the createEmptyMovieClip method and lineTo. There is a line for every childNode, gathered in a for loop.
What I would like to be able to do is attach an arrowhead at the end of the arrow, hopefully pointed in a straight line with the angle of the arrow line.
Anybody with any insight shall be most praised, here's the code for the creation of the arrow line. I've gotten rid of all the variables and the for loop here because its not important, and would only add hassle.
Code:
createEmptyMovieClip("line_mc", 10);
line_mc.lineStyle(1, 0x000000, 100);
line_mc.moveTo(200, 25);
line_mc.lineTo(450, 105);
So that draws a diagonal line and I would like to cap the line with an arrow head following the aim of the line.
Thanks in advance for any suggestions!
GC
Progressively Drawing Shapes With Line And Arrowhead?
Hey all! Hows it goin?
I've been working off senoculars awesome article on progressively drawing shapes.
However, i was wondering if it was possible to attatch an arrowhead to the tip of the line?? So that when shapes are drawn, theres an arrowhead moving at the tip of the line?
It's just an idea, but would be awesome if it was possible
Peace out.
How To Make Pageflip Fullscreen And Automatic
Hi,
Was wondering if someone could help me with the pageflip movie i included
I want the pageflip to be full screen and automatic after a few seconds.(not interactive)
Would this be possible ?
How To Make Password Dialogue Box And Automatic Download
Hello everyone.
I have been usng Flash 5 for about a year now, mainly for making movies (for friends) and simple NON-CODE menus.
Now I am working on a big intro/logo for a website. At the end of my logo movie, I have 2 options (buttons): MEMBERS and GUESTS. I would like to make it so that when you click MEMBERS a dialogue box appears telling you to write your password. I have no problem making the dialogue box appear IF the button is clicked. But how do I make a place to write in the box, a way to write, a way to check if it is right, and a link to url if it is right?
I have never used code for Flash but I have 2 years experiance (good) with C++. From all the code I have seen so far in Flash, such as loops and variables, it seems extremely similar to C++. Can anyone tell me how to make the dialogue/password box. Can you use strings and if statements? If so, when should I use them?
My Idea so far: (not real code, so you can understand)
Right-Click the button, say IF CLICKED, go to some frame with the box visible (maybe use ALPHA for this one). How would I make the area for writing the password, how would I allow the keyboard to write in this line I make? What code should I use?
P.S.
How can I make a Flash movie automatically send a file to be downloaded. After so many seconds a DO YOU WISH TO DOWNLOAD (from IE or Netscape) will apear. How can I do this?
Please help me.
Too long, sorry.
I would SUPER appriciate your help.
Thanks.
How To Make A Direct Link In Flash And Not In "/blabla.html" Pls Help Me Out
This is the URL: http://www.dmitierra.com/disenadores.html
The first 3 sections works, they dont have a preloader for the moment but all the site is a .swf. The links i put on the first 3 sections are:
on (release) {
getURL("/slideshowtribucueros/disenadores_tribucueros.html");
}
The problem is when i go to /slideshowtribucueros/disenadores_tribucueros.html and there i want to go to /slideshowawamoda/disenadores_awamoda.html
the flash sends me to http://www.dmitierra.com/slideshowtr...s_awamoda.html
AND THAT DONT EXIST! i need a actionscript code to make the links DIRECT to their subfolders.
I HOPE SOMEBODY HEEEEELPS ME OUT! Is a very simple PROBLEM and annoying in the same way!
Automatic Scrolling On Mouse Over For Text Scrolling
hi all, ive made a scrolling text box with an up and down button as listed in the tutorials. i know how to make it move 1,2,3,etc lines at a time when the mouse is over but what code/variable do i need to replace the number with to make the text scroll continously as long as the mouse is over it?
thanks
bast
Hide Mouse, But How Make Your Own ?
Several times you see sites and ads where the windows cursor is replaced by an other cursor.
but how ?
I know that at the first frame you should put this code:
Mouse.hide ();
but that only makes it disappear, how do i put the cursor i want ?
thx for reading and keep flashing !
How To Make A MC Follow The Mouse?
What I mean is, how can I make those eyes that look at your mouse anywere you move it.
Can someone please tell me what actions to use?
thanks
HOW Make A MC Follow Mouse ?
Hi, how can you make a movieclip follow your mouse with a little bit delay, like an elastic rubber ...
please help...
Make A Mc Follow The Mouse...?
Alright...I have a navigation menu that can be minimized into a little box. I'd like to make it so that when minimized, the the menuBox will slowly follow the mouse around the screen rather than remaining in a fixed location. How can I do this?
I tried to do a little action scripting myself but it just wasn't working...I'm not that adept with it yet. Does anyone have a way to do this? Maybe some sample script?
Thanks! I know this might be a tough one...
Clint
How To Make An Effect While Mouse Over
I created an image as a button, and i want it to blur out when i mouse over it. however in the "over" state column theres only 1 frame where I can edit it , and therefore i cant add a motion tween. how would i accomplish this? thanks.
How To Make Something Follow The Mouse
in part of a website i have drawn a sphere and shaded it, and i was wondering if enyone could help me make the shading on the shpere move as if the mouse was the source of light.
Make Mc Appear Only When Mouse Is Over Certain Line
hi all....
I am currently doing a physics report (in flash, strange yes, but o well...)
At the moment i am expalining something that involves two sin graphs out of phase by 120 degrees.
So i have two empy moveclips that will dynamically create the movieclip. (using the lineto(); method).
I also have a movie clip (instance name of hor_phase) that i have already made to have an x and y value of the mouse.
I want it so that when the mouse is over (near it as well would be preferable if possible) then the movieclip will be visible. (the movieclip is just a line with a label saying 120 degrees, so that if one end is one one graph, the other end will be on the same spot on the other graph, to show the two graphs are 120 degrees out of phase.
The only problem is i have no idea how to do this, so if someone could help me, that would be fantastic... (also, the report is due very soon, and as much as i hate rushing people, i am in a sense of urgency here ).
thnx for help...
(what i have is attached)
[MX04] How Do I Make A Mouse Like This?
http://www.addictinggames.com/orange.html follow that link, there is a game with a really cool mouse does anyone know some script to make that mouse? i really dont know where to start it is probably something with _xscale and _yscale plz help
F8 - Make Mouse Hit Object
I have my custom cursor in flash, but dont want it to interact with a simple movieclip in my scene. Its just the shape of a heart.
Can i have it so that the cursor wont go through this object in my scene?
thanks!
Make My Mouse Chaser Better
Here is my own first try to make a mouse chaser. It looks horrible, but it does chase the mouse. :P
i would like to know the experts idea on how to
1. properly code this
2. make the chaserObject not bounce around when it reaches the mouse
3. also make it ease out, when it gets closer to the mouse.
Looking forward to your wisdom.
Code:
speed = 5;
object.onEnterFrame = function() {
targetX = _root._xmouse;
currentX = getProperty("object", _x);
if (currentX<targetX) {
object._x += speed;
}
if (currentX>targetX) {
object._x -= speed;
}
box.text = "targetx: "+targetX+" currentX: "+currentX+" mouseX:"+_root._xmouse;
targety = _root._ymouse;
currenty = getProperty("object", _y);
if (currenty<targety) {
object._y += speed;
}
if (currenty>targety) {
object._y -= speed;
}
box2.text = "targety: "+targety+" currenty: "+currenty+" mousey:"+_root._ymouse;
};
How Was This Make This Mouse Follow?
I am trying to build this effect on http://www.marvyndt.com/v2/ in his port. The mouse changes into a custom curser then moves back where the mouse is?
any ideas??
Thanks
Make Mc Follow Mouse
hello!
sorry for this dumb one i am having a blond day, how do i make a movie clilp follow the mouse at all times without ease or anything fancy, i found lots of documentation of fancy things and was unable to strip them down to just a simple follow,
thank you!
How Was This Make This Mouse Follow?
I am trying to build this effect on http://www.marvyndt.com/v2/ in his port. The mouse changes into a custom curser then moves back where the mouse is?
any ideas??
Thanks
Make Mc Follow Mouse
hello!
sorry for this dumb one i am having a blond day, how do i make a movie clilp follow the mouse at all times without ease or anything fancy, i found lots of documentation of fancy things and was unable to strip them down to just a simple follow,
thank you!
Make Mc Invisible When Mouse Is Away From It Again
Hi guys
Back to newbie with me...
I have tried hard all day to solve this problem.
I have a tooltip that I want to appear when user rolls mouse over a button. No problem, but how to get rid of it again? I have a deadline tomorrow and 40 tooltips to make. Please help me.
How Can I Make 'accurate' Mouse Over Buttons?
Can someone tell me how to make 'accurate' mouse over buttons?
em... well what I mean is this:
I can make a button... put it onto scene one and assign it mouse over and mouse out actions...
But the thing is... if you move the mouse really fast... you can miss the mouse out action... and leave the button in a state of mouse over.
I've seen it in plenty of places... where they've got some kind of 'thing'! that makes the state of a button change when mouse is out... regardless of how fast you move the mouse over.
Does anyone know what I'm talking about!?
Check out http://www.maloman.com - kewl site!
The buttons he has have the working that I want.
[Where the picture changes on the left hand side but goes back to original picture if the mouse is moved away.]
If anyone can fathom what I'm ranting on about, I'd really appreciate any help/pointers.
Thanks.
Jam
Make An Image Vibrate On Mouse Over,
I've been burning it on this one, basicaly i need some code that can make an png vibrate on mouse over, thats it thats all i need, please help
Cheers
Darraghf2
Make An Image Vibrate On Mouse Over ?
Hi there,
need a bit of actionscript help, how do i get an image (png) to vibrate quickly on mouse over (like a taut cord). Its just a simple effect but i have no idea how to do it. All help will be really appreciated.
Cheers
D
How Do I Make Bullets Fly From A Gun That Follows The Mouse Angle?
I can get the gun to follow the mouse/crosshair, but how do i make it so that bullet come out of the gun and shoot in the direction the gun is aiming at. id like it to be as simple as possible using the duplicateMovieclip(); function and and array(); set. I have attached the .swf file of it to date, and you can see that the bullets stay shooting form the same spot all the time, and always shoot in the same direction. how do i make it so that it shoots like i said above?
(P.S. the contols are the arrow keys to move, and space to fire, with the mouse to aim (as u can tell, they arent finished yet))
How Do I Make Bullets Fly From A Gun That Follows The Mouse Angle?
I can get the gun to follow the mouse/crosshair, but how do i make it so that bullet come out of the gun and shoot in the direction the gun is aiming at. id like it to be as simple as possible using the duplicateMovieclip(); function and and array(); set. I have attached the .fla file of it to date, and you can see that the bullets stay shooting form the same spot all the time, and always shoot in the same direction. how do i make it so that it shoots like i said above?
(P.S. the contols are the arrow keys to move, and space to fire, with the mouse to aim (as u can tell, they arent finished yet))
How To Make Eyes Follow A Mouse
I need help to make eyes move and follow a mouse on the _x and _y axis, but the eye needs constrained with in an eye socket.
I have used two mc to constrain while mousedown.
// mc_1
onClipEvent (enterFrame) {
bounds = getBounds(this);
}
//mc_2
onClipEvent (mouseDown) {
this.startDrag (false,
_root.clip.bounds.xMin+_root.clip._x, _root.clip.bounds.yMax+_root.clip._y, _root.clip.bounds.xMax+_root.clip._x, _root.clip.bounds.yMin+_root.clip._y);
}
onClipEvent (mouseUp) {
stopDrag();
}
But I would like to have then follow while the mose is moved with out being clicked.
_________________________________________________
This moves the mc with the mouse but I can nolonger constrain it to the bounds of mc_1
mc_2
onClipEvent (enterFrame) {
this._y += _root.yMove;
this._x += _root.xMove;
_root.yChange = (_root._ymouse-this._y);
_root.xChange = (_root._xmouse-this._x);
_root.yMove = (_root.yChange/5);
_root.xMove = (_root.xChange/5);
}
any ideas would be apprieciated.
Trying To Make A Tree Follow The Mouse
Hi, i am still a newbie to flash but not 3d. I have this animation I want to dynamicly animate in my web page. I am thinking of trying to animate the trees movement to follow the cursor around an arc of 160 degrees as that is the radi of the trees movement. The real one is bigger :P
I tried simple rollovers of frames but that just sucks as it looks to blocky and not smooth at all like ,ost of the good flash I have seen . Please help ^v^
http://www.aprilcolo.com/oh/natch/si...s/bestflip.mov
How Can I Make This Button Light Up When You Put Your Mouse Over It?
Hello,
I know how to create a basic button and have the color change in the "over" state. However, this button has a flash effect when you rollout from the button. The flash movieclip is in the "up" state of the button, and when I try to add a color in the "over" state, it disrupts the movieclip and doesn't work.
Can you help? I just want the button to light up when you put your mouse over it and when you take your mouse off, for the flash effect to occur...
I'll attach my file so you can see this better!
Thanks!
How To Make Thumbnail Larger On Mouse Over
I was wondering if there was a tutorial on how to make a thumbnail become larger when mouseover. And also display some text?
does anyone know how this could be done?
thanks for any help.
Make A Slider Follow The Mouse
Hi. I was wondering how to make a menu like this one:
http://www.xsnext.com/flash.htm
I want to achieve the effect of the slider in the bottom. Basically, I want a "squareMC" to follow the mouse when in the menu area.
Any help appreciated.
Thanks,
Sportzguy933
On Mouse Over Make An Image Bigger
hello
I want to have a page with lots of pictures. these pics will be small and when someone mouseover on one of them the pic will become bigger.
i am trying to find a tutorial here in flashkit but nothing!
if anybody has an idea please send a msg.
thank you!
Urgent How To Make Click Mouse?
hi people ok currently I am doing a basketball game but the problem is my ball would be throw by pressing the up arrow key on the keyboard below is the code:
this.onEnterFrame = function ()
{
if(Key.isDown(Key.UP))
instead of using up arrow key I want to the ball to be release or throw when I click on the mouse so can somebody teach me how to edit the code above to mouse click thanz !!
|