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.





-- Andrew Muller Senior Macromedia Certified Instructor - ColdFusion, Flash Certified Advanced Macromedia ColdFusion Developer - CF5, CFMX Certified Macromedia Flash Developer - FL5, FMX

Daemon Internet Consultants
Macromedia Premier Solutions Partner

Macromedia Certified Training
http://www.daemon.com.au/go/training

T: 61 2 9380 4162
F: 61 2 9380 4204
17 Roslyn Gardens
Elizabeth Bay NSW 2011 AUSTRALIA

Daemon: Serious Web Development

FarCry, the open source CMS for ColdFusion MX
http://farcry.daemon.com.au/


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