0 Replies - 517 Views - Last Post: 11 February 2011 - 05:39 AM

#1 InfamousGeoff   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 28-January 11

trying to make buttons link to new layers in flash cs5

Posted 11 February 2011 - 05:39 AM

Ok im totaly new to this and trying to make a iphone app using adobe flash cs5. After i create a button and try to link it to a new page it just bounces back and forth like a gif image. lol. I have tried using the go to scene and play but i must be doing something wrong. Here is my example code below. I think my problem is somewhere in the timeline but im not sure.
 button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene);

function fl_ClickToGoToScene(event:MouseEvent):void
	MovieClip(this.root).gotoAndPlay(5, "Scene 2");

I created a key frame for scene 2 at frame 5 but my button from scene 1 just clicks itself and creates a loop. Sorry if my wording is off still trying to learn. Thank You!!!!

Is This A Good Question/Topic? 0
  • +

Page 1 of 1