However, Adobe AIR does
ExternalInterface, so we have to look for an alternative if we want to interact with
in HTML AIR apps. Before
ExternalInterface was introduced to ActionScript, there was
Just like typing
Most likely for security reasons,
getURL requires user interaction. You can call
getURL in an
function at an arbitrary point in the timeline, there must be user interaction. The user must actually be clicking
or moving the mouse on top of the SWF at the exact moment
getURL is called, or the
call will fail silently.
This demo application reproduces the problem. Every four seconds, the
included SWF tries to call
while you move the mouse atop the SWF, the calls succeed, but as soon as you stop, so do the calls.
- The function call must succeed with NO user interaction. No clicks, no mouse movement, no keypress.
- All source code must be available. For obvious reasons I won't run any submission I can't test by compiling the source.
- Your SWF can be written in either ActionScript 2 or 3, so long as you provide the source.
- No external applications (AutoIt, etc.).
- You can submit your solution in as many parts or files as you need, and any required installation or configuration process is fine as long as you can explain what to do.
I will send (via PayPal or personal check, whichever you prefer) $50 of my own hard earned cash to the first person to meet ALL of the above requirements. You get the cash whether the solution is an easy one-liner or a crazy convoluted workaround. No haggling, please — we already figured out a hack for work, so this contest is only for my own satisfaction. And hopefully yours if you like money.
To submit your solution, please post a link in the comments on this page. You can save the solution as text on PasteBin if you don't have your own hosting.
To embed a link in your comment here, use BBCode-style tags. For example, [url]http://your.web.site/path/file.ext[/url]