Creating a full Flash Web site

posted: 04-01-06
author: PrimeVector
website: http://www.free-webmaster-resource.com
views: 380014
comments: 118
total pages: 8
page jump: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8




Check This Amazing Traffic Generating Widgetsl 4 Webmasters!

The additional Effect and Functionality Actionscript

We will now setup some extra code on each frame that has a content page. This code is to setup a bit of visual effects like a little Alpha fade on the objects, and to setup the functionality for the links. Just add it below the code that is already there!

Extra code for frame 5 - tools layer

//Init the alpha values to 0.
tools_holder.tools_title._alpha = 0;
tools_holder.tools_subtitle._alpha = 0;
tools_holder.tools_pic._alpha = 0;
tools_holder.tools_link._alpha = 0;
tools_holder.tools_description1._alpha = 0;
tools_holder.tools_description2._alpha = 0;

//Setup the alpha fades... just like those _x & _y tweens all with a delay on it a bit.
//so that final 0.3 etc.. means a delay of 0.3 seconds before that effect starts.
tools_holder.tools_title.tween("_alpha",100,speed,ease_type,0);
tools_holder.tools_subtitle.tween("_alpha",100,speed,ease_type,0.3);
tools_holder.tools_pic.tween("_alpha",100,speed,ease_type,0.5);
tools_holder.tools_link.tween("_alpha",100,speed,ease_type,0.5);
tools_holder.tools_description1.tween("_alpha",100,speed,ease_type,0.7);
tools_holder.tools_description2.tween("_alpha",100,speed,ease_type,0.7);

//Setup onPress for tools_link thats inside tools_holder..
//With getURL(url, window) we call a link in the browser with every press.
tools_holder.tools_link.onPress = function(){
    getURL("http://www.Axandra.com/go.to/primevector/8","_blank");
}

//Setup onPress for tools_pic thats inside tools_holder..
//With getURL(url, window) we call a link in the browser with every press.
tools_holder.tools_pic.onPress = function(){
    getURL("http://www.Axandra.com/go.to/primevector/4","_blank");
}

Extra code for frame 10 - links layer

//Init the alpha values to 0.
links_holder.links_title._alpha = 0;
links_holder.link1._alpha = 0;
links_holder.link2._alpha = 0;
links_holder.link3._alpha = 0;
links_holder.link4._alpha = 0;
links_holder.link5._alpha = 0;
links_holder.link6._alpha = 0;
links_holder.link7._alpha = 0;

//Setup the alpha fades... just like those _x & _y tweens all with a delay on it a bit.
//so that final 0.3 etc.. means a delay of 0.3 seconds before that effect starts.
links_holder.links_title.tween("_alpha",100,speed,ease_type,0);
links_holder.link1.tween("_alpha",100,speed,ease_type,0.3);
links_holder.link2.tween("_alpha",100,speed,ease_type,0.5);
links_holder.link3.tween("_alpha",100,speed,ease_type,0.5);
links_holder.link4.tween("_alpha",100,speed,ease_type,0.7);
links_holder.link5.tween("_alpha",100,speed,ease_type,0.7);
links_holder.link6.tween("_alpha",100,speed,ease_type,0.7);
links_holder.link7.tween("_alpha",100,speed,ease_type,0.7);

//Setup onPress events for the links below
//With getURL(url, window) we call a link in the browser with every press.
links_holder.link1.onPress = function(){
    getURL("http://deamothul.richjerk.hop.clickbank.net","_blank");
}

links_holder.link2.onPress = function(){
    getURL("http://www.Axandra.com/go.to/primevector/9","_blank");
}

links_holder.link3.onPress = function(){
    getURL("http://hop.clickbank.net/?deamothul/bryxen1","_blank");
}

links_holder.link4.onPress = function(){
    getURL("http://www.affiliateclassroom.com/x.cgi?a=r&id=1&aid=2251&p=3","_blank");
}

links_holder.link5.onPress = function(){
    getURL("http://www.wealthwars.com/?r=primevector","_blank");
}

links_holder.link6.onPress = function(){
    getURL("http://www.Axandra.com/go.to/primevector/2","_blank");
}

links_holder.link7.onPress = function(){
    getURL("http://www.Axandra.com/go.to/primevector/3","_blank");
}

Extra code for frame 15 - contact layer

//Init the alpha values to 0.
contact_holder.contact_title._alpha = 0;
contact_holder.descriptionTxt._alpha = 0;

//Setup the alpha fades... just like those _x & _y tweens all with a delay on it a bit.
//so that final 0.3 etc.. means a delay of 0.3 seconds before that effect starts.
contact_holder.contact_title.tween("_alpha",100,speed,ease_type,0);
contact_holder.descriptionTxt.tween("_alpha",100,speed,ease_type,0.3);

Conclusion

I really hope you could follow along and that i could show you a way to create a full Flash Web site. It not the hardest thing to create, but its also not the most easy thing because of the Flash interface. If you are not used to dealing with the Flash interface it can be a bit daunting sometimes. If you experienced troubles please dont hesitate for a moment to ask a question on my forum ... that why it there ;)

This last part of the tutorial perhaps went a bit fast, but it was nothing more then replicating the things we did in the other pages. Please examine the source file to check the instance names etc... If you managed to follow along i can congratulate you with completing this full Flash Web site.

You learnt to use the increddible cool way of tweening, you also learnt to control everything with code from the main timeline ... Don't under-estimate this,if you haven't done that before, from now on you will see the power of having code only on the main timeline and reap all its benifits. In a next part of creating a full Flash site we will hookup PHP and MySql to give it a lot more power! Untill the next time........ :)
Here is a link again to the finished Flash site.

