2/22/2011 7:28:59 AM
Title:
AS3 Scrollpane ineteraction
Ok so I have a scrollpane on stage and it has its content linked from the library. The content has a button in it that if clicked i want some text to change outside of the scrollpane (ie on the root). I tried
mySp.content.button.addEventListener(MouseEvent.CLICK, doThis);
I know in an old AS2 project i used global var, but i dont think this is in AS3 ?
any help would be great
2/22/2011 7:45:58 AM
Why don't you write the event listener inside the library clip and inside click function of the button . Access the textBox at root using following as3 code
var myRoot= root;
myRoot.myText.text= "something"
2/22/2011 9:03:13 AM
Thanking you Otis, this helped loads!