I have a movie where the user clicks on a thumbnail picture
to open a pdf file of the same image. I have two script that work
for to open the first file, however I don't know how to change the
pdf variables to open the other pdfs.
Working Script 1:
global pdf_filepath, adobePath
on mouseUp me
global currentfilepath, adobePath, pdf_filepath
--sets value of currentfile path to the exact path to
--adds route to pdf file to current file path
--preset value for adobe application executable
How do I change the pdf filepath variable????
I tried the following
if sprite(21).member="Demographics" then
still no work...
Godammmit, I'm going crazy if any one can help I'll give you
ONE MILLLLLION dollars!
Short answer that
may possibly help: Make sure the following is above (i.e.
outside) the "handler" where you have the code you're trying (and
yet in the same script):
The code you showed after "I tried the following" ... seems
sound. So, we need to question where you are putting that code... ?
Is it being placed in a script that has the correct global variable
declaration ( "global pdf_filepath" ) somewhere in it? If not, you
can edit a _local_ variable of the same name as a _global_
variable, and the global variable of the same name will not be
Note that globals must be declared (to allow for access)
_outside_ of any handlers, yet in the _same_ script. Every script
that wishes to access a given global var must declare it in that
script, outside of any handlers in the script.
For more info, search the help system for details on global
What is a "handler"? There are several predefined ones (see
some below), and you can also create your own, of almost any
desired name, and then "call" on them as needed.
Here are some examples of predefined ones, with a global
variable "called" properly above them:
on mouseUp me
If this works for you, please contact me for info on where to
send the million dollars. :)