Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-26-2008, 12:20 PM   PM User | #1
zarmanievents
New to the CF scene

 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
zarmanievents is an unknown quantity at this point
Linking scenes

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
zarmanievents is offline   Reply With Quote
Old 04-26-2008, 02:02 PM   PM User | #2
shyam
Senior Coder

 
shyam's Avatar
 
Join Date: Jul 2005
Posts: 1,563
Thanks: 2
Thanked 163 Times in 160 Posts
shyam will become famous soon enough
Quote:
Originally Posted by zarmanievents View Post

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

Code:
goHome_btn.onRelease = function() {
  gotoAndStop("Scene 1", 1);
}
__________________
You never have to change anything you got up in the middle of the night to write. -- Saul Bellow
shyam is offline   Reply With Quote
Old 04-26-2008, 04:05 PM   PM User | #3
zarmanievents
New to the CF scene

 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
zarmanievents is an unknown quantity at this point
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() {
zarmanievents is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:10 PM.


Advertisement
Log in to turn off these ads.