Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dunno what the problem is, some variables not getting set properly? 1

Status
Not open for further replies.

krigbert

Programmer
Jun 2, 2005
95
NO
Okay, I have a frame with this code:

Code:
h = 0;
abne = 'pres';
forHoide = 200;
eftorHoide = 700;

this.onEnterFrame = function() {
	
    if (teppeoppe._height>=260) {gotoAndPlay(maal);}
	
	if (abne='pres') {
		
		if (teppeoppe._height<=150){h=eftorHoide;}
		teppenede._height -= (1/teppenede._height)*(forHoide+h);
		teppeoppe._height -= (1/teppeoppe._height)*(forHoide+h);
		coverings._alpha -= (0+coverings._alpha)/40;
		if (teppeoppe._height>=0) {stopp = 1;}
	}
	

	
	if (abne='go'){
		
		if (teppeoppe._height>=150) {h = eftorHoide;}
		
		teppenede._height += teppenede._height+(forHoide+h);
		teppeoppe._height += teppeoppe._height+(forHoide+h);
		
		if (teppeoppe._height>=265){stopp = 1;}
	}
	
};

stop();

So, when the frame is entered, teppenede and teppeoppe are resized down and coverings is made transparent. This works only if I don't have the "if (abne='go'){ et.c." bit in it, but when I put it in, it won't work. Coverings becomes transparent, but teppeoppe and teppenede just go crazy. What's happening here?

(I need that bit for my buttons, they have this code:
Code:
on(release){
	abne='go';
	maal='contact';
}
)

illustration and webdesign
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top