mgason
12-10-2008, 12:46 PM
Hi,
I am trying to be good and move to AS3.
I had all of my code working, then I moved all of my main movie timeline into a movie clip (body_mc)
Main movie now has 1 frame.
My body_mc has a navigation menu, one button is portfolio_bttn which takes you to that frame label. It persists through all frames of body_mc. This button works fine.
I seem to have everything working except 4 buttons on the first frame of body_mc. They should all perform exactly the same function as portfolio_bttn. They exist only in frame 1.
They work the first time you click one (any one).
Navigate back to frame one of body_mc and all 4 buttons will no longer work. What am I doing wrong??
here is my code which is in frame 1 of the main timeline
body_mc.portfolio_bttn.addEventListener(MouseEvent .CLICK, clickPortfolio);
function clickPortfolio(event:MouseEvent):void {
body_mc.gotoAndStop("portfolio");
}
//the 4 buttons making trouble
body_mc.homeVid1_bttn.addEventListener(MouseEvent. CLICK, clickPortfolio);
body_mc.homeVid2_bttn.addEventListener(MouseEvent. CLICK, clickPortfolio);
body_mc.homeVid3_bttn.addEventListener(MouseEvent. CLICK, clickPortfolio);
body_mc.homeVid4_bttn.addEventListener(MouseEvent. CLICK, clickPortfolio);
thanks for any help
mark
I am trying to be good and move to AS3.
I had all of my code working, then I moved all of my main movie timeline into a movie clip (body_mc)
Main movie now has 1 frame.
My body_mc has a navigation menu, one button is portfolio_bttn which takes you to that frame label. It persists through all frames of body_mc. This button works fine.
I seem to have everything working except 4 buttons on the first frame of body_mc. They should all perform exactly the same function as portfolio_bttn. They exist only in frame 1.
They work the first time you click one (any one).
Navigate back to frame one of body_mc and all 4 buttons will no longer work. What am I doing wrong??
here is my code which is in frame 1 of the main timeline
body_mc.portfolio_bttn.addEventListener(MouseEvent .CLICK, clickPortfolio);
function clickPortfolio(event:MouseEvent):void {
body_mc.gotoAndStop("portfolio");
}
//the 4 buttons making trouble
body_mc.homeVid1_bttn.addEventListener(MouseEvent. CLICK, clickPortfolio);
body_mc.homeVid2_bttn.addEventListener(MouseEvent. CLICK, clickPortfolio);
body_mc.homeVid3_bttn.addEventListener(MouseEvent. CLICK, clickPortfolio);
body_mc.homeVid4_bttn.addEventListener(MouseEvent. CLICK, clickPortfolio);
thanks for any help
mark