Jump to content


Photo

IS MY CODEING CORRECT?


  • Please log in to reply
4 replies to this topic

#1 sonder

sonder

    Young Padawan

  • Members
  • Pip
  • 15 posts
  • Gender:Male

Posted 28 July 2005 - 09:33 AM

Hello, I'm tryin to make a layer of a button go to a particular frame and scene when it is clicked by the user, but its not working, can anyone help, the codeing is below. At the moment the button's state is a movie symbol, cos I couldn't get it to work as a button either, so I tried a movie symbol.

Thanks

Sonder!!!!

onClipEvent (mouseDown) {
gotoAndPlay("3","frame1");

}

#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 28 July 2005 - 10:44 AM

is your scene named 3, and do you have a frame marker named frame1?

#3 sonder

sonder

    Young Padawan

  • Members
  • Pip
  • 15 posts
  • Gender:Male

Posted 28 July 2005 - 11:03 AM

yes to both questions, the scene is just scene3 and the 1st frame is called frame1

Sonder!!!

#4 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 28 July 2005 - 01:07 PM

if your scene is named "scene3", then you need to put scene3 in your AS instead of "3"

#5 sonder

sonder

    Young Padawan

  • Members
  • Pip
  • 15 posts
  • Gender:Male

Posted 29 July 2005 - 06:23 AM

Thx for your help everyone, I got it sorted now, here was the correct code

onClipEvent (mouseDown) {
_root.gotoAndPlay("tween");
}


I just named the fisrt frame of the other scene to 'tween' and then published preview, rather than ctrl-enter and it worked fine.

Thx again

Sonder!!!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users