*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