This seems to be working fine for me, unless I'm missing something... I
copied your code into its own layer on frame one.  I then dropped the
ScrollPane component into my library.  Created a new MovieClip, exported
it for ActionScript and gave it an identifier of mcEventText.

When I run the swf, it creates the scrollpane, adds the mcEventText
MovieClip and resizes its self to the desired dimensions.  If the
mcEventText clip is larger than 292x180 the pane scrolls correctly.  I
added a TextArea component and a TextInput component to the mcEventText
clip and it still seems to work fine... 

The TextArea will have *its own* scroll bars within mcEventText, and
won't run off the pScrollPane scroller  - so you would have nested
scrollpanels.  Are you trying to get the scrollbars of the textfield to
use the ones from psScrollPane?


DC Holth


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [p e r c
e p t i c o n]
Sent: Sunday, July 01, 2007 12:13 PM
To: flashcoders
Subject: [Flashcoders] scrollpane woes

hi experts,
i'm trying to stick a movieclip with a textfield nested inside it into a
scroll pane (component)...even though the text is in the pane the
scrollbars
are not adjusting themselvs nor does the pane scroll...here;s the
code...

        pScrollPane = this.attachMovie("ScrollPane", "sPane", 0);
        pScrollPane.setStyle('borderStyle', 'none');
        pScrollPane.tabChildren = false;
        pScrollPane.tabEnabled = false;
        pScrollPane.__hScrollPolicy = "auto";
        pScrollPane.__vScrollPolicy = "auto";
        pScrollPane.contentPath = 'mcEventText';

        pScrollPane.setSize(292, 180);
        pScrollPane._x = mcEventText._x;
        pScrollPane._y = mcEventText._y;

any ideas?

thanks

p
_______________________________________________
[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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
_______________________________________________
[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

Reply via email to