Hi all.
Having some problems with the v2 scrollpane.
I'm trying to pick up where this post:
http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2005-January/128299.html
leaves off.
Basically, the content 'outside' my scroll pane is not being masked off,
and by reading the post above, I've got this bit of code:
private function createChildren():Void {
viewport = ScrollPane(createObject("ScrollPane","viewport",
depth++));
viewport.contentPath = "TimeLineBackground";
viewport.addEventListener("complete", this);
viewport.move(0,0);
timeLineBG = viewport.content;
timeLineBG._width = 600;
viewport.doLater(this,"forceScrollPaneRefresh");
viewport.addEventListener("scroll", this);
}
private function forceScrollPaneRefresh(){
viewport.invalidate();
viewport.redraw(true);
trace ("viewPort redrawn");
}
private function scroll(){
viewport.doLater(this,"forceScrollPaneRefresh");
trace("scrolled");
}
This is all within a component that extends UIComponent. I can see the
events are getting fired and handled from the traces. Am I
misunderstanding what I'm supposed to do?
Thanks./
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com