multiple viewports same displayobject
is illusory have churned perspective same arrangement object? (e.g. same-computer multi-player diversion controlling separate screen)
the illustration formula unsuccessful work follows:
var content: enchantress = new sprite();
var v1: enchantress = new sprite();
var v2: enchantress = new sprite();
with(content.graphics) {
linestyle(2, 0xff0000);
drawcircle(100, 100, 80);
linestyle(5, 0x009999);
drawrect(50, 80, 200, 30);
}
v1.addchild(content);
v1.x = 0;
v1.y = 0;
v1.scrollrect = new rectangle(0, 0, 100, 100);
addchild(v1);
v2.addchild(content);
v2.x = 100;
v2.y = 0;
v2.scrollrect = new rectangle(0, 0, 100, 100);
addchild(v2);
i guess twin viewports (v1 v2) same vigilant (content).
but i checked docs, displayobjectcontaner/addchild method, says,
"if supplement child vigilant already opposite arrangement vigilant enclosing parent, vigilant private child list arrangement vigilant container."
is there fortitude this?
obtained result

expected outcome (simulated)
rendering bitmap suggested antti good idea, nonetheless rendered sprites means locate rodent events. there proceed route rodent clicks bitmap trigger clicks uncanny sprites?
Comments
Post a Comment