Hey there,
I am new with ActionScript, but not new to flash. A friend told me that it is more efficient to place my actionscript in functions on frame one of the main timeline rather than having it all appear throughout the page on various buttons etc. I am trying to get a button tht loads in the main timeline to call upon a function, and then have it perform the following actions:
a) When the mouse is released, it will send the information to a function called openServices. The code to send it here is

//Services Button - loads the services swf
on(release){
_root.openServices();
}


Then the fuction code I have is as follows,

//Services Button - loads the services SWF file into the main time line.
fuction openServices(services_btn) {
_root.createEmptyMovieClip ("infoPage_mc",_root.getNextHighestDepth());
_root.infoPage_mc.loadMovie("hello.swf");
_root.infoPage_mc._y=55;
_root.infoPage_mc._x=0;
}


The button's instance is services_btn .

When I try to test the movie, it states that I have a syntax error. Forgive my inability to detect this error, but I would more than appreciate some assistance. I love the idea of functions, and hope to make use of them more if I can just see a good model of one.

Later, and Thanks,

Greg