callie16
12-17-2007, 09:33 AM
hi, i'm pretty new at this so please bear with me :)
i have something like this in my mxml file:
<canvas>
<vbox>
<vbox />
<canvas />
<vbox />
</vbox>
</canvas>
now, this is what's supposed to happen... the whole thing is stored in a draggable panel, which is instantiated during runtime. after that, the inner canvas gets zoomed out (so that the contents would fit the panel). then, after that finishes, the inner canvas is centered... which i accomplish using <mx:Move>
however, once i do a move, the content gets clipped because the horizontal scroll bar stays at 0... i've tried moving it a number of ways (such as manipulating the horizontalScrollPosition) but since the maxHorizontalScrollPosition always seems to be 0, i can't do anything.
is there a better way of doing this? any help would be appreciated and thanks!
i have something like this in my mxml file:
<canvas>
<vbox>
<vbox />
<canvas />
<vbox />
</vbox>
</canvas>
now, this is what's supposed to happen... the whole thing is stored in a draggable panel, which is instantiated during runtime. after that, the inner canvas gets zoomed out (so that the contents would fit the panel). then, after that finishes, the inner canvas is centered... which i accomplish using <mx:Move>
however, once i do a move, the content gets clipped because the horizontal scroll bar stays at 0... i've tried moving it a number of ways (such as manipulating the horizontalScrollPosition) but since the maxHorizontalScrollPosition always seems to be 0, i can't do anything.
is there a better way of doing this? any help would be appreciated and thanks!