Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 358
page3_mc.addEventListener(MouseEvent.CLICK, page3content);
function page3content(e:MouseEvent):void {
var myURL:URLRequest=new URLRequest("page3.swf");
myProLoader.load(myURL);
addChild(myProLoader);
}
page4_mc.addEventListener(MouseEvent.CLICK, page4content);
function page4content(e:MouseEvent):void {
var myURL:URLRequest=new URLRequest("page4.swf");
myProLoader.load(myURL);
P Note: Adding event
listeners to movie clips
can make them respond
to mouse clicks, but
your cursor doesn’t
automatically change to
a hand icon to indicate
that it is clickable. In the
Actions panel, set the
property buttonMode
to true for each movie
clip instance to enable
the hand cursor. For
example, page1_
mc.buttonMode=true
makes the hand cursor
appear when you move
your mouse over that
movie clip on the Stage.
addChild(myProLoader);
}
11 Click on each of the remaining three movie clips on the Stage and name them
in the Properties inspector. Name the yellow car page2_mc, name the data
section page3_mc, and name the self-improvement section on the lower left
page4_mc.
Adobe FLAsh ProFessionAL Cs6 CLAssroom in A book
349