Things You'll Need:
- Dreamweaver and Flash Cs4
-
Step 1
Here in this step, you will need to start a New File in flash and select action Script, 2.0. Now After when that opens up. make roughly no less than 5 new layers in the time line area. In no certain order name them Background, buttons, content, and as2 for action script.
Good Job, now move to step 2 . -
Step 2
Go to the Lock icon and then lock all the layers, except for the content layer. Now depending on how many pages you want your site to be. Hit the f6 key to create a key frame for each page and go to the property inspector bon and where it says Frame and you should see a blank input box that says name, insert the name of that page it can be what ever you call it. remember flash is case sensitive.
-
Step 3
Now lock the content layer. Unlock your buttons layer., Here on the stage is where you can create your buttons in flash or buttons for your flash web site. (Example) just creating buttons to import into Dreamweaver, or for your full flash site. what ever you decide to use as your buttons (text or a drawn object). Select that object with the selection tool and turn that button into a symbol by hitting f8. a box should pop up saying covert to a symbol. Choose button, as your symbol.
-
Step 4
Now here is the little tricky part. with the buttons layer being the only layer unlocked. select the first button again, now hit f9 this brings up the action script. in the action script type { on (release) ( gotoandStop ("home") if that is the name of your first "Frame" or put whatever you named that first frame. Now hit the check in the actions script to see if there is any errors if so just fix the error using script assist. Now do this for every button (hint ) you should have a button for every "frame" that you consider a page.
-
Step 5
One more very important step. unlock the as2 layer there on the first frame hit f9 and do action script. the code is stop(); This keeps your site from playing through all the other pages really fast.
-
Step 6
importing to Dreamweaver, is a lot easier. All you have to do is make sure that the (swf) file that flash produces after publishing your web site located in the file section of flash. Just go to insert flash swf.
and make sure in dream weaver the buttons that you created has pages that matches your action script code in the ("home.html") area.












