Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-31-2010, 02:47 AM   #1
ErusPrime
Registered User
 
Join Date: Aug 2010
Posts: 4
Exclamation Website Issues...

I am completely new to Flash. I'm using Adobe CS4. I am familiar with pretty much all of the master collection save for Flash.

First: what I'm trying to create is an online resume kind of thing : theboombot.com/redux/boombot.html

This is all I've been able to decipher so far through various online tutorials and some friends who have played with the program a little.

The next thing I'd like to be able to do is make each menu button clickable and load a new page in the middle. Preferably one that links to the page they are trying to reach.

edit: I would also like to know how to make the home page the first page loaded. and sorry for my lack of ability to link.

I have no idea how to set that up in the timeline/layers, or the script necessary to make it work. If anyone can get me started I would be most grateful.

Last edited by ErusPrime; 08-31-2010 at 02:49 AM.
ErusPrime is offline   Reply With Quote
Old 09-01-2010, 12:04 AM   #2
ErusPrime
Registered User
 
Join Date: Aug 2010
Posts: 4
Default

if it's tl;dr

I learned how to make buttons and convert them to symbols. shown here: theboombot.com/redux/boombot.html
I would now like to know how to make those buttons do something when you click on them.
ErusPrime is offline   Reply With Quote
Old 09-01-2010, 11:53 PM   #3
ErusPrime
Registered User
 
Join Date: Aug 2010
Posts: 4
Default

One more go:

the following is my code that i've pieced together from tutorials and references I've found on the webs. However, Instead of the actual buttons doing something when I click them, all I get is a single frame of everything on the same page at the same time.

how would I control the visiblity of my pages?

Code:
mcHeader.btnHome.addEventListener(MouseEvent.CLICK, clickHandler);
mcHeader.btnResume.addEventListener(MouseEvent.CLICK, clickHandler);
mcHeader.btnAbout.addEventListener(MouseEvent.CLICK, clickHandler);
mcHeader.btnContact.addEventListener(MouseEvent.CLICK, clickHandler);
mcHeader.btnGaming.addEventListener(MouseEvent.CLICK, clickHandler);
mcHeader.btnWebmail.addEventListener(MouseEvent.CLICK, clickHandler);

function clickHandler(event:MouseEvent):void {
	switch (event.currentTarget.label)
	{
		case "Home" :
			gotoAndStop(2);
			break;
		case "Resume" :
			gotoAndStop(3);
			break;
		case "About" :
			gotoAndStop(4);
			break;
		case "Contact" :
			gotoAndStop(5);
			break;
		case "Gaming" :
			gotoAndStop(6);
			break;
		case "Webmail" :
			gotoAndStop(7);
			break;
	}
}
ErusPrime is offline   Reply With Quote
Old 09-03-2010, 04:06 PM   #4
rrh
throw a trace() in there
 
Join Date: Dec 2006
Posts: 1,982
Default

There is a .visible attribute.

ActionScript Code:
mcHeader.btnHome.visible=false;
This would hide the home button. So you could do that to your home page, whatever you named that, instead.
rrh is offline   Reply With Quote
Old 09-03-2010, 10:33 PM   #5
ErusPrime
Registered User
 
Join Date: Aug 2010
Posts: 4
Default

actually, I found the right way to do it.

set the content of each page in the same layer on a different blank keyframe.

I just labeled the frames and used changing the function for each different button. works great. No errors. Now I need to find a way to make a subtle but fitting page transition.

Thanks for the help though.

ActionScript Code:
stop(); function goHome(e:MouseEvent):void {     gotoAndStop("Home"); } btnHome.addEventListener(MouseEvent.CLICK, goHome);
ErusPrime 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 04:41 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.