View Full Version : Object Movement Relative to Mouse ?
HEVNBND
09-03-2004, 05:49 AM
Hello, This is my first post here :cool: I created an line that has another one move over it based on the tutorial here (http://www.actionscript.org/tutorials/intermediate/object_movement_mouse/index.shtml). I have atached my .fla anyhow to the question.
How can i copy it in order to have two lines? I converted it into a symbol graphic so i could move it easier and when i copy and past another one the 2nd one appears but does not trace the mouse movement. Any help would be greatly appriative. Really like the look of the forum very proffessional! ;)
emergency_pants
09-03-2004, 08:24 AM
HEVNBND,
Sorry, but I wasn't able to open the zip. Can you repost it?
HEVNBND
09-03-2004, 01:03 PM
Argggg :rolleyes: I have updated my zip file you should be able to download now. Let me know what you think or if you have any more problems. Brian
HEVNBND
09-04-2004, 02:59 AM
So can anyone help??? Thanks in advance Really need to get this working. Pretty sure it is something in my action script, but just dont know what.
HEVNBND
09-06-2004, 04:37 AM
Hey guys, i hate to keep replying to this, but i really need some help here. I got to roll this out at my church this coming week and i need this working someone please help. Thanks in advance
deQue
09-06-2004, 08:43 AM
Stop bumping. These things take time, and people are doing their best to help you...
deQue
09-06-2004, 08:51 AM
Man. I tried looking at your file, but it's so messy that I couldn't understand what you're trying to do, and what specifically are you talking about from all the things that don't work there. You'll have to make the file more "readable" for us to be able to help you.
HEVNBND
09-06-2004, 05:13 PM
I was very clear in my explanation i dont know what you mean other things don't work as i knew of nothing else that did not work.... here is an example of what i am trying to achieve. www.nikegolf.com The links between the two grey lines. The grey lines follow your mouse movement. As does one of the lines i have but not the other one...
madgett
09-06-2004, 05:44 PM
You were on the right track...but you need to make the graphics into movie clips so that you can access your circle movie clips. Follow these steps:
1) Change the top bar to a movie clip, just click on it and go into the property inspector and click the pull down where Graphic is...and change it to MovieClip. Then give the top bar an instance name of circle1_mc.
2) Do the same for the bottom graphic bar that you have and give it a movie clip instance name of circle2_mc.
3) Next, add the ActionScript (in bold) to your header actions layer:
loadMovie("menu.swf", "menu");
onEnterFrame = function () {
circle1_mc.circle._x = _xmouse;
circle2_mc.circle._x = _xmouse;
};
If you have any questions or can't get it, I have your exact .FLA with those very updates I listed and I could email it to you, just let me know.
HEVNBND
09-07-2004, 04:29 PM
madgett, Thank you thank you. That got it working you are a life saver. Thanks again
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.