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!

load movie 2

Status
Not open for further replies.

z35

Programmer
Dec 21, 2001
206
US
hi there!

when I use the load movie action script to load a movie automatically, there is a blink...and then it loads....it's not smooth. is there a trick or alternate method to smoothen this out?

please give me your thoughts. thank you all so much...

 

This should answer your question and, in my mind, deserves a vote on your part!

Regards,

oldman3.gif
 
hi oldnewbie,

i'm still trying to figure this out. the second link sounds like it might work...

the first post seems to be a proloader. i dont think it will work.

 
i figured out how to get rid of the flicker. thanks oldnewbie for directing me to that thread on flashkit.

question:
MovieClip.loadMovie("movie.swf");

how do i know what goes in place of "MovieClip"??
 
my container movie is portfolio.swf and it automatically loads project1.swf, project2.swf, project3.swf

i can't figure out the container name. would i use

portfolio.loadMovie("project1.swf")

or

_root.loadMovie("project1.swf")

i am still scanning the actionscript reference guide...
 
i got this code from a flashMX forum....i hope it will work in flash5.0 because thats what i have.

otherwise i'm stuck. i think it will though. do you know?

// removes the flicker when loading
// just place this on the first frame on the movie
// or include it on the first frame
_global.__ld = 777;
MovieClip.prototype.myloadMovie = MovieClip.prototype.loadMovie;
MovieClip.prototype.loadMovie = function(_murl, _method){
var my_mc = this._parent.createEmptyMovieClip(this._name+"_temp_mc", _global.__ld++);
my_mc._x+= -1000000;
my_mc.myloadMovie(_murl, _method);
this.onEnterFrame = function(){
if(my_mc.getBytesLoaded() == my_mc.getBytesTotal() && my_mc.getBytesTotal() > 0){
var xpos = this._x;
var ypos = this._y;
var mname = this._name;
this.swapDepths(my_mc.getDepth());
my_mc._x = xpos;
my_mc._y = ypos;
delete this.onEnterFrame;
this.removeMovieClip();
my_mc._name = mname;
}
}
}
 
Nope! Don't really know if it will work with 5.

If it doesn't, maybe the first link I gave you, would.
Even if it's a preloader kind of thing, eliminating the delay, may eliminate what you described as a flicker! Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top