...

View Full Version : Linking scenes



zarmanievents
04-26-2008, 01:20 PM
Hi

Just to let you know that I have scoured every single help page, forum and tried just about everthing and it still is not working for me.

I really hope you can help me. I have created a website in Flash MX Professional 2004 version 7.0. This has approx 20 scenes each of them representing a page.

I have created buttons to serve as navigation to specified links. For example, the home button will take the browser to the home page, etc. I have tried every single piece of code to try to get this to work, but have had no luck.

I really need to get the website up and running and am at my wits end. I have put in actionscript, and when I check the syntax, it tells me that there are no errors, but when I test the movie the links do not work at all.

Or I get random error messages. Is there anyway I can get this to work. I have even tried to use the Flash tutorial which recommended this code:

goHome_btn.onRelease = gotoAndStop("Scene 1", 1);{
gotoAndStop("Scene 1", 1);
};

but it still doesn't work

HELP

shyam
04-26-2008, 03:02 PM
goHome_btn.onRelease = gotoAndStop("Scene 1", 1);{
gotoAndStop("Scene 1", 1);
};


that will obviously not work because instead of assigning an event-handler function for onRelease you have assigned the output of the gotoAndStop function

thats gotta be


goHome_btn.onRelease = function() {
gotoAndStop("Scene 1", 1);
}

zarmanievents
04-26-2008, 05:05 PM
Thanks. I tried that but now I am getting this error message

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: Statement must appear within on handler
goHome_btn.onRelease = function() {



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum