Welcome to WebmasterWorld Guest from 54.145.173.147

Forum Moderators: open

Message Too Old, No Replies

autosize popup from flash

   
4:39 pm on May 12, 2007 (gmt 0)

5+ Year Member



Hello all,

Can somebody please show me an example of how to use auto size
popup window in Flash? I would like to load image in popup
window and than resize window to match picture dimensions.

4:19 pm on May 17, 2007 (gmt 0)

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hi akademik,

This is done the same way as you would from a webpage, use javascript and window.open and pass in the window dimensions:


on (release) {

getURL("javascript:window.open('http://www.example.com',
'windowName','location=1,status=1,scrollbars=1,
width=800,height=600');");

}

HTH

[edited by: BlobFisk at 4:20 pm (utc) on May 17, 2007]

11:17 am on May 20, 2007 (gmt 0)

5+ Year Member



Thanks for your reply.

I need window to be resized to dimensions of the picture, so instead of "width=800,height=600" it would resize to match picture dimension. I hope you understand. Thanks again.