Blank gap at the end of a scrollPane?
hello.
i'm having error scroll pane added stage. scrollpane element dynamically created through lines of code. @ end of movieclip contained in scrollpane, though, blank space appears.
this of code i'm working with:
//variables
var sph:int = 307;
var spw:int = 700;
var spx:int = 0;
var spy:int = 80;
var sp:scrollpane = new scrollpane();
var totalmc:movieclip = new movieclip();
//scrollpane properties
sp.setsize(spw, sph);
sp.x = spx;
sp.y = spy;
sp.horizontalscrollpolicy = "off";
//totalmc @ point builded , defined
//add scrollpane scene
sp.source = totalmc;
addchild(sp);
setchildindex(sp, 3);
if add totalmc movie clip stage, gap doesn't show, figured must issue related scrollpane properties themselves.
can out there me out?
thanks.
that looks code problem mc build. trace height , confirm.
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment