This content has been marked as final. Show 8 replies
WOW! Janst, that's a lot of stuff, I think you could streamline this a little by using an array and some loops, also I've never seen onEnterFrame used like that, it's usually used for looping functionality and will continue to run until stopped.
I'd also recommend using a MovieClipLoader rather than loadMovieNum, and the level depth can be assigned by the loop index, same is tru of the buttons, you can assign a function that will loop through all of the 'other' buttons and turn them off.
Here an example of this approach:
Thanks! I am going to try this approach. The other scenario works fine for small websites but it seemed ridiculous when I was putting together this bigger website. Of course, I am always designing some unusual interface so the drop down menus and such that come with the Flash samples (which I am very grateful for... I look at the code a lot on those) don't seem to apply verbatim...
I'm just stumbling along! ...and I have taken a number of courses over the years too!
Does the "setPage(0);" set the current swf as '0' or the first swf in the string as '0'?
Sorry, I'm so dense about this!
oh... I can't get this to work yet...
Hey no worries, sorry I've been out. setPage(0); just triggers the function and sets the first page to 'visible' which looked like what you were wanting to have happen there.
What seems to not be working? are you getting a particular error message?
At the moment, nothing is happening when I press a button...
OK, is the first page coming up and visible?
I was just guessing as to the path from the button in the 'nav bar' as being _parent, try replacing it with _root.setPage(#);
I have it working, thanks!