|
||||||||||||||
. . . . . |
Flash MX ScrollPane Tutorial
In this Flash tutorial we are going to do a slideshow, using the scrollpane to scroll through thumbnail buttons.
When the user clicks on the button in the scrollpane, a larger picture will appear above the scrollPane Component.
Flash Tutorials in Video Format -
Watch them now at LearnFlash.com Add ScrollPane Component
Creating ScrollPane Buttons
Are you interested in going after a job in programming? There are many online college degrees in Information Technology, so you can live your dreams. Find school grants as well as education grants to enable your success. Adding Actionscript to ScrollPane Buttons
Actionscript for ScrollPane ComponentScrollPanes can load in movies from the library via their Actionscript name. Or they can load in external .swf files or .jpg files. To load in an external .swf file, put something like "logo.swf" in the ContentPath parameter. Here is a test script that contains some of the ScrollPane methods. The instance name of the scrollpane is "scroll1". The content of the scrollPane is the movieclip "scroller" in the library.
// set the size
_root.scroll1.setSize(400,100);
// set position
_root.scroll1._x = 0;
_root.scroll1._y = 300;
// set the content path
_root.scroll1.setScrollContent("scroller");
// make it scroll horizontal
_root.scroll1.setHScroll(true);
// get rid of vertical scroll bar
_root.scroll1.setVScroll(false);
//make scroll pane content draggable
_root.scroll1.setDragContent(false);
Resources
More flash MX tutorials |
|
||||||||||||
|
. | Home | Flash MX | Actionscript 2.0 | Flash 3D | Flash 8 | Flash Database | Flash Mobile | Flash CS3 | Java For Kids | Video Course | General Video | Photoshop | Web Design | Digital Photography | Games | free backgrounds | Resume | Streaming Video | Students Work | Links | Contact me | sitemap | reviews | . . |
||||||||||||||