Skip to main content
Inspiring
November 23, 2011
Question

Seeking tutorial for building a complete flash website

  • November 23, 2011
  • 1 reply
  • 1291 views

Where can I find a good flash websie tutorial that teach you how to build from scratch to a fully functioning website using custom class?

Most of the tutorial online only teach you how to build a certain part (like rollover menu or import video/sound using action script), but I found it doesnt help much when it comes to pratical...

I'am also learn to avoid using too much timeline much in my flash website since it is easier to refer to object on different level, but always end up having errors here and there which took me quite sometime to debug....

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
November 23, 2011

i don't think you'll find such a tutorial because it would be difficult to create a general enough tutorial to interest many people and would probably be too abstract to help anyone needing help. 

to help you, are you going to create all your display objects with actionscript, all with graphics created in the flash ide or a combo of the two?

Inspiring
November 23, 2011

Actually I would prefer something that is not too complicated to write for a non programmer perspective, yet provide the most flexibility when comes to linking/loading object in different level, because I found it difficult to load a different flash webpage when the original flash template change slighty, and in order to compensate the change, timelines were use and eventually even lead to more problems later on......

kglad
Community Expert
Community Expert
November 23, 2011

create a new fla and create a movieclip and call it page1 and assign it a class, eg Page1.  create a movieclip and call it page2 and assign it a class, eg Page2.  create a movieclip and call it button and assign a class, eg Button

click your empty main timeline stage and, in the properties panel, assign a document class, eg Main.  click the pencil icon (edit button) next to the document class name.  that should open your Main class with some code stubbed-in ready for use.

in your public function Main(), insert:

var b1:Button=new Button();

b1.addEventListener(MouseEvent.CLICK,buttonF);

b1.name="b1";

addChild(b1);

var b2:Button=new Button();

b2.addEventListener(MouseEvent.CLICK,buttonF);

b2.name="b2";

addChild(b2);

b2.y=b1.y+b1.height+20;

add a new private function:

private function buttonF(e:MouseEvent):void{

if(e.currentTarget.name=="b1"){

var page:MovieClip=new Page1();

addChild(page);

page.x=100;

} else {

page=new Page2();

}

}

// that should be all your need to get started.   you'll need to do a lot more, of course, but that shows you one basic general setup.