how to add link to a flash button?

hori

New member
I have a flash navigation bar in wich i want to link those buttons to local files, i know that its actionscript code and all of that but can someone explain me in what consist that code.
 
Well, it depends on the version of AS you're running, but the old getURL() will always work. Check the help files for it's use.

In first frame of a layer, referencing a button on the stage named "myButton":

_root.myButton.onRelease = function(){
getURL("some-file.html");
};

on the button itself,

_this.onRelease = function(){
getURL("some-file.html");
};
 
Back
Top