> e.target isn't your loader info, its most likely the Loader itself.
loader.contentLoaderInfo.addEventListener()
The LoaderInfo is the target of the event - that's what you added the event
listener to.
trace(event.target);
[LoaderInfo]
Proof that the LoaderInfo is the target is easily derived by tracing the
event.target.
--------
Why don't you just do this?
loader.filters = [myBevel];
addChild(loader);
On 2/22/2010 5:33 AM, Gregory Boland wrote:
the target is where the event bubbles from, and the currentTarget is what
was applied the listener
so what you are looking for is e.target.content and that is whatever you
loaded in
On Mon, Feb 22, 2010 at 4:57 AM, Susan Day<suzieprogram...@gmail.com>wrote:
On Mon, Feb 22, 2010 at 8:31 AM, Steven Sacks<flash...@stevensacks.net
wrote:
Update this line:
var displayObject:DisplayObject = loaderInfo.loader.content;
Updated:
function loaded(e:Event):void
{
var loaderInfo:LoaderInfo = e.target as LoaderInfo;
var displayObject:DisplayObject = loaderInfo.loader.content;
displayObject.width = 257;
displayObject.height = 257;
displayObject.x = myX + 31;
displayObject.y = myY + 31;
var myBevel:BevelFilter = new BevelFilter();
myBevel.type = BitmapFilterType.FULL;
myBevel.distance = 10;
myBevel.highlightColor = 0xFF0000;
myBevel.shadowColor = 0xFFFF00;
myBevel.blurX = 20;
myBevel.blurY = 20;
displayObject.filters = [myBevel];
addChild(displayObject);
e.target.removeEventListener(Event.COMPLETE, loaded);
}
Did the same thing (no correction). Please advise.
TIA,
Susan
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders