First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Michael Neil
1)Create a menu that you want to scroll across the screen. This menu can be buttons, pictures, or whatever you want.
This menu needs to be at least as wide as your canvas
2)Put all of these buttons/pictures/whatever and put them into a movie clip. I had pictures of cars so I called this clip car. 3)Make the car MC into another MC. Your just doing this so you can duplicate it and save file space. We'll call this car2 4)Now add this script to car2 movie clip. [CODE]onClipEvent (load) { car.duplicateMovieClip("car2", 10);//makes a copy of your menu to tack to the end car2._x = car._x+car._width; carStartx = this._x; carSpeed = 6;// this is the speed the menu scrolls no matter what, just change this to change speed } onClipEvent (enterFrame) { xmousepos1 = _xmouse; ymousepos1 = _ymouse; if (xmousepos1>xmousepos2 && ymousepos1>0 && ymousepos1<100) {// the o and 100 should be changed to fit your MC size this._x -= carSpeed+30;// increase or decrease 30 to adjust scroll speed to the left if (this._x<=(carStartx-car._width)) { this._x = carStartx-carSpeed; } } if (xmousepos10 && ymousepos1<100) {//again, change 0 and 100 to fit your MC this._x -= carSpeed-40;// the scroll speed going right, just increase or decrease to change speed if (this._x<=(carStartx-car._width)) { this._x = carStartx-carSpeed; } } if (ymousepos1<0 || ymousepos1>100 || xmousepos1<0 || xmousepos1>732) {// if the mouse leaves the clip it starts playing again, change 0 and 732 to the size of your menu this._x -= carSpeed; if (this._x<=(carStartx-car._width)) { this._x = carStartx-carSpeed; } } xmousepos2 = _xmouse; ymousepos2 = _ymouse; } [/CODE] I've commented all of the scrip that should be changed to fit your menu. It is pretty easy to follow I think. But if you have any question just contact me. I hope it helped. This menu is 2kb in an .swf compared to 22kb in Jeremy's.
» Level Basic

Added: 2007-04-30
Rating: 3.29 Votes: 17
(10 being the highest)
» Author
Michael deals with website maintainence of a large dealership in CA. Also, a dork.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.