Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

Re: MovieClip buttons inside a MovieClip button inside another MovieClip button

$
0
0

I have it working now. what I did, I make a slideshow setup (gotoAndStop(1);) in a specific frame and the code I put in for the next, didnt work.

this is was I have now, without the "turnOffAllButtons" coding:

 

Main Button (actions Layer):

stop();

travelButton_mc.buttonMode=true;

 

travelButton_mc.addEventListener(MouseEvent.ROLL_OVER, colorizetravelButton);

function colorizetravelButton(givenEvent:MouseEvent){

  if (givenEvent.currentTarget.currentFrame != 50)

  travelButton_mc.gotoAndPlay(2);

}

travelButton_mc.addEventListener(MouseEvent.ROLL_OUT, decolorizetravelButton);

function decolorizetravelButton(givenEvent:MouseEvent){

  if (givenEvent.currentTarget.currentFrame != 50)

  travelButton_mc.gotoAndPlay(21);

}

 

travelButton_mc.addEventListener(MouseEvent.CLICK, loadtravelLocations);

function loadtravelLocations(givenEvent:MouseEvent){

  travelButton_mc.gotoAndStop(50);

  travelLocations_mc.gotoAndPlay(1);

}

Screen Shot 2014-08-25 at 4.40.37 PM.png

Inside the travelLocations_mc I have currently one button to show a slide of pictures, this is the second layer of buttoncode:

stop();

 

scotlandButton_mc.buttonMode=true;

 

scotlandButton_mc.addEventListener(MouseEvent.ROLL_OVER, colorizescotlandButton);

function colorizescotlandButton(givenEvent:MouseEvent){

  if (givenEvent.currentTarget.currentFrame != 50)

  scotlandButton_mc.gotoAndPlay(2);

}

scotlandButton_mc.addEventListener(MouseEvent.ROLL_OUT, decolorizescotlandButton);

function decolorizescotlandButton(givenEvent:MouseEvent){

  if (givenEvent.currentTarget.currentFrame != 50)

  scotlandButton_mc.gotoAndPlay(21);

}

 

scotlandButton_mc.addEventListener(MouseEvent.CLICK, loadscotlandInfoPage);

function loadscotlandInfoPage(givenEvent:MouseEvent){

  scotlandButton_mc.gotoAndStop(50);

  scotlandInfoPage_mc.gotoAndPlay(1);

}

Screen Shot 2014-08-25 at 4.41.16 PM.png

I turned the alpha up so you can see the mc that loads

I currently have a keyframe at 60 with a code of stop(); so the travelLocations_mc will still

Screen Shot 2014-08-25 at 4.41.35 PM.png

does this make sense?


Viewing all articles
Browse latest Browse all 87055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>