Hey guys, this is my first post, so excuse me if I misbehave ;>

I'm trying to come to grips with scrollRect.

I have applied it to a MC, no problem, using a new Rectangle. I can see the width, height, x, and y of the scrollRect, but I can't change them.

Here is my code:

var rect:Rectangle = new flash.geom.Rectangle(475,41,286,as2obj.main.length*20+8);
mainMenu.scrollRect = rect;

And this will tell me the height of the scrollRect:

trace(mainMenu.scrollRect.height);


But how do I change the height? This doesn't work:

mainMenu.scrollRect.height = 50;

So I'm guessing it's properties can be tested but not set?
The docs (http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00002513.html) don't list the properties of scrollRect so I'm kinda shooting in the dark here.

Do I have to change the Rectangle's height? How do I access that?

Thankyou for your time.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to