macsym
07-12-2004, 06:36 PM
Hi everybody,
I am trying to dynamically attach a window component and autosize it according to its content path. I had no problem to attach a window but how to automatically set its size?
I tried:
myWindow.setSize(myWindow.contentPath._width, myWindow.contentPath ._height);
Unfortunately,
trace (myWindow.contentPath._width);
trace (myWindow.contentPath._height);
returns “undefined” for both values.
Do you have an idea of how I could get a window autosized according to its content movie clip?
I am trying to dynamically attach a window component and autosize it according to its content path. I had no problem to attach a window but how to automatically set its size?
I tried:
myWindow.setSize(myWindow.contentPath._width, myWindow.contentPath ._height);
Unfortunately,
trace (myWindow.contentPath._width);
trace (myWindow.contentPath._height);
returns “undefined” for both values.
Do you have an idea of how I could get a window autosized according to its content movie clip?