It measures the height of the actual content. You'd have to have something onstage at (0,0) for it to start measuring there.
If you need it, write something that retrieves the Y value of the item plus the item's height, where item is the DisplayObject in the loaded SWF. var functionalHeight:Number = item.y + item.height; --Matt On Sun, Jan 25, 2009 at 10:30 AM, Joel Stransky <[email protected]>wrote: > *height not right* > ------------------------------ > Create two .fla's called SizeParent.fla and SizeChild.fla. > In SizeChild draw a square of 20x20 and set it's y to 10. > > Publish SizeChild.swf and place this code on frame 1 in SizeParent > Code: > > import flash.display.*; > import flash.events.*; > import flash.net.URLRequest; > var l:Loader = new Loader(); > l.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete); > l.load(new URLRequest("SizeChild.swf")); > > function onComplete(e:Event):void{ > addChild(l); > trace(l.content.height); > } > > > Shouldn't height be 30? I keep getting 20. > > What gives? > > > -- > --Joel Stransky > stranskydesign.com > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

