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?
Help needed!
Started by
cng
, May 25 2005 12:32 AM
6 replies to this topic
#1
Posted 25 May 2005 - 12:32 AM
#2
Posted 25 May 2005 - 03:47 AM
is your scene named Scene 2?
want to send me your fla file?
want to send me your fla file?
#3
Posted 25 May 2005 - 06:43 AM
I think that this is the code you need:
on (release) { gotoAndPlay (2); }
#4
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);
}
on (press) {
gotoAndPlay("hello", 1);
}
#5
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
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..
Send me your fla file, so I can have a look at it..
#7
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.
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