Flash Gallery
- Started
- Last post
- 6 Responses
- zoiks
Done several tutorials but haven't accomplished what I want yet.
I have an empty mc and I want to display progress of the loading jpg or swf. depending on what portfolio piece is clicked.(this will be a gallery of images).
I want to use the same instance of the preloader in my main movie instead of makinng each dynamically loaded image into a movie that has it's own preloader.
- zoiks0
EXAMPLE
~~~~~~~~~~~~~~~~~~~
http://www.yerinmok.com/
~~~~~~~~~~~~~~~~~~~
- zoiks0
bump
- fugged0
http://www.alien109.com/WALC.as
A quick and dirty loader class that should get you on the right track...
Just download the file above and either do an include or copy and paste.
- fugged0
ooops,
remove the very last line. it was fer testin'.
- zoiks0
Thanks! I will check it out.
- kinetic0
loader code inside a movieclip on frame 2
loaded = Math.round(_parent.newholder.get... / 1024);
total = Math.round(_parent.newholder.get... / 1024);
percent = Math.round(loaded / total * 100);loadBar._width = loadBarHousing._width * (percent / 100);
frame 1 is stop and frame 3 is:
if (percent == 100){
gotoAndPlay(4);
} else {
gotoAndPlay(2);
}your img loading code:
MovieClip.prototype.loadImg = function(jpeg,x,y) {
this.createEmptyMovieClip("newho...
this.newholder._x = 158;
this.newholder._y = 100;
loadMovie(jpeg,newholder);
imgLoader.gotoAndPlay (2);
}imgLoader is the clip that houses the loader code
quick and dirty