Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: contacting the browser through Flash



You must have missed it below - we are using that - it's what's
tripping the security alert

you are right, I did... what do you mean by:

The GetURL AS command only replaced the height and width parameters
of the widget with the Webpage on the dashboard (which is kinda cool,
though I haven't thought how to make that work in a useful way).


On Jan 25, 2007, at 2:12 PM, Johnny Storm wrote:

> I've yet to create a widget that uses Flash, but take a look at this:
>
> ExternalInterface
>
> http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/
> html/wwhelp.htm?context=LiveDocs_Parts&file=00002200.html
>
> Its a better way to talk to javascript
>
> On 1/25/07, Michael Leis <email@hidden> wrote:
>> OK - let's set all the java vs. flash arguments aside for a moment :)
>>
>> We are using Flash in a widget. With OnRollover, our clicks work
>> great to control the remote flash file. No sandbox violations, it's
>> great.
>>
>> Until we tried to link to an external URL.
>>
>> The GetURL AS command only replaced the height and width parameters
>> of the widget with the Webpage on the dashboard (which is kinda cool,
>> though I haven't thought how to make that work in a useful way).
>>
>> We followed a path of experimentation between javascript and flash,
>> finally settling on the Flash ExternalInterface.call to send a url to
>> a HTML javascript function that runs a widget.openURL like so:
>>
>> function showFlashURL(urltoopen)
>> {
>>         alert(urltoopen);
>>         widget.openURL(urltoopen);
>> }
>>
>> Now, we've tripped over the edge of the sandbox. Clicking a URL in a
>> widget where the Flash is remote, the HTML is local, and the command
>> fires back through the HTML to throw a Flash security violation.
>>
>> If anyone can help here, it would be so appreciated, there may be a
>> reward involved. This is obviously a critical function that needs to
>> be solved. And we're stuck.
>>
>> Thanks,
>>
>> Michael
>>
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Dashboard-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/dashboard-dev/johnnystorm0%
>> 40gmail.com
>>
>> This email sent to email@hidden
>>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden
References: 
 >contacting the browser through Flash (From: Michael Leis <email@hidden>)
 >Re: contacting the browser through Flash (From: "Johnny Storm" <email@hidden>)
 >Re: contacting the browser through Flash (From: Michael Leis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.