Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-18-2002, 08:06 PM   #1
CerebusMX
Registered User
 
Join Date: Oct 2002
Posts: 1
Default Window Resize

Im trying to dynamically construct a flash page that loads a .jpg into a holder, and then resizes the window to match its pixel size. I expect i'll probably need to use FScommand for this, but would like to avoid any html if possible. This page will load different images at different times, so I cannot hard code the pixel size.
CerebusMX is offline   Reply With Quote
Old 10-18-2002, 11:05 PM   #2
jimburton
no sleep til bedtime
 
jimburton's Avatar
 
Join Date: May 2001
Location: Brighton
Posts: 1,322
Default

you will need to use a javascript getURL:

in your movie:

getURL("javascript:window.resizeTo(loadedJPG._widt h,loadedJPG._height);");

this will only work if the window is one that you opened yourself using javascript window.open method...
jimburton is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:53 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.