all groups > flash (macromedia) > september 2005 >
You're in the

flash (macromedia)

group:

add action to a button


add action to a button w00
9/11/2005 1:57:50 PM
flash (macromedia):
Hello, i've created a button using a tutorial. Only it didnt explain how to add
an actionscript to it.
I googled some more for this and they all say: Rightclick on your button and
select "properties". I did that
and all i got was the window where i could choose the behaviour of the image.
It didnt look anything like they were talking about in the tutorial.
Can someone tell me what i have to do in order to add an script to my button.
It should open a new webpage when its clicked on.
Thanks for any help.
Re: add action to a button Marcos -- The New Learning Project
9/11/2005 3:23:11 PM
you can add actions to a button by selecting the button and pressing
F9. or you can right-click the button and select"actions"
In the actions panel (expert mode) type in:
on(release){
getURL("http://www.yourSite.com")
}



or (normal mode) which writes code for you
click browser/network and then getURL
then type in your site with http included

good luck
Marcos
Re: add action to a button urami_
9/12/2005 12:00:00 AM


[quoted text, click to view]

You need to read HOW DO I section of the Help files if you MX 2004 user or do the Lessons
under the Help menu , if you MX user.

--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
Re: add action to a button kakas
9/12/2005 7:03:57 AM
hi,

1. select the button u want to ad the script and hit F9 on u r keyboard
2. Type in the following code
on(release){
getURL("ursitename.com", "_blank");
}

All the best!!
AddThis Social Bookmark Button