PDA

View Full Version : movie clip X,Y coordinates



ramo_integ
April 26th, 2004, 03:18 PM
I have a Fla file that contains a movieclip called MOVER. I want the movie clip called MOVER to move in X Y coordinates to a specific spot within the scene, when a button is clicked.

I need to know what action script to put behind the button to make MOVER move to a certain spot and then move back into postions. This is a transition effect from link to link.

I have a script being used that moves MOVER when the mouse button is clicked in general. That script contains an "easing movement code". I need to take that code and put it behind a button that moves MOVER.
Also the button needs to move along with MOVER. Do I put the button within the movieclip or does it have to be on the main stage of the movie? Please help.


(im tryin to post the fla but this thing is acking up on me. i will post later though....but if anyone can follow what i have here so far please help.) thanx

bet444
April 26th, 2004, 08:01 PM
You can put the button inside the MC, but you must use "_root.MOVER" in your script, when you report on MOVER.
For more help, post the fla.

ramo_integ
April 26th, 2004, 08:20 PM
heres the fla..in it u will notice ...if u click anywhere on the stage it moves the whole movie to the top right hand side of the screen......i want that effect to happen only when u press a button and ...i always want it to have a transaction where is comes back to the original position while it reveal my content in the top right hand corner.....

bet444
April 26th, 2004, 09:19 PM
Hope I understant you right and that`s what you want.
Let me know :h:

ramo_integ
April 26th, 2004, 09:31 PM
yeah that is exactly what i want :) ...only one more thing..........when the button is clicked and the movie moves up to the right hand corner..it automatically comes back revealing the content that is suppose to be there.....

and is it possible at all to explain ur code to me...i am so lost..and i dont want to totally copy and dont know what i'm copying... if u can i would greatly appreciate it....but THANK YOU VERY MUCH FOR WHAT U HAVE DONE SO FAR ...IT'S PERFECT AND RIGHT ON THE MONEY :)

bet444
April 26th, 2004, 09:44 PM
You`re wellcome, so far...
I`m sorry but I don`t have time to explain the code, try to understant it by yourself... :cool:
I think that`s what you`re looking for:

ramo_integ
April 26th, 2004, 09:55 PM
man that is perfect...... thank you very much........i am understanding the code slowly but surely....i cant thank you enough.... i appreciate it.......

bet444
April 26th, 2004, 10:00 PM
Actualy, you can thank me.
Send some feedback on this:
http://www.kirupaforum.com/forums/showthread.php?t=54875 :beer:

ramo_integ
April 26th, 2004, 10:10 PM
done... ;) ...hey sorry to bother again but i have one more question..... if u have time to answer.... if i wanted to load a movie in that content area..... i would only have to add _root.container.loadMovie ("movie.swf") to the button is that correct??

container would be the name of the empty movie clip....

bet444
April 26th, 2004, 10:21 PM
Not realy.
Your container must be in MOVER_mc, and just put on the button "container.loadMovie ("movie.swf")"

ramo_integ
April 26th, 2004, 10:31 PM
ok understandable....i totally understand everything inside of the movie clip now...also built my own :) thanks to you.... but i still dont understand the actions thats on the maintime line..i know you dont time to explain ...but do u know where i can find sum information on how to understand that ?? i might be askin for 2 much ..if u dont know at this moment it's fine.......but many thanks....got sum learning to do ;)

bet444
April 26th, 2004, 10:39 PM
Actionscript for Flash MX by Colin Moock
Just an example.
If you do a search you`ll find many usefull books ;)

ramo_integ
April 26th, 2004, 10:41 PM
kool..thanx.....that the second time i have seen that book posted on here...i will definately get it.......ok i think i have bothered u enough for 2night.......have a good night man....and once again thanx a million...

l2edsand
August 4th, 2004, 06:42 PM
...what is the point of this topic? the .fla that would have helped isn't even here anymore... :pirate: