# Need some help here guys

**URL:** <https://forum.kirupa.com/t/need-some-help-here-guys/22183>\
**Category:** Uncategorized\
**Created:** [May 31, 2003, 5:12pm UTC](https://forum.kirupa.com/t/need-some-help-here-guys/22183 "2003-05-31T17:12:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![p020385](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/p020385/32/230_2.png) [@p020385](https://forum.kirupa.com/u/p020385)\
**Post date:** [May 31, 2003, 5:12pm UTC](https://forum.kirupa.com/t/need-some-help-here-guys/22183/1 "2003-05-31T17:12:22Z")

</div>

hey guys… I have a question that i would like u all to answer. How to load a jpg file into flash so as to lower the time needed to download? There are a lot of web site featuring this and they even have a small loading word and all look so cool. Hmmm… I really need detail steps to do this as i am little stupid… thanks guys!!!C:-)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 31, 2003, 5:30pm UTC](https://forum.kirupa.com/t/need-some-help-here-guys/22183/2 "2003-05-31T17:30:41Z")

</div>

[http://www.kirupa.com/developer/mx/loading.htm](http://www.kirupa.com/developer/mx/loading.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 31, 2003, 5:48pm UTC](https://forum.kirupa.com/t/need-some-help-here-guys/22183/3 "2003-05-31T17:48:38Z")

</div>

thats the problem i still dont under stand

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 31, 2003, 6:00pm UTC](https://forum.kirupa.com/t/need-some-help-here-guys/22183/4 "2003-05-31T18:00:02Z")

</div>

its a step by step tutorial, it can’t be explained much better than that…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 31, 2003, 10:42pm UTC](https://forum.kirupa.com/t/need-some-help-here-guys/22183/5 "2003-05-31T22:42:45Z")

</div>

> There are a lot of web site featuring this and they even have a small loading word and all look so cool.

If you want the word loading there, you could put that in static text on the stage and the jpg will load on top of it. If you want an actual preloader, I think you would have to make a different swf file and load in the movie instead of the jpg.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 1, 2003, 3:19am UTC](https://forum.kirupa.com/t/need-some-help-here-guys/22183/6 "2003-06-01T03:19:33Z")

</div>

hey thanks a lot guys…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 1, 2003, 5:08am UTC](https://forum.kirupa.com/t/need-some-help-here-guys/22183/7 "2003-06-01T05:08:16Z")

</div>

actually, you dont neccessarily have to have another swf with the jpg loaded into it…what you can do is load the jpeg into a movie clip like this…

mc.loadMovie(“pic.jpg”);

now as far as a preloader goes do something like this…

//load movie and pic  
\_root.pics.pic\_spot.loadMovie(\_root.galleryPic);

//loading seq  
this.createEmptyMovieClip(“preloader”, 1000);  
pic\_spot.\_visible = false;  
preloader.onEnterFrame = function() {  
var l = pic\_spot.getBytesLoaded();  
var t = pic\_spot.getBytesTotal();  
per = Math.round((l/t)\*100);

```
if (l&gt;0 && l&gt;=t) {
	gotoAndPlay(13);
	pic_spot._visible = 1;
	delete this.onEnterFrame;
} else {
	_root.pics.loadBar._width = per;
	_root.pics.load_txt = per+"%";
}

```

};

“pic\_spot” here is the movie clip i loaded my pics into…all im basically doing is loading a pic into it and then turning the visibility off, grabbing the size of it and the size of it thats been loaded…your basic preloader kinda deal…

hope that helps

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 1, 2003, 5:14am UTC](https://forum.kirupa.com/t/need-some-help-here-guys/22183/8 "2003-06-01T05:14:20Z")

</div>

You know, about an hour ago, I thought of the same thing in a similar post:  
[http://www.kirupaforum.com/forums/showthread.php?s=&postid=208470#post208470](http://www.kirupaforum.com/forums/showthread.php?s=&postid=208470#post208470)  
I’ve just never done that, thanks!!
