If I load a movieClip into my scrollPane, how do I set the boundries so the movieClip stays inside the scrollPane? I am using this code to get the scrollPane boundries.
ActionScript Code:
[FONT=Courier New][LEFT]</p>
<p>var bounds_obj:[COLOR=#0000ff]Object[/COLOR] = room.[COLOR=#0000ff]getBounds[/COLOR]COLOR=#000000[/COLOR];</p>
<p>for [COLOR=#000000]([/COLOR][COLOR=#000000]var[/COLOR] i [COLOR=#0000ff]in[/COLOR] bounds_obj[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]</p>
<p> [COLOR=#0000ff]trace[/COLOR][COLOR=#000000]([/COLOR]i+[COLOR=#ff0000]" --> "[/COLOR]+bounds_obj[COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR][COLOR=#000000])[/COLOR];</p>
<p>[COLOR=#000000]}[/COLOR]</p>
<p>
[/LEFT]
[/FONT]