After searching the forums to find my solution I am confused and will ask for help
I have a flash file that has a button. This button has script:
code:
on (release) {
_root.nav.gotoAndPlay(32);
loadMovieNum("flashx.swf", 1);
}
So as you can see the button is in a MC that is instanced "nav" that is on the main timeline and when pressed will jump to frame 32 in the "nav" timeline. Then it will call up "flashx.swf" and put it on level 1.
Now in "flashx.swf" I have multiple buttons. The buttons have script as well:
code:
on(release) {
loadMovieNum("gallery.swf", 1);
}
Each button calls up "gallery.swf" and replaces "flashx.swf".
So far everything works. The part that isn't is this:
Each button in "flashx.swf" will have to goto a certain frame in "gallery.swf". I have been unsuccesful at achieving this I even tried giving the frames in "gallery.swf" that I want to goto a frame label.
May I ask why you would be loading your gallery.swf on level 0, thus clearing out your main movie? Is it just because of the link I posted that suggested loading on level 0?
Another question, what about returning to the flashx.swf to possibly make another selection, did you have some idea how you would do it from the gallery.swf?
Flashx is being loaded from another Flash file which works fine when loading it into level1 (disregard the level0). When one of the buttons in Flashx is pressed it loads Gallery into level 1 and this works fine as well.
After relaxing from work last evening I was able to focus more and found something that worked on the forums (some of your handy work).
I put this script on one of the buttons in Flashx:
When I played it from the main flash file (the one that flashx and gallery are called into) it works great!
What do you think? Any ways to improve it?
As for the question of how to get back from gallery to flashx I made a back button in the main flash file and had it call back flashx when I wanted to get out of gallery and back to flashx. Hope this makes. Sense.
I worked on a slightly different version, loading gallery on level 2 (with a back button to go back to level1 - flashx), and included a preloader if the gallery contains heavy pictures and/or other stuff... But basically what you have posted above should work, at least when gallery is fully loaded. Might not work on the first click, if it's not fully loaded, but that's another story.
I've been meaning to ask you about that. In some of your posts you comment how it is important to make sure that the .swf file is fully loaded. I am assuming you mean that when you can see it then it's fully loaded? I'm not making this for the web but for a CD. Does it make a difference?
This would really only be a problem online... On a CD, you can't use a preloader anyways. Note that if your using a projector file, it will freeze until everything is loaded into ram...
I'd have to complete it, and clean it up... And you probably don't need the preloader bit... So can't really do that until tonight at least. You'd also have to PM an e-mail or enable your PMs (private messages), so that I can send you a link...
I'm no longer publicly posting links to my personal web spaces or attaching extensive actionscripts on these forums. Sort of like your pictures... I'm sure you'll understand!