Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-06-2006, 01:55 AM   #1
rodger4200
Registered User
 
Join Date: Sep 2006
Posts: 2
Question Button Issues

I am having problems with some buttons that I got off ffiles.com. I want these buttons to play forward in the time line but I am not sure how that code works. if anyone can help I would be so appericative here is the code. I will post the files also

bt1.nomme = "HOME";
bt2.nomme = "ABOUT";
bt3.nomme = "CONTACT";
bt1.onRelease = function() {
bt1.enabled = false;
bt2.enabled = true;
bt2.voltar = true;
bt3.enabled = true;
bt3.voltar = true;
}
bt2.onRelease = function() {
bt1.enabled = true;
bt1.voltar = true;
bt2.enabled = false;
bt3.enabled = true;
bt3.voltar = true;
}
bt3.onRelease = function() {
bt1.enabled = true;
bt1.voltar = true;
bt2.enabled = true;
bt2.voltar = true;
bt3.enabled = false;
}
rodger4200 is offline   Reply With Quote
Old 09-06-2006, 01:58 AM   #2
rodger4200
Registered User
 
Join Date: Sep 2006
Posts: 2
Default

here are the files
Attached Files
File Type: zip buttons.zip (7.7 KB, 39 views)
rodger4200 is offline   Reply With Quote
Old 09-06-2006, 02:57 AM   #3
graylensman
Registered User
 
Join Date: Nov 2004
Posts: 97
Default

You're missing some significant code. This was placed on the button instances themselves:

ActionScript Code:
this.stop(); this.onEnterFrame = function() {     if (voltar == true) {         this.prevFrame();     } } this.onRollOver = function() {     this.play();     voltar = false; } this.onRollOut = function() {     voltar = true; }
this code controls the motion tweening you see on rollOver and rollOut. "voltar" is a boolean variable that's set to true or false, depending. This in turn determines whether or not the motion is activated. In the code you posted, the various buttons are enabled or disabled depending on what's been clicked and the "voltar" boolean is set. btn.nomme="HOME" is simply code that places the string "HOME", etc. into a dynamic text box in the button movie clip.

What you're planning to do with this, though, I don't know, so I can't say how these buttons will work with your project.
graylensman is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Button Stays in Hit State once Hit boycetown ActionScript 1.0 (and below) 2 05-26-2006 08:22 PM
help in next/back button janice_2k ActionScript 1.0 (and below) 0 03-18-2005 01:11 AM
Button Symbol Issues NRutman Other Flash General Questions 2 03-12-2005 07:08 AM
Unable to name the text field for a movieClip button fletchsod ActionScript 2.0 2 03-08-2005 10:12 PM
Loadvariables not on button action issues e-merge ActionScript 1.0 (and below) 1 09-10-2001 11:16 AM


All times are GMT. The time now is 09:00 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.