Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 11-05-2009, 09:37 AM   PM User | #1
OGGordon
New Coder

 
Join Date: Oct 2009
Location: GERMANY
Posts: 57
Thanks: 20
Thanked 1 Time in 1 Post
OGGordon is an unknown quantity at this point
adding another button causes problems

hey guys,

so i downloaded this template and it has 3 buttons on the navigation. i added another one and in the AS i added it but for some reason now the entire navigation doesnt work.

Here is the code of one button:

Code:
onClipEvent (load) {
	num = 2;
	this.hitArea=area;
	title1.gotoAndStop(num);
	title2.gotoAndStop(num);
	title3.gotoAndStop(num);
	title4.gotoAndStop(num);
}
on (rollOver) {
	if (_root.link<>num) {
		this.gotoAndPlay("s1");
	}
}
on (releaseOutside, rollOut) {
	if (_root.link<>num) {
		this.gotoAndPlay("s2");
	}
}
on (release) {
	if (_root.link<>num and _root.animation == 1) {
		_root.animation = 0;
		_root.link_prev = _root.link;
		_parent["item"+_root.link].gotoAndPlay("s2");
		_root.link = num;
		_root.play();
	}
}

I just changed "num=2" to 1,3,4 for each button. Im not sure what i am doing wrong.
OGGordon is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:20 AM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.