Topic: Trying to impliment into existing swf site
I'm trying to add the plain gallery from the 'web' directory into an existing swf site, however I'm having problems.
I've followed the example in the multiples gallery example with no luck, i'm getting alot of errors.
My code is as such:
//Set button actions
on(release) function(){
loadGallery("gallery.xml");
}
function loadGallery(galName){
_root.xmlDataPath = galName;
galleryLoader.loadMovie("viewer.swf");
}
But I get some errors when attempting to publish:
**Error** Symbol=text buttons, layer=Layer 1, frame=1:Line 2: '{' expected
on (release) = function(){
**Error** Symbol=text buttons, layer=Layer 1, frame=1:Line 6: Statement must appear within on handler
function loadGallery(galName){
Total ActionScript Errors: 2 Reported Errors: 2
Any help would be greatly appreciationed.
thanks.