homepage Welcome to WebmasterWorld Guest from 174.129.76.87
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
autosize popup from flash
akademik

5+ Year Member



 
Msg#: 3338137 posted 4:39 pm on May 12, 2007 (gmt 0)

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.

 

BlobFisk

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



 
Msg#: 3338137 posted 4:19 pm on May 17, 2007 (gmt 0)

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]

akademik

5+ Year Member



 
Msg#: 3338137 posted 11:17 am on May 20, 2007 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved