How to adjust flash banner to screen resolution?

I have a flash banner width that is over 900. However, I have a small screen/screen resolution and I have to scroll over to view the rest of the content. How can I incorporate the flash banner with the javascript to adjust the size accordingly?

Thank you,

hello,

if you want to adjust it by resolution you can create your embed code with javascript and when providing width and height you shoud provide


var _w = screen.width;
var _h 0 screen.height;

but probably you want to resize flash movie to a window width and height that can be easily done with jquery


$(document).ready(function(){
  var _w = $(window).width();
 var_h = $(window).height();
});