eHow launches Android app: Get the best of eHow on the go.

How To

How to build a website in flash Action Script 2.0 and import to dreamweaver

Member
By GLEN5150
User-Submitted Article
(0 Ratings)
build a website in flash  Action Script 2.0 and import to dreamweaver
build a website in flash Action Script 2.0 and import to dreamweaver
from flash

I will teach you how to build a website in flash and import into Dreamweaver...
This will Also include a quick guide, on ow to create a button in flash and import into Dreamweaver. This is using Action Script 2.0

Difficulty: Moderate
Instructions

Things You'll Need:

  • Dreamweaver and Flash Cs4
  1. 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 .

  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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Tips & Warnings
  • This takes a little bit of practice. Also the Background layer of course is whatever you decide for that to be. It can be pictures, a colored stage area, or just what ever. Content layer, same thing this is just what you name your pages for action script purpose, but anything can go there.
  • Good luck hope this helps and have fun with it.
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics