flash asfunction
- Started
- Last post
- 6 Responses
- stewart
i made some changes in an older flash file and needed to publish for player 7 and actionscript 2.
the older one was published for player 6 and had no problems.
but in the new file the asfunctions that are called from an external .txt file won't work anymore.
can't find what's changed in as2 or wrong with my file.
any suggestions?
- lvl_130
copy/paste as from txt file into the flash as window and check syntax? that should at least tell you any obvious errors.
- skelly_b0
Make it an AS file and use it like so?
#include "yourscript.as"
- stewart0
found it.
somehow the _global functions didn't work anymore when called from an external txt document (when i published the flash file for player version 8 instead of version 6).i changed all _global. functions into _root. functions and now it works again like it did before.
strange.
- maximillion_0
were you calling the funtion with the _global prefix?
- stewart0
no, without.
in the txt document it looked like this:
a href="asfunction:printform"
- maximillion_0
are the global functions defined in the first frame with _global? and yr txt doc loaded later?
just wondering why it didnt work and you had to change them