all groups > macromedia flash sitedesign > april 2005 >
You're in the

macromedia flash sitedesign

group:

Button stop acting like buttons - Cant make links!!!


Re: Buttons stop acting like buttons - Cant make links!!! NSurveyor
4/21/2005 12:00:00 AM
macromedia flash sitedesign:
Are you sure that you clicked on the button first? Also, in the error, was it
talking about that button, or could it be a problem elsewhere in your movie.
Just do a simple test.

New Flash Document.
Draw a circle.
Convert it to a Button.
Add the actionscript directly on the button.
Test Movie.
Button stop acting like buttons - Cant make links!!! dannoramma
4/21/2005 12:00:00 AM
:frown;

I create a button.....it acts like a button - I make rollovers - everything
seems cool. Then, I simply try to add a getURL action to it

on (release) {

getURL("blahblahblah.html");

}

And when I export the .swf file the Output window pops up and says "You can
only apply this action to a BUTTON!!!" It is a button!!! I double click the
button to make sure each time.....everything seems to be working.

What am I doing wrong???

PLEASE HELP!!!!Text
Re: Buttons stop acting like buttons - Cant make links!!! droopy.ro
4/21/2005 2:14:52 PM
Hello,
this error you get if because the script is not on the button most probably,
but on some frame where the button is..
you should add the code like this(in case you already did this, I'm sorry, but
I have to be sure):
select the button on the stage, then open the actions panel (press F9), then
write down your code.
if it's stil not working try this.
add an instance name to the button(in the properties panel), let's say you
name it some_btn , then add this code on the keyframe the button is (!! on the
keyframe not on the button!!):
this.some_bnt.onRelease = function() {
getURL("blahblahblah.com");
}

should work..
AddThis Social Bookmark Button