Halcyon Dtier
07-20-2009, 01:50 AM
I'm creating a cd where a flash.exe will autorun and I'd like for the user to be able to open pdfs by clicking on buttons in the flash file.
I've tried using the following code:
//when button is released, open the pdf document:
btnMyButton.onRelease = function() {
getURL("test.pdf", "_blank");
};
it comes back with "statement must appear within on handler"
Anyone got any ideas on how to fix this? (I'm a real newb with AS).
Thanks in Advance.
I've tried using the following code:
//when button is released, open the pdf document:
btnMyButton.onRelease = function() {
getURL("test.pdf", "_blank");
};
it comes back with "statement must appear within on handler"
Anyone got any ideas on how to fix this? (I'm a real newb with AS).
Thanks in Advance.