shalomz
03-25-2008, 02:33 AM
Oh boy I can't imagine this is that hard.
So I am attempting to build a simple site. I have a main timeline with 4 layers. actions, labels, content and background. They are broken into homePage,demoPage,artPage and aboutPage every 10 frames.
there is a stop(); action in the actions layer in main timeline on 1st frame of "home".
When published it plays the movieclip in 1st frame of content layer that corresponds to stop() action.(The clip is navigation buttons and header appearing over several frames)
so far so good.
Now to get the buttons to work
in the movieclip(instance name homeClip) on last frame of animation in the actions layer I have a stop(); action. good.
NOw heres the question
I want to get back to and stop on the main timeline line and specifically the frame labeled demoPage.
here is what I have on that last frame of homeClip in the actions layer
stop();
import flash.events.MouseEvent;
demoButton.addEventListener(MouseEvent.CLICK,navto Demo);
function navtoDemo(event:MouseEvent):void {
this.parent.gotoAndStop("demoPage");
}
What did I do wrong?
When I do the following I get the proper thing in output window so I imagine my error is in the last sentence between the brackets.
stop();
import flash.events.MouseEvent;
demoButton.addEventListener(MouseEvent.CLICK,navto Demo);
function navtoDemo(event:MouseEvent):void {
trace("this is impossible";
}
thank you in advance!!!
shalom
So I am attempting to build a simple site. I have a main timeline with 4 layers. actions, labels, content and background. They are broken into homePage,demoPage,artPage and aboutPage every 10 frames.
there is a stop(); action in the actions layer in main timeline on 1st frame of "home".
When published it plays the movieclip in 1st frame of content layer that corresponds to stop() action.(The clip is navigation buttons and header appearing over several frames)
so far so good.
Now to get the buttons to work
in the movieclip(instance name homeClip) on last frame of animation in the actions layer I have a stop(); action. good.
NOw heres the question
I want to get back to and stop on the main timeline line and specifically the frame labeled demoPage.
here is what I have on that last frame of homeClip in the actions layer
stop();
import flash.events.MouseEvent;
demoButton.addEventListener(MouseEvent.CLICK,navto Demo);
function navtoDemo(event:MouseEvent):void {
this.parent.gotoAndStop("demoPage");
}
What did I do wrong?
When I do the following I get the proper thing in output window so I imagine my error is in the last sentence between the brackets.
stop();
import flash.events.MouseEvent;
demoButton.addEventListener(MouseEvent.CLICK,navto Demo);
function navtoDemo(event:MouseEvent):void {
trace("this is impossible";
}
thank you in advance!!!
shalom