Skip to main content
February 13, 2007
Question

Flash in Mac OSX dashboard widgets

  • February 13, 2007
  • 4 replies
  • 769 views
We're at a dead-end!

We've successfully integrated remote flash into a dashboard widget. Actualy, making the flash remote, and changing all click events to onRollOver is the only way to do it (that we've found).

And this works *great* for navigation inside a flash movie. The problems come when trying to link out of that movie to launch a Safari broswer page -- the same way Dashboard's custom java call does. We've tried sending a java call back to a function in dashboard's local HTML that triggers the appropriate widget/javascript function -- and that's what throws the security error.

Any help or insight would be greatly appreciated.
This topic has been closed for replies.

4 replies

Inspiring
February 15, 2007
As of yet, I haven't used externalInterface so I can speak for it's ability one way or the other. However, if your widget is indeed a flash app (a.k.a projector), FS is perfectly legal and it sends it's calls out to the OS not the dashboard. It should make Safari load back out on the Desktop rather than within the confines of your flash app on dashboard. It's worth the try.
February 15, 2007
Unfortunately, FScommand doesn't work on Safari:
Here's the support article explaining it.
Inspiring
February 14, 2007
have you tried fscommands at all? since this is a widget (app), you can use fscommands to open programs you need. I'm sorry if I'm exploring options you may have already tried. This is just an idea.
February 14, 2007
I think we'll try that. externalInterface is supposed to be the new, better way to do FScommand, but what the heck, right?
Inspiring
February 14, 2007
You mean to say that using getURL from with in the widget actually replaces the widget with a safari window of the same dimensions as your widget?
February 14, 2007
Yes. No UI controls, just the page contents.
Inspiring
February 14, 2007
are you trying to simply get a safari page to open or are you trying to get a page to appear inside the dashboard?

If you just want safari to load in OSX, why not use getURL???

If you want it to always use the java callback as it does in most widgets, it may be more of an OSX issue. You may want to check on security issues on apple's developer site to see what rights or privledges you need to grant flash access to the same rights or privs other widgets already have.
February 14, 2007
It's funny - Using GetURL opens the URL within the parameters of the widget. So, for example, if the widget is 200x300, that area is replaced with the Web page.