PDA

View Full Version : 2A style actionscripting?!


yk0713s
01-21-2002, 11:56 PM
What I am going to ask you is something that made me trouble so much that I couldn't eat, sleep & talk several days. It's very important to me.
Pleae help me guys..
I just got uploaded my website. It's at http://www.youngnak.ca/KM/groups/ynkcc3/
I spent months to bulid this.. There are buttons like rx-7, profile, portfolio etc.. When you press one of those buttons, it's supposed to import & load that section of flash movie into main movie which is already showed. And it's working okay but.. the problem is the main movie suposed to hold showing that importing movie until it knows it's all downloaded then once it's downloaded it's supposed to show it. I want to know the actionscript to make this working..

Please help me...

Jesse
01-23-2002, 01:10 AM
I'm a little confused. Do you mean the "loading ... stand by" is supposed to stay up until the movie in the background is loaded? I'm on a fast connection so it's hard to tell but there was one occasion when the loading animation dropped down and I still ahd to wait a few seconds for the content to show behind it...

yk0713s
01-23-2002, 05:12 AM
"there was one occasion when the loading animation dropped down and I still ahd to wait a few seconds for the content to show behind it..."

Yes. That's the one. I set up the code like main movie should preload the importing movie. But the code seems to be not working properly..

Here are main pieces of codes I used to preload..

loadMovieNum ("profile.swf", 2);

ifFrameLoaded ("_level2", "end") {
gotoAndPlay ("begin");
}

I import profile.swf into level2 layer then in main movie it checks if level2 is preloaded or not. When it's loaded it shows.

Guess this code is really not working.

I don't know which pieces of codes 2A uses but their old website's working on seperate swf file. And main movie do preloads each seperate importing swf file

Pardon my English is not really good.

Thanks for helping me out.

Jesse
01-25-2002, 05:24 AM
You can't use ifFrameLoaded in this case. _level2 is not valid syntax there. Use getBytesLoaded() and getBytesTotal(). See the Flash 5 preloader tutorial (in the Intermediate section) for more info. Your code will be something like:

if (_level2.getBytesLoaded() == _level2.getBytesTotal() ) {
// loaded
} else {
// not loaded, loop
}