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.
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]
All original work on this site is covered by a Creative Commons Attribution 3.0 license unless otherwise specified.
You may share or use any code or images from this site in any manner, for free, so long as reasonable effort has been made to give credit where due.
The views expressed in the posts and comments on this blog do not necessarily reflect those of my current or former employers.