View Full Version : Pirtfolio menu HELP
06-05-2007, 01:24 AM
Hello I'm working on my portfolio site and I'm new on the actionscripting I cant seem to make my buttons link more than 6 images under the parent_parent programming. I'm hoping someone can check on my file and help me understand what parameters do I need to change in order for it to work! PLEASE HELP!
Oops, double posted.......see below
I suggest abandoning the "_parent" method in favor of arrays. They are much simpler and organized. They are simply a list that can be accessed numerically. Depending on how your loading your images..ie...internally or externally.... the easiest method is with an array that contains the image names. Arrays in flash are 0 based, meaning the first item in the arrray is accessed with 0 and not 1. I often use a slight variation called object arrays, which make stacking information a bit easier but that is another topic. A simple object array might look something like this...
Simple as that. Now you can populate it manually or with the "push" method, but for now, simply manually populate the image titles, so the array might look something like...
Notice the quotations around each title. This tells flash that this is to be treated as a string. So, if you have a movieclip to load the images into, you can simply access the titles in the array with something like......
Hope it helps
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.