header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Lizio Buhagiar
Points:0
Posts:0

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



1
Gouravs
Points: 30
Posts:0
5/12/2011 4:57:50 AM



Hi can u plz clear ur query.....or past ur code here

2
Troy
Points: 820
Posts:0
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".

3
Lizio Buhagiar
Points: 0
Posts:0
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");
}

4
Brad
Points: 750
Posts:0
5/12/2011 7:27:20 AM



as Troy said use root reference

var rut =root;
rut.gotoAndPlay("2");

5
Lizio Buhagiar
Points: 0
Posts:0
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

6
Brad
Points: 750
Posts:0
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.

7
Lizio Buhagiar
Points: 0
Posts:0
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


8
Brad
Points: 750
Posts:0
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);
}

9
Lizio Buhagiar
Points: 0
Posts:0
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

10
Brad
Points: 750
Posts:0
5/14/2011 10:03:04 AM



:) welcome Lizio. Sure I would like to see it.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+4 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions