why do you need padding around the flash movie?? can't you replicate the effect inside the flash movie?
to add this to swffit you will you probably only need to change the methods setPosition() and setSize() to adapt the border around the flash movie..
if you need only the minimum size (no rescaling or maximum size) I would recommend creating a new script from scratch.. because then it will fit better to what you need to accomplish - you will need to change a lot swffit structure and depending on how you do it it's going to be "tied" to this specific project and wouldn't be useful to other projects.
just to make it easier to change the code here is a "documentation" of the private vars that swffit uses to store all data:
_ft, //{Element} object element (flash movie)
_re, //{Boolean} has resize event listener
_t, //{String} object id
_mw, //{int} min width
_mh, //{int} min height
_xw, //{int} max width
_xh, //{int} max height
_hc, //{Boolean} horizontal centered
_vc, //{Boolean} vertical centered
_ow, //{int} object width
_oh; //{int} object height
sorry for not using better names for the vars (like: _minWid, _minHei, etc..) I've done this way to reduce the file size and be able to deploy swffit just removing the line breaks and unnecessary spaces.. (maybe I should change it in the future and use YUI compressor to deploy..)
good luck!
--
Miller Medeiros |
www.millermedeiros.com