Jump to content


Photo

Linkg buttons


  • Please log in to reply
6 replies to this topic

#1 dud3

dud3

    Young Padawan

  • Members
  • Pip
  • 7 posts

Posted 21 May 2005 - 09:32 PM

when putting the script for a button to link to a scene in flash mx ver. 7 isn't it jus:
on (release){
gotoAndPlay("scene", 1);
}

but how come it doesn't link to the desired scene?

#2 sq3r

sq3r

    Young Padawan

  • Members
  • Pip
  • 239 posts
  • Location:Oregon City, Oregon
  • Interests:I like stuff.

Posted 21 May 2005 - 11:05 PM

What does it do if it doesn't link to it?

#3 dud3

dud3

    Young Padawan

  • Members
  • Pip
  • 7 posts

Posted 21 May 2005 - 11:51 PM

it doesn't react, e.g for example i got a a scene called "scene1" and a button, and i use that script, it doesn't work (nothing happens when i click on the button, doesn't go on to the selected scene). i wanted to make the button link to the scene and start playing from der

#4 CoryMathews

CoryMathews

    P2L Jedi

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

Posted 22 May 2005 - 12:40 AM

try giving it a different name because that code is correct. you did make it a button right.... lol wasnt a small error like that was it.

#5 sq3r

sq3r

    Young Padawan

  • Members
  • Pip
  • 239 posts
  • Location:Oregon City, Oregon
  • Interests:I like stuff.

Posted 22 May 2005 - 12:50 AM

Yeah it looks ok to me, though I'm a little rusty on my flash stuff.

There should be a syntax or error finding thing in the actionscript window, use that and maybe it will show you something that's wrong.

Also make sure this script is actually on the button and not on a frame. I've done this accidentally before.

#6 CoryMathews

CoryMathews

    P2L Jedi

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

Posted 22 May 2005 - 01:04 AM

Yeah it looks ok to me, though I'm a little rusty on my flash stuff.

There should be a syntax or error finding thing in the actionscript window, use that and maybe it will show you something that's wrong.

Also make sure this script is actually on the button and not on a frame. I've done this accidentally before.

very true when you test it and you move the mouse over the button does it change to a hand pointer instead of the usual mouse? and is there a hit state in the button just thought of that. and that lil test thing will look like a check.

#7 dud3

dud3

    Young Padawan

  • Members
  • Pip
  • 7 posts

Posted 22 May 2005 - 03:16 AM

yer, its on the button, and is a button, but it won't goto the selected scene still




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users