5/11/2011 12:34:31 PM
Title:
Buttons dont work within Scroll Pane
I am trying to create my personal timeline. I have created a scrollable table with dates written on it, and iwould like to click on the dates and images or text wil appear somewhere else. If the table is not withen the scroll pane all is ok, within the scroll pane nothing happens.
Any help
Thanks
Lizio Buhagiar
Malta
5/12/2011 4:57:50 AM
Hi can u plz clear ur query.....or past ur code here
5/12/2011 5:46:22 AM
you mean to say inside scrollbar on click your images and text not appearing ? if so then you reference to the images and textbox are not correct. You should refer them using root identifier something like this :
var rut =root;
rut.mytext.text ="some text".
5/12/2011 7:19:50 AM
this is the code to both buttons.
Th button in the frame works ok
The button in the scroll box does not work
Thanks
Lizio
on (press) {
gotoAndPlay("2");
}
5/12/2011 7:27:20 AM
as Troy said use root reference
var rut =root;
rut.gotoAndPlay("2");
5/12/2011 7:46:34 AM
Thanks Brad for the quick reply
Typed
var rut =root;
rut.gotoAndPlay("2");
Instead of
on (press) {
gotoAndPlay("2");
}
Still the same problem
Thanks
5/13/2011 7:40:35 AM
i hope you used this code
on (press) {
var rut =root;
rut.gotoAndPlay("2");
}
still if its not working this means you have some other problem . If you can upload and share your fla file I can look into that.
5/13/2011 2:20:09 PM
Again thanks Brad for the quick reply
The file I am trying on can be found with this link:
http://www.lizio.comxa.com/test prova.fla
I am trying to do my personal timeline.
As you can see the red button works ok.
But I want the blue button to do the sane action as the red button, ie
When you rollover or press the buton on the movie a text or image appears elsewhere
Thanks
Lizio
5/13/2011 11:55:34 PM
Hi Lizio you are using actionscript 2.0 but I didn't notice and was suggesting you solutions for actionscript 3.0.
here is your fix
on (press) {
_root.gotoAndStop(2);
}
5/14/2011 7:18:12 AM
Brad
I'm So very thankfull to you even tough I do not know you.
Thanks very much once again.
Maybe when I finish it I can send you a link to it if you like to.
Lizio
5/14/2011 10:03:04 AM
:) welcome Lizio. Sure I would like to see it.