# Creating buttons with Macromedia Dreamweaver....

**URL:** <https://boards.straightdope.com/t/creating-buttons-with-macromedia-dreamweaver/317913>\
**Category:** Factual Questions\
**Created:** [August 20, 2005, 7:48pm UTC](https://boards.straightdope.com/t/creating-buttons-with-macromedia-dreamweaver/317913 "2005-08-20T19:48:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitfiddle](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gitfiddle](https://boards.straightdope.com/u/gitfiddle)\
**Post date:** [August 20, 2005, 7:48pm UTC](https://boards.straightdope.com/t/creating-buttons-with-macromedia-dreamweaver/317913/1 "2005-08-20T19:48:51Z")

</div>

Quick question:

I’ve created a button in flash for a website I’m creating in Dreamwever. When I export it from Flash to Dreamweaver, I can’t figure out how to make the button a link. How do I make it so that if the button is clicked, it will open a page in the mainFrame of the page?

I’ve spent hours trying to figure out how to do this myself, and I’ve given up.

Thank you!

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [August 21, 2005, 11:39am UTC](https://boards.straightdope.com/t/creating-buttons-with-macromedia-dreamweaver/317913/2 "2005-08-21T11:39:47Z")

</div>

If nobody else answers this, could you please email me a copy of the Flash button (an .SWF file, probably)?

I don’t know the answer offhand because I don’t use Flash much, but I’d like to mess around with Dreamweaver and see if I can get it to work.

---

<div class="post-metadata">

**Author:** ![lexi](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lexi/32/6806_2.png) [@lexi](https://boards.straightdope.com/u/lexi)\
**Post date:** [August 21, 2005, 4:31pm UTC](https://boards.straightdope.com/t/creating-buttons-with-macromedia-dreamweaver/317913/3 "2005-08-21T16:31:32Z")

</div>

The answer is you can not make it a button using html.

You must edit the flash.

First convert your button to a symbol of hte type “button”.

Then select the button by a single click of the button and go to the Actions editor.

add this code to your actions for that button

on (release) {  
getURL(“[http://www.yoursite.com/page.html](http://www.yoursite.com/page.html)”);  
}

---

<div class="post-metadata">

**Author:** ![gitfiddle](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gitfiddle](https://boards.straightdope.com/u/gitfiddle)\
**Post date:** [August 21, 2005, 5:06pm UTC](https://boards.straightdope.com/t/creating-buttons-with-macromedia-dreamweaver/317913/4 "2005-08-21T17:06:46Z")

</div>

> [@lexi](#):
>
> The answer is you can not make it a button using html.
> 
> You must edit the flash.
> 
> First convert your button to a symbol of hte type “button”.
> 
> Then select the button by a single click of the button and go to the Actions editor.
> 
> add this code to your actions for that button
> 
> on (release) {  
> getURL(“[http://www.yoursite.com/page.html](http://www.yoursite.com/page.html)”);  
> }

Thanks so much Lexi!

One more question, how do I I add the target “mainFrame” if I want it to open in a certain frame?

Thanks again.

---

<div class="post-metadata">

**Author:** ![lexi](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lexi/32/6806_2.png) [@lexi](https://boards.straightdope.com/u/lexi)\
**Post date:** [August 21, 2005, 6:17pm UTC](https://boards.straightdope.com/t/creating-buttons-with-macromedia-dreamweaver/317913/5 "2005-08-21T18:17:02Z")

</div>

Check here for all the actions in flash:  
[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/)  
on(release) {  
getURL(“yourpage.html”, “\_blank”);  
}
