This is killing me... It seems simple.
I have a button that I want to goto a movie clip. I have tried numerous ways of doing this. My first attempt was creating a new scene with the movie clip and everything. Although the actionscript on my first scene could not locate the frame on the second scene. It kept telling me it couldn't find it, although I kept checking and seeing that everything was correct. So now I realized hey, I'll just put a new frame and the tell it to gotoandplay that next frame... Although the whole animation starts over when that occurs. here is my code:

stop();
import flash.events.MouseEvent;
Marketing_btn.addEventListener(MouseEvent.CLICK, markMove);
function markMove(event:MouseEvent):void {
		trace("button clicked");
		gotoAndPlay("182");
}

182, is the next frame... I've tried having next frame, it does the same thing, i've also tried it w/out the quotes, it does the same thing. The same thing being restarting the animation...

Recommended Answers

All 2 Replies

Ok... I fixed it... now I have a problem of going back from where I went

Member Avatar for iamthwee

Post the .fla file as a zipped attachment.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.