Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-17-2006, 09:16 PM   #1
Registered User
Join Date: Feb 2006
Posts: 7
Red face change action in a button

Is there a way to change the default action in the button?

This is what i have:
ActionScript Code:
on(press){    getURL(this.link, _self); } on(rollOver){  this._parent.gotoAndPlay("o"); } on(rollOut){  this._parent.gotoAndPlay("t"); }
when a person clicks on it it goes to a new page, now what i need this button to do isa change to this.
ActionScript Code:
on(press){    getURL(this.link, _self); } on(rollOver){  this._parent.gotoAndPlay("o"); } on(rollOut){  this._parent.gotoAndPlay("o"); }
is there a way to do this?

my function is this in Frame 1
ActionScript Code:
function secondFrame(myPath, myParent) {  if (myParent.page == myPath._name) {   myPath.gotoAndPlay("o");   myPath.button._visible = true;   myParent.headers.gotoAndPlay(myPath._name);  }  }

Last edited by Cota; 02-18-2006 at 04:05 AM.
PABobo is offline  
Old 02-20-2006, 05:02 AM   #2
Senior Member
Join Date: Jul 2005
Location: India
Posts: 1,029

Yeah this can be done easily.. here is an example ...
PHP Code:
a_btn.onRelease = function() {
b_btn.onRelease = function() {
a_btn.onRelease = function() {
... don't write the code on the button it will be run along with the changed code

The Tutorial Hub
Sunny13 is offline  
Closed Thread

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 to change variable and call function mathminded ActionScript 2.0 3 02-14-2006 01:18 AM
Change menu button color. jared_kc ActionScript 2.0 0 12-17-2005 01:50 AM
desactivating a button action when an object is on top rengised Other Flash General Questions 4 11-18-2002 06:58 AM
How to change properties of a button instance? mogsta ActionScript 1.0 (and below) 1 01-15-2001 11:17 PM

All times are GMT. The time now is 01:43 PM.

Follow actionscriptorg on Twitter


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