I guess you are talking about buttons inside MovieClip symbols (which have independent timelines). I think it would make more sense to have Flash navigation buttons outside of MovieClip.
The following code is not mine, but it is a good navigation example.
Code:
Scene 1
Actions for Frame 1
var myURL:URLRequest = new URLRequest("swfs/intro.swf");
var myLoader:Loader = new Loader();
myLoader.load(myURL);
target_mc.addChild(myLoader);
Actions for Frame 2
stop();
home_btn.addEventListener(MouseEvent.CLICK, goHome);
function goHome(e:MouseEvent):void
{
gotoAndStop("$home");
myURL = new URLRequest("swfs/intro.swf");
myLoader.load(myURL);
}
web_btn.addEventListener(MouseEvent.CLICK, goWeb);
function goWeb(e:MouseEvent):void
{
gotoAndStop("$w1");
myURL = new URLRequest("swfs/w1.swf");
myLoader.load(myURL);
}
print_btn.addEventListener(MouseEvent.CLICK, goPrint);
function goPrint(e:MouseEvent):void
{
gotoAndStop("$p1");
myURL = new URLRequest("swfs/p1.swf");
myLoader.load(myURL);
}
Actions for Frame 5
w1.addEventListener(MouseEvent.CLICK, loadWeb);
w2.addEventListener(MouseEvent.CLICK, loadWeb);
w3.addEventListener(MouseEvent.CLICK, loadWeb);
function loadWeb(e:MouseEvent):void
{
gotoAndStop("$"+e.currentTarget.name);
myURL = new URLRequest("swfs/"+e.currentTarget.name+".swf");
myLoader.load(myURL);
}
Actions for Frame 20
p1.addEventListener(MouseEvent.CLICK, loadPrint);
p2.addEventListener(MouseEvent.CLICK, loadPrint);
function loadPrint(e:MouseEvent):void
{
gotoAndStop("$"+e.currentTarget.name);
myURL = new URLRequest("swfs/"+e.currentTarget.name+".swf");
myLoader.load(myURL);
}
painting, ‹web_btn›
home, ‹home_btn›
design, ‹print_btn›
INTRO, (Arial-Black, 24 pts)
WEB DESIGN, (Arial-Black, 24 pts)
PRINT DESIGN, (Arial-Black, 24 pts)
1, ‹w1›
2, ‹w2›
3, ‹w3›
1, ‹p1›
2, ‹p2›
inv, ‹target_mc›
Bookmarks