all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

A movieclip with dynamic pics! Is it possible?


A movieclip with dynamic pics! Is it possible? John Rock
7/20/2004 8:52:40 PM
flash actionscript:
Hi,

I'm trying to do a dynamic "3D rotation" feature for products. The "3D
rotation" is actually a movieclip made up of 8 frames, each containing a
picture of the product at a different angle.

Because I want this to be dynamic, I want to use 8 movieclips instead of
pictures so I can load a dynamic JPEG in each, depending on the product I'm
viewing.

This doesn't seem to be working. If I stop the "3D rotation" movieclip on
load, I see the first JPEG load up like it should. If I try to play the
movieclip, I loose the loaded image(s).

What am I doing wrong?

Thanks!
Re: A movieclip with dynamic pics! Is it possible? Lord Yoda
7/20/2004 10:46:45 PM
Your email doesn't quite make sense. You say that you want to use 8
clips, but the last paragraph implies that you are still using one clip.

Whatever you do, when you load a jped into a movie clip, load it into a
*clip within a clip*. The process of loading a jpeg destroys all code,
variables, child clips and ANYTHING that was inside the clip before you
loaded.



[quoted text, click to view]
Re: A movieclip with dynamic pics! Is it possible? John Rock
7/21/2004 9:15:31 PM
I have a main movie clip with 8 frames (this is the one I want to play). Each
frame within the main movie clip contains a movie clip, so I can load a jpeg in
each frame. But when I play the main movie clip, it's like all the loaded jpegs
disapear, resulting in a blank movie.

So you think I should put a clip inside each of the 8 clips to load the jpegs?

Thanks for your help!
Re: A movieclip with dynamic pics! Is it possible? Lord Yoda
7/21/2004 10:49:34 PM
Yeah, never use loadMovie on a clip that contains code or anything else.
Everything will be erased - all code, variables, everything. Always
use a child clip whose sole purpose is to contain the bitmap or whatever.


[quoted text, click to view]
tanguay@eyenok.com John Rock
7/22/2004 3:21:03 AM
Well that isn't the problem since I don't have any code in the 8 clips. If I
put a stop(); in one of the clips, I'll see the loaded jpeg. But as soon as I
try to play the main movie to advance to other frames, I loose all the jpegs,
even the one that I looking at while stopped.

Now why is that happening? Any alternatives to load dynamic images?
AddThis Social Bookmark Button