Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-21-2004, 09:49 AM   #1
barrowman
Registered User
 
Join Date: Sep 2002
Location: in the dark
Posts: 250
Default How do I get rid of a delete...

Code:
_root.nowPressed = " ";
buttons = [SX1, nokia6600];
if (_root.nowPressed == " ") {
	for (j=0; j<buttons.length; j++) {
		buttons[j].onRollOut = function() {
			SX1._alpha = 100;
			nokia6600._alpha = 100;
			nokia3650._alpha = 100;
		};
	}
}
SX1.onRollOver = function() {
	nokia6600._alpha = 50;
	nokia3650._alpha = 50;
};
Nokia6600.onRollOver = function() {
	SX1._alpha = 50;
	nokia3650._alpha = 50;
};
SX1.onPress = function() {
	delete this.onRollOut;
	delete this.onPress;
	_root.nowPressed = "SX1";
	attachMovie("c01", "c01", "this");
	c01._x = 412;
	c01._y = 158;
	//	nokia6600._visible = 0;
	//	nokia3650._visible = 0;
};
Nokia6600.onPress = function() {
	delete this.onRollOut;
	delete this.onPress;
	_root.nowPressed = "Nokia6600";
	attachMovie("c02", "c01", "this");
	c01._x = 412;
	c01._y = 158;
	endX = 372;
	//SX1._visible = 0;
	//nokia3650._visible = 0;
};
The button stops working but how do I get it to rework again?
barrowman is offline   Reply With Quote
Old 05-21-2004, 10:39 AM   #2
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,579
Default

try using button.enabled instead
__________________
Billy
Online Galleries
iPhone Safety App - iStaySafe
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Old 05-21-2004, 10:42 AM   #3
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

or dynamically create your onPress events like you did for your onRollOut events
__________________
tg
---
what the hell was i thinking?
tg 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


All times are GMT. The time now is 11:55 AM.

///
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.