all groups > flash actionscript > march 2005 >
You're in the

flash actionscript

group:

Perplexed about loading images into a mc.


Re: Perplexed about loading images into a mc. (_seb_)
3/16/2005 7:18:29 PM
flash actionscript: This is a flawless test:

1. your swf is in the same folder than your jpg.
2. your swf has an MC, centered in the stage, in the first keyframe main
timeline, this MC has an instance name "imgLoader".
3. in first keyframe of your main timeline, put the code:
stop();
_root.imgLoader.loadMovie("my_jpg.jpg");

If your jpg doesn't load, your jpg is progressive.

[quoted text, click to view]

--
Perplexed about loading images into a mc. conquerors04
3/16/2005 11:37:24 PM
Sorry guys but I am going to sound like I shouldn't be programming with this
question. I started out trying to use the loadMovie command to load an image
into a static or dynamically created mc (using createEmptyMovieClip). It
wouldn't show up with I tried that. Now I have moved onto using the loadClip
function and some interesting things are happening. I am using the
onLoadStart, onLoadProgress and onLoadComplete functions to see if the picture
loads and they all say I am loading the picture. In other words, because of
the byte count the loadedBytes is returning, I know the picture is being
loaded. But when it finishes loading, the picture does not show. It's not a
progressive JPG, and the movieclip will not show anything else either, the
attachMovie is not showing it's content, nothing, anybody have that happen?
Any thoughts would be appreciated!
Re: Perplexed about loading images into a mc. conquerors04
3/17/2005 1:04:58 AM
Hey guys, sorry I just got back, both of you were right! I was doing this
number: _root.createEmptyMovieClip('frame_mc', 0); frame_mc._x = 0;
frame_mc._y = 0; frame_mc._width = 600; frame_mc._height = 480; I don't know
why I did this, but that messed me up all day, what a waste. Thanks both of
you all for your help!
AddThis Social Bookmark Button