Hey,
I’ve just finished the designs for my Flash banner and I’m putting in the Actionscript to link it all together. However, I’m by no means an expert in ActionScript but figured that AS3 would be the best way to go with it all. What I’ve got so far is 4 layers each with 1 frame which contains similar AS to the below.
stop();
p1.addEventListener(MouseEvent.CLICK, p1Click);
function p1Click(event:MouseEvent):void{
navigateToURL(new URLRequest("video-animation-pbshowreel.asp"));
trace("clicked");
buttonMode = true;
mouseChildren = true;
useHandCursor = true;
}
In total, there are 4 of these frames with similar code, noted as “p1” to “p4”. Subsequently, there are frames within the root setup with labels for the corresponding names of “p1” to “p4”. At the end of the timeline for each layer there is code to loop back and play from the next frame label.
_root.gotoAndPlay("p2");
However, when I try to run the project, it displays an error: “1120: access of undefined property _root.”
If anyone can give any pointers then please let me know :).
Cheers,
Andrew.