Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ok, Loading issue.. 1

Status
Not open for further replies.

Firehawk734

Technical User
Jan 22, 2002
155
US
Alright here is what I have.

I have a main movie. I have buttons in the main movie. I have a target clip set up directly in the middle.

The way I have been doing things is, when a button is pushed, it loads an external movie into the target clip.

But the way I have been doing it, is defeating the purpose of the loader on my external movie.
Here's an example of the simple code I have been using on the button...

On (realease) {
LoadMovie("external.swf", "_root.targetclip");

then of course, on my target clip I have
OnClipEvent(load) {
play;

This is actually loading the movie before it even shows up i think, correct?? Then when I have the preloader at the start of the external movie, it just skips the preload and goes right into the main scene.

What I am asking is I guess, how do you just call the movie to go into a _root clip without loading it??? Or is there a better way to do this??? Thanks
 
There's no...

then of course, on my target clip I have
OnClipEvent(load) {
play;

...Involved here, unless I'm missing something.

A few questions first...

Why are you loading these movies rather than having them as movie clips included in your main movie? Because of the size in bytes of your main movie?
Are these movies of the same dimensions as your main movie, or at least are they smaller?
Why are you loading them in a container clip rather than on another level?
In those movies, are you using the preloader I suggested to you this morning?
Do you want the movies to play as soon as they are loaded? Regards,

oldman3.gif
 
Why are you loading these movies rather than having them as movie clips included in your main movie? Because of the size in bytes of your main movie?


I dont know how to change clips and stuff around. SO the only way I know is to have a target clip and load in movies. Plus, yeah the size would be well over 1 mb which is bad for 56k users.

Are these movies of the same dimensions as your main movie, or at least are they smaller?

The movies are 800x250. They are designed to fit in the center of the main movie where theres a target clip. see
Why are you loading them in a container clip rather than on another level?
I dont understand levels, like i asked in another thread, if I assign a level to each button, if someone chooses a button that loads to level 5 and then one that loads on level 2, i dont understand how to make the other levels disapear first.

In those movies, are you using the preloader I suggested to you this morning?

Yes, using the preloader you suggested.

Do you want the movies to play as soon as they are loaded?

I want to call the movie in UNLOADED so that the preloader on the external movies will load the movie in, IF THIS IS THE BEST WAY. If not, then you suggest what would be best.
 
Can you help me out with this??? How would I do this with movie clips?
 
Try loading on another level instead! Continuously loading every movie on the same level only, will automatically clear the previous movie that was loaded.

loadMovieNum("yourfirst.swf", 5);

One problem left... The positioning of those movies.
Since they will align themselves to the top-left corner of your main movie (0,0), you'll have to pre-position them within themselves by adding the following on their first frames:

this._x = 25; // offset from top-left corner
this._y = 150; // offset from top-left corner

Of course you may have to test this out a few times, on one movie, but when you've found the right offset to center your loaded movie where you want it, then just apply the same coordinates to all the other movies. Regards,

oldman3.gif
 
Alright man I will try this, and this means that it will not load the movie first, but rather just display it, and so the preloaders on each individual external movie will then load the movie correct?


How could I do this with clips for future reference if i wanted to make all movie clips instead of external movies??

How would i call each clip up and have the others disappear?

Thanks
 
Thx oldnewb its working great now. Just tell me how to do it with clips for future ref :)
 
After this from you in the other thread:

LMAO HHAHAHAHAHAHAHAHAH JERK!

...You must be kidding!

Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top