PDA

View Full Version : Dynamically loading images into movie clip or button


century2k
06-04-2004, 09:51 AM
Hi

I'm having a real problem trying to load a dynamic image into a movieclip or button. Does anybody have a good starting point for me as I've used a button to initiate the load but I cannot get the image loaded when the movieclip loads (which is what I trying to acheive)

Cota
06-04-2004, 10:08 AM
Post your code so we can take a look at it.

century2k
06-04-2004, 10:17 AM
This is what I am using which displays the image in the movieclip, but what I want to do is fix the size of the .jpg in the movie clip.

this.mcGame.loadMovie("tests/apaches.jpg");

Cota
06-04-2004, 10:37 AM
But you said it wasnt loading?
You can change the size of the image by changing the size of the container MovieClip, you could use this._xscale and this._yscale

century2k
06-04-2004, 10:57 AM
I got it loading shortly after my first post - but thanks for that, it now works fine.