Hello everyone. My first time here so go easy on me :sigh:
Ok, i bought a scroller that works well scrolling content. With elasticity and stuff.
My problem is trying to access buttons inside the scroller.
I have an instance of the scroller component on stage and named it Scroller.
I set the content in its component inspector.
It loads a movieclip from the Library called Panel.
Inside the Panel i have 2 buttons. button1 and button2.
If i publish everything works fine.
Now i am not very good at AS3.
How do i access the buttons.
i’ve tried this among other bits and pieces i found on the web.
Scroller.Panel.button1.addEventListener(MouseEvent.CLICK, somefunction);
Can’t get it to work. I know the Panel movie out of the library that the Scroller component loads needs to be somehow listened for but i don’t have a clue.
Aprreciate any help.
i have no idea how to access the buttons without getting an error
1119: Access of possibly undefined property button1 through a reference with static type Class.
Regards
Alfred