It took me a while to get the hang of arrays, that was luckily in the Javascript days. Arrays are handled the same in AS as in Javascript… man was I glad for that.
Here are some great articles on arrays in Flash if you ever want to read up on them…
Theoretically this should work… however i see certain things that I don’t think belong anymore or things that I have not entered properly… tell me what you think doesn’t make sence
Well… uhh… menuItems doesn’t exist as an array anymore, you change the name…
[AS]for (i=0; i<imagearray.length; i++) {}[/AS]that is what you are looking for
I realize that the first line will make all the images load on top of each other
the second line I’m not so sure what it might do… it might adjust the _y of the new image loaded and offset it that much…
anyway the one thing that is buggion me is no images are loading at all.
the pictures themselves are various heiths… if I make them all a consistant heigth maybe that will fix the odd spacing…
now how do I make the button function work through a mask?
Just do mc.onPress it should work fine. I had to target a button symbol previously because you had a rollOver effect. That isn’t the case here, so you can target the holder clip directly.
by the way Lost… I really appretiate all you’ve been doing. I can never say thanks enough… I bang my head off the wall with the little things i miss and the big things i don’t understand.
now attached is the site I am making for myself… in it is a menu and when you click on the top button “portraits” it should load the menu we just worked out and tried moving it into the “productmenu” movieclip in the library. I then launch it so it loads above the main menu but the pictures wont show… any ideas why they don’t?
You gave your empty clip the instance name “container” and in the script you look for “picturemenu”, that is why the images don’t load. Change the
The up/down buttons don’t work because when you attach the portraits clip you also set it to drag. This sets the main holder clip as a button, rendering all buttons inside it useless (since they are now buttons behind a button). So you will have to remove that part of the code.