page jump: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8



Check This Amazing Traffic Generating Widgetsl 4 Webmasters!

Comments

118 comment(s) found in 20 pages  
viewing comment(s): 1 - 6
page: 1 

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |

15-01-08:guest

wow that stinks =D

13-12-07:guest

11-12-07:guest

very poor

11-12-07:pole

it is very bad

11-12-07:rt

tret

06-12-07:guest

g ah!! i hate this i missed what we had to do in IT!!!!



- Press here to view all available smilies!



Latest News

Amazing Webmaster Tool

If you run a MySpace or teens related site with visitors interested in GLITTERS you will need this great tool: Webmaster Glitter Tool It will generate backlinks at an amazing pace!

 

Useful Click To Clipboard Script

This is a nice little copy to clipboard script. You can find it here!

 

Google Pages

Create pages on google quick and easy with Google Pages!

 

My Funny Pictures Site

Have fun on this funny pictutures site i made, i hope youll enjoy it :) PixHumor

 

IS YOUR CHILD SAFE???

With this great program you can make sure your child will be a lot safer while browsing the Internet.

 

New Site

I created a fun site for MSN Messenger Stuff called MSN Freak. You can find the site here: Free Winks @ MSN Freak

 

Useful free unlocker tool

This tool is a very useful tool that runs in the background. Whenever you try to for example copy a folder and explorer sceams at you it wont do that, the barrier is lifted and you can continue to do what you wanted too. Download it here.

 

GOOGLE worldwide: Languages and countries

Useful page showing all the Google Search Engines of all countries. Check it out here.

 

Google Trends

Google trends enables us to see where people want certain things the most. You can enter a keyword and find out where people search for that most often! Check Google Trends

 

Google PageRank Checker

I personally enjoy this Google pagerank checker a lot: Google PageRank Checker

 

New tutorials

I added a new basic Flash tutorial showing how to create a simple motion tween. You can find it here: Basic Flash Motion Tween

 

2 new Flash tutorials

I added 2 new Flash tutorials to the tutorial selection. On deals with the if else conditional statement and the other deals with setting up a bit of color with actionscript. You can checkout the tutorials here: Actionscript and colors and If Else Conditionals.

 

Oh My!

Its mad times overhere, im helping promote and have created a few sites which has taken quite some time from me. site1: http://www.flashgamefreak.com, site2 http://www.freewinks.net, site3 http://www.smilieworx.com and more are to come this and next week. This has taken its toll on my time to write tutorials. I will make up for that as soon as possible. Thanks for your understanding.

 

Basic Flash Tutorials

I added 3 new basic Flash tutorials to the tutorial list. Dealing with layers, What are functions and one about The Registration Point.

 

A bit of a delay

I have had a very crazy time around here the last month, because of this some tutorials have not been written yet. This is a list of tutorial i still need to write and you can expect them in the very near future.

 

Advertise on FWR

If you want to advertise here then please contact me here. We can make a nice deal and you can get stats on them how often you would like.

 

2 new tutorials

2 new web design related tutorials were added ... more Flash tutorials are on their way but its a bit mad around here these last days ;)

 

View All News



In Focus

Free Auto Insurance Quotes!
Saving money with InsureMyCar4Less is simple. After you fill out our quick online form, you get free auto insurance quotes from the best providers in the industry. They compete for your business, and you save money.
Save money on your Auto Insurance!
You could be paying too much for your auto insurance, find out here if you qualify for HUGE savings!
Play Aztec Quest online for free!
Play Aztec Quest online for free!
Get free Auto Insurance Quotes!
Saving money with InsureMyCar4Less is simple. After you fill out our quick online form, you get free auto insurance quotes from the best providers in the industry. They compete for your business, and you save money.
Play World War 2 Commando Free!
Play World War 2 Commando online for free!
Play Bubble Boomers
Pop the bubbles of the like colors for this very fun and addictive game for FREE!!!
Play Swat 2 Now
Play the swat 2 game and shoot those bad guys!
Stop identity theft in its tracks!
Protect My ID makes it easy for you!
Play Airstrike 1941 online for free!
Play Airstrike 1941 online for free!
Test Handyman Tools and Keep them!
We're looking for a few good product testers for our Handyman club. Test out all sorts of tools and keep them!
Play Frogger Now!
Play frogger with 1 click download of gamevance!
Get a Free Auto Insurance Quote
Free quotes from top insurance carriers!
Customize your Facebook with a theme
Customize the colors and music on your facebook profile page today!
Do you like to go Fishing?
We're looking for a few good product testers to test our Fishing gear. Keep it afterwards!
Save up to 70% on auto insurance!
Do you qualify for 60-70% off your auto insurance rates? Find out right now! Request quotes 24 hours a day with our secure online form. It's super fast and easy. See what your rate is absolutely free!
Play Pac Man right here!
Get all the hottest new games and all the old school games in one place!
Play the old school Baseball Stars
Get all the hottest new games and all the old school games in one place!
Test Hunting Gear and Keep It!
We're looking for a few good product testers for our Hunting Gear!
Play Streetfighter Now!!!
Get all the hottest new games and all the old school games in one place!
Get a FREE Apple iPad Now!!!
You know you want your FREE Apple iPad right here!
Share your Opinion, win $50,000?
Share your Opinion, win $50,000? Couldn't get any easier! It's free and fun!
Need New Contact Lenses for FREE?
Treat your eyes to all day comfort with a free trial and save up to $100!
Save Money on Airline Fares Here!
Save up to 50% off on major airline brands here!

Cool Stuff