I have a line at the top of my screen, that I want to come down (with a big black mask behind it) and wipe the contents off the screen - then load a page into another level - then the line to go back up and expose the new page.
Make sense?!
I've been doing this...
on (release) {
_level3.gotoAndPlay("action");
loadMovie("whatwedo.swf", 1);
}
Where "action" is the first frame of my line moving on level 3.
and I'm wanting to load "whatwedo.swf" onto level 1 (so that its behind)
When I run it, I don't see the action, but whatwedo pops up instantly.
I was hoping to have some sort of actionscript to say...
on (release) {
_level3.gotoAndPlay("action");
NOW WAIT 15 FRAMES - THEN
loadMovie("whatwedo.swf", 1);
}
Originally posted by SURDY you could make an empty movie clip with 15 frames in. then put an action on frame 15 for what u want to happen every 15 frames
You could use setInterval() if it worked properly.
here are all the files zipped up.
Struggling to send cause I'm on my laptop with my bluetooth mobile as a modem!
the file to run is kss. you will need to publish them all.
Basicly, I want the bar at the top to come down when you click a button (I have only sent contact), which will cover whatever is on the screen, then load the new file, and then the bar to go up again.
The bar does go down and the file loads, but it wont come back up!
So basically all you want is to wipe out whatever content is on screen, load the new content (according to the button pressed), and "unwipe" the new content. You say hold for 15 frames, but don't you really mean hold the time it would take for the content to be loaded, at least on the initial download of these external content movies?
I also gather, you would have something on screen at the beginning of this movie, like a home page content, which would have to be included in this main movie, or also loaded as external content. In that case would you be adding a home button, if the user wanted to come back to it after checking out some other menu item?
In your function in some of your buttons, what does the "i" variable stand for? Was that in relation with the 15 frames hold you wanted to occur?
Yeah, your assupmtion as to what I'm doing is correct.
The fist page will have something there, but I'm just trying to get it all sorted before I go any further.
I have finished the WHAT WE DO page, which has its own pre-loader and is about 65k.
This is going to be the only large filed page I think, so I'm not worried if the bar goes up to reveal the pre-loader for a few seconds.
The "i" just now represents the 14 frames that it takes for the bar to go down.
If you can come up with any better ways of achieving the same effect (but still being able to keep all the pages as seperate levels) I'd be most grateful!
Working on some other problems posted for now... But basically, you're really looking for a sort of sliding door effect, which closes, loads the content, and opens up.
That can be done in one clip, no need for 2 clips.
Pseudo code is...
Press a button, that passes a content variable and has the wipe clip close. When closed, on a stop action, the content .swf according to the variable passed is then loaded, and when it is, plays the wipe clip that opens up.
Usually on this kind of set up, the external content .swf is loaded in the same empty holder clip on stage (you shouldn't unload the previous movie, no need to when loading in the same holder clip or on the same level), and only the wipe clip is loaded on another level, to hide the content holder clip.