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.



---
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

Reply via email to