Toss this Actionscript into Flash with a background movie clip called 'background' (creative huh?), and you'll be able to scroll around with your mouse to your hearts content.
Making this tutorial was actually useful for me as well. While I was trying to explain myself and simplify the code as much as possible, I found new ways to do different things that made things much easier. So what you see is the 'refined' version of the mouse movement, not the hack job I made before.
As with all my tutorials (2 so far) play with them and feel free to use them in whatever you make.
Enjoy!
ONLINE EXAMPLE (be patient as it loads because there is a large background image)
ACTIONSCRIPT: // Variables var mousePositionX:Number = 0; var mousePositionY:Number = 0; var speedX:Number = 0; var speedY:Number = 0; var edge:Number = 125; var scrollDivide:Number = 10;
// Event listener for movement. stage.addEventListener(Event.ENTER_FRAME, calculate);
great tutorial dude.. this is like the other tutorial.. just pasting the actionscript in flash.. and should work???... cuz.. i tried to modify the action script in ps3 background tutt.. and i fucked it up
Yeah, this one is the same. You can simply copy and paste the Actionscript, but with this one you'll need to make a movie clip called "background" that has a really big picture in it at x=0 and y=0. With the PS3 background one you didn't have to do anything but the Actionscript.
hi dude i nee this in actionscript 2.0, or do you have any tutorial link something like this. looking forword from i really need this. thanks in advance
-- ::An Idea is only an idea until you make it real:: --- VIP Member --- webgraphix | webmagic
Daily Literature Deviations is a group that is dedicated to bringing literature to the forefront of the deviantArt community. We attempt to accomplish this by daily featuring Literature artists from around the community that deserve the recognition, but are not getting it.
Each day we will feature 10 deviations from the Literature categories in a News Article. In order to support the artists that we feature, we ask that you the news article as well as check out the individual pieces. We understand that each day you may not be able to check out each and every one of the pieces, everyone has their own things going on. We just ask that you make an attempt to help support the growing Literature community.
Daily Literature Deviations is a group that is dedicated to bringing literature to the forefront of the deviantArt community. We attempt to accomplish this by daily featuring Literature artists from around the community that deserve the recognition, but are not getting it. Each day we will feature 10 deviations from the Literature categories in a News Article. In order to support the artists that we feature, we ask that you the news article as well as check out the individual pieces. We understand that each day you may not be able to check out each and every one of the pieces, everyone has their own things going on. We just ask that you make an attempt to help support the growing Literature community.
When it comes to community spirit, `Rushy is a shining example. From participating in devmeets, to providing positive encouragement to other artists, `Rushy can always be found demonstrating what it really takes to be a true deviant. It's without any hesitation that we are delighted to award the Deviousness Award for July 2009 to `RushyRead More
Devious Comments
Comments
this is like the other tutorial.. just pasting the actionscript in flash.. and should work???... cuz.. i tried to modify the action script in ps3 background tutt.. and i fucked it up
--
pardon for the engrish" XDD
--
E viva as festas do Pajama.
--
Christine xx
--
::::::An Idea is only an idea until you make it real::::
webgraphix
[link]
DesignersJunior
[link]
Templateartists
[link]
looking forword from i really need this.
thanks in advance
--
::An Idea is only an idea until you make it real::
--- VIP Member ---
webgraphix | webmagic
Anybody know that?
Many thanks
Previous PageNext Page