iluvperl
Programmer
- Jan 22, 2006
- 107
I am not familiar with flash, so I need a simple copy/paste solution.
I have an image viewer that loads an image from a directory, but it turns out I was told it's NOT possible to resize the flash scene dynamically and it has to be coded in the swf.
Since this isn't possible, I need to resize every image down to fit the screne. I assume Flash can do this but I only want it to resize down if it's too large, otherwise keep it how it is.
Now the issue I see with this is, for small images they'll load WHERE in the scene? In the center? That wouldn't be so bad.
Can anyone give me a hand here?
This is my entire swf file which takes a URL as a param.
_root.createEmptyMovieClip("holder",0);
_root.holder.loadMovie(pic);
I have an image viewer that loads an image from a directory, but it turns out I was told it's NOT possible to resize the flash scene dynamically and it has to be coded in the swf.
Since this isn't possible, I need to resize every image down to fit the screne. I assume Flash can do this but I only want it to resize down if it's too large, otherwise keep it how it is.
Now the issue I see with this is, for small images they'll load WHERE in the scene? In the center? That wouldn't be so bad.
Can anyone give me a hand here?
This is my entire swf file which takes a URL as a param.
_root.createEmptyMovieClip("holder",0);
_root.holder.loadMovie(pic);