Learn the inner mechanics of the Window Component fully as if you plan on using it, it pays to be fully prepared :D
Scott http://macrofun.pvpers.com
Andrew Muller wrote:
Ricardo, you should read Full As A Goog, http://www.fullasagoog.com, it's a great way to keep up to date with tips & techniques, I saw a bit of code there which might help you.
Peter Hall is one of the syndicated feeds on the Goog, he has written a bit of code to fix this:
http://www.peterjoel.com/blog/index.php?archive=2003_09_21_archive.xml#106419537806648426
Andrew
P.S. Little secret we're about to announce that Peter will be speaking at MXDU 2004 in February next year, http://www.mxdu.com.
Andrew
Ricardo Russon wrote:
Hi all,
I am using this code to create a mx.containers.Window, and load a movie (or
graphic) into it.
function loadMyContent() {
xFile = theFile.getValue();
import mx.containers.Window;
win = createClassObject(Window, ("window" + count), 0,
{title:xFile,contentPath:xFile,closeButton:true});
win.setSize(getProperty(win.content, _width), getProperty(win.content,
_height));
count ++;
}
"theFile" is the name of my dropDown menu, which triggers the function when
its value is changed.
I am trying to resize the window to the _width and _height of its contents.
is this possible? The results i am getting are rather strange, as each new
window that is created is larger than the last. even if the same content is
loaded.
Hope someone can help me. Thanks
Ricardo.
-- Scott Barnes http://macrofun.pvpers.com
--- You are currently subscribed to fugli as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
