I have a movie where i have small clips which has to perform the same function on a mouseevent. Instead of attaching the same script in all the movieclips, i want to put them in a common function and just call that function everytime.
Is this possible in actionscript?
if so how?
Any help on this is appreciated.
Thanks
post here the script you plan to make a function, i can see if can help then…
Hey rasarasan,
Well, yep, this can be done! try something like:
function Link(){
//ur commands!
}
button.onRelease = Link;
yours,
h88
*Originally posted by richie *
**post here the script you plan to make a function, i can see if can help then… **
hehe, we posted at the same time =)!!
hehehe, i just started here…
well, i think in this case you have to use functions with arguments:
function links(link){
trace("This button will go to the link " + link);
}
button.onRelease = link(file1.swf);
i’m a newby, so i don’t know if it is 100% correct.
Why are you going that further when u simply can use getURL!
i think she wanted that thing:
stop();
function links(){
getURL("http://www.kirupaforum.com/");
}
button.onRelease = links
The Title was “Common function???”, remember
yours,
h88