ok - so:
holder.addChild(loadEvent.currentTarget.content);
becomes:
addChild(loadEvent.currentTarget.content);
??
but how do I target the mc’s inside it?
I’ve tried to simplify it but I dont think Im getting it:
var request:URLRequest = new URLRequest("dalesview_work.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
loader.content.p301.addEventListener(MouseEvent.CLICK, showToolTip);
function showToolTip() {
trace('Plot 301')
}
Basically Im tyring to load in a siteplan that has different plots in it - I’ve already been through the site plan & labelled each plot/movie clip as ‘p1’ ‘p2’… etc.
My main swf is just going to be the interface, loading in different siteplans - then showing tooltips with info over the diff plots.
I’ve got lots of XML stuff happening too & it’s the kind of thing i;ve done in AS2 but Im just not getting this child thing in AS3.
The above code returns an error: ‘access of possibly undefined property’ which I suppose is all the plots I’ve manually labelled?? Do i need to data type these in a loop?