www.VFXskills.com                                                                                 www.MAXlife.TV

TechsChoice.com
Google Enter your search terms

 How to structure a full flash actionscript 3 web site tutorial CS3 + CS4 - Part 5


Part 5 - Learn how to structure your Flash AS3 full website. Learn how to place other flash files into yours. Learn better organization for your Flash menu systems and Flash page structure. Complete with preloader load bar and text to allow you to place lots of images or whatever you want into the file and give your site visitors an indication of your sites load progress.

We left off inside the Button's Menu movie clip by double clicking on the first button.

CODE THE BUTTONS

1.  The code for all four buttons can be found inside of the ACTIONS layer.  Highlight frame #1 on the ACTIONS layer and press F9.  The actionscript code for the buttons will appear.

2.  Change the text name on the buttons by selecting the ALL STATE ELEMENTS layer and then double clicking on each button.

3.  Select the Move or Select tool and then Double Click on blank space outside to the right to get out and then double click on Button 2 to change the text.

NOTE:   He took the click sound away from the buttons in this section.

4.  Now click on Frame #1 and press F9 to look at the action script.

5.   
// Btn1 Over function
function btn1Over(event:MouseEvent):void {
btn1.gotoAndPlay("over"); // go into btn1 movieclip and play the over frame label
}
// Btn1 Out function
function btn1Out(event:MouseEvent):void {
btn1.gotoAndPlay("out"); // go into btn1 movieclip and play the out frame label
}
// Btn1 Click function
function btn1Click(event:MouseEvent):void {
btn1.gotoAndPlay("click"); // go into btn1 movieclip and play the click frame label
myText.text = "You clicked on button 1";
// gotoAndStop("myFrameLabel"); Do something In Your Scene Here
}
// Btn1 listeners
btn1.addEventListener(MouseEvent.ROLL_OVER, btn1Over);
btn1.addEventListener(MouseEvent.ROLL_OUT, btn1Out);
btn1.addEventListener(MouseEvent.CLICK, btn1Click);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function btn2Over(event:MouseEvent):void {
btn2.gotoAndPlay("over");
}
function btn2Out(event:MouseEvent):void {
btn2.gotoAndPlay("out");
}
function btn2Click(event:MouseEvent):void {
btn2.gotoAndPlay("click");
myText.text = "You clicked on button 2";
}
btn2.addEventListener(MouseEvent.ROLL_OVER, btn2Over);
btn2.addEventListener(MouseEvent.ROLL_OUT, btn2Out);
btn2.addEventListener(MouseEvent.CLICK, btn2Click);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function btn3Over(event:MouseEvent):void {
btn3.gotoAndPlay("over");
}
function btn3Out(event:MouseEvent):void {
btn3.gotoAndPlay("out");
}
function btn3Click(event:MouseEvent):void {
btn3.gotoAndPlay("click");
myText.text = "You clicked on button 3";
}
btn3.addEventListener(MouseEvent.ROLL_OVER, btn3Over);
btn3.addEventListener(MouseEvent.ROLL_OUT, btn3Out);
btn3.addEventListener(MouseEvent.CLICK, btn3Click);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function btn4Over(event:MouseEvent):void {
btn4.gotoAndPlay("over");
}
function btn4Out(event:MouseEvent):void {
btn4.gotoAndPlay("out");
}
function btn4Click(event:MouseEvent):void {
btn4.gotoAndPlay("click");
myText.text = "You clicked on button 4";
}
btn4.addEventListener(MouseEvent.ROLL_OVER,btn4Over);
btn4.addEventListener(MouseEvent.ROLL_OUT, btn4Out);
btn4.addEventListener(MouseEvent.CLICK, btn4Click);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 
Site Map         

 

Please add us to your website or blog!

Privacy Policy - Disclaimer
free sound files, free media files, free tutorials, free web hosting, cheapest domain names, inexpensive domain names, screen capture software, Computer Software Tutorials, online training videos, computer basics tutorial, free windows tutorial, free computer tutorial for kids, computer programming tutorials, free computer courses, pc tutorial, beginner computer tutorials, free computer software tutorials, free internet tutorial, free typing tutorial programs, computing tutorials, computer science tutorials, graphic design tutorials, free visual basic tutorials, free Photoshop tutorials, newbie computer tutorials free flash tutorials, access tutorial online, computer course, pc maintenance online tutorials, absolute beginners computer tutorials, free online computer classes, frshirtsbestee online learning, free computer training download, free computer tutorial for seniors, computer parts tutorial, computer tutorials for children, computer hardware tutorials, free excel tutorials, computer fundamental introduction basics tutorial, Microsoft tutorial, free grocery coupons, Free computer software tutorials, tech support, technical support, the tech support forum, game development, 3d game development software tutorials, graphic design tutorials, graphic illustration tutorials, character animation and design tutorials, web development, Clipart and Banner Ads, adobe photoshop tutorials and downloads, software lessons, how to do it yourself, Fierce Layouts learn adobe Photoshop, learn silverlight, learn microsoft expressions, asp.net, video editing, youtube video, digital image editing software, national association of Photoshop professionals (naap) Flash Animation, graphics, computer software, computer books, manhattan flash animation presentations for advertising and banner ads, adobe, photoshop, macromedia, microsoft, software and application development, learn to, how to, tutorials, hardware, software Tech Support - Free Technical Support for Beginners and Advanced Users of Computers, Videographers, photographers, Programmers and Web Designers, Tutorials and How To Start, computer help, video, audio, nonlinear editing, cameras, microsoft excel free online video lessons, learn excel, learn microsoft word

Free software tutorials, downloads and technical support information for computer geeks, photographers and videographers.