Jump to content


Photo

Help needed!


  • Please log in to reply
6 replies to this topic

#1 cng

cng

    Young Padawan

  • Members
  • Pip
  • 55 posts

Posted 25 May 2005 - 12:32 AM

I dont even understand totally where the problem is. Okay so Ill try to explain it as cleanly as possible:

Scene 1
I have buttons in a movie clip. These buttons will link to a different scene. However, it doesnt do that. I have tried:


on (press) {
_root.gotoAndPlay ("Scene 2", 1);
}

and

on (press) {
gotoAndPlay ("Scene 2", 1);
}

I have tried everything but it just DOESNT work at all. It doesnt do anything. Anyone have any idea how to solve this problem?

#2 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 25 May 2005 - 03:47 AM

is your scene named Scene 2?
want to send me your fla file?

#3 gob

gob

    Young Padawan

  • Members
  • Pip
  • 22 posts
  • Location:Ireland

Posted 25 May 2005 - 06:43 AM

I think that this is the code you need:

on (release) {
gotoAndPlay (2);
}


#4 CoryMathews

CoryMathews

    P2L Jedi

  • Members
  • PipPipPip
  • 554 posts
  • Gender:Male
  • Location:Texas

Posted 25 May 2005 - 08:00 AM

try renaming your scene 2 "hello" or something like that then use this code

on (press) {
gotoAndPlay("hello", 1);
}

#5 cng

cng

    Young Padawan

  • Members
  • Pip
  • 55 posts

Posted 25 May 2005 - 09:00 AM

I tried that. The button does nothing... If I do just (2) then it gotoAndPlay Scene 1 frame 2. I tried renaming the Scene and I think the problem is that the code is in a movie clip...

#6 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 25 May 2005 - 09:03 AM

the state (press or release) are almost the same..
Send me your fla file, so I can have a look at it..

#7 Tudi

Tudi

    Young Padawan

  • Members
  • Pip
  • 42 posts

Posted 25 May 2005 - 10:59 AM

If you cannot get your scenes to link this way, you could try saving each scene in a different swf, and put them in according web pages. For examples you have the following scenes: Home, Forum, Articles, Contact Us, etc..

You can put them in html files like index.htm, forum.htm, articles.htm etc...

Then you can give each button directions to link to the according page, instead of the according scene. Just name the buttons (home_mc, forum_mc, Articles_mc) and use the following code:

home_mc.onRelease = function()
{
getURL ("index.htm");
}


this is not only bug-free but it will do you a lot of good if you are designing a webpage (which from what I understood, you are). Hope this helps.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users