alexfierro
2-9-05, 09:44 PM
Hey all,
Quick question! I am working on a Flash animation and I have nice 128 x 128 buttons. I need these buttons to dynamically load JPG graphics so that my client can merely update the pictures on the server to update the flash.
For example, I want the button to load www.MYSITE.tld/1.jpg as the graphic part for the button. And when my client wants to change the look of his button, all he has to do is replace 1.jpg with his own jpg.
Here's what I tried...
_root.createEmptyMovieClip("container",1);
container.loadMovie("photo.jpg");
container._x = container._y = 50 ;
_root.onMouseDown = function () {
startDrag ("container",false) ;
}
_root.onMouseUp = function () {
stopDrag () ;
}
I put in the ActionScript of the button that needs the dynamic image, but instead it just plops it in the middle of the SWF, instead of where I need it! Please Help!
Quick question! I am working on a Flash animation and I have nice 128 x 128 buttons. I need these buttons to dynamically load JPG graphics so that my client can merely update the pictures on the server to update the flash.
For example, I want the button to load www.MYSITE.tld/1.jpg as the graphic part for the button. And when my client wants to change the look of his button, all he has to do is replace 1.jpg with his own jpg.
Here's what I tried...
_root.createEmptyMovieClip("container",1);
container.loadMovie("photo.jpg");
container._x = container._y = 50 ;
_root.onMouseDown = function () {
startDrag ("container",false) ;
}
_root.onMouseUp = function () {
stopDrag () ;
}
I put in the ActionScript of the button that needs the dynamic image, but instead it just plops it in the middle of the SWF, instead of where I need it! Please Help!