[LEFT]This non-programmer artist needs some AS3 help. All my previous Flash work was just drawing and tweening, etc., no significant scripting. Then along came this project, with a tight deadline. I’ve blown too much time trying to solve the problem working my way through the two thick ActionScript 3.0 books I have, so here I am.
The situation: A complex drawing has small buttons (btnA, btnB, etc.) atop specific areas. Click on the button for a detail of that area as a pdf, opening in its own window.
The stage has a scrollpane and an MC on separate layers. The MC loads into the scrollpane.Within that MC is another MC, which has an image of the assembly on one layer, and buttons on the next level.
With just one button, it works as desired. This is the entire exact code:
*btnA.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
**function fl_ClickToGoToWebPage(event:MouseEvent):void
**{
**navigateToURL(new URLRequest(“http://Parks/diagrams/btnA.pdf”), “_blank”);
**}
*My multiple attempts to add more buttons (btnB, btnC, etc.) that open their respective pdfs upon click have been unsuccesful. I’d be grateful if someone could show how to modify the above code to have additional buttons open their respective pdfs when clicked.[/LEFT]