Re: Embedding Flash in .app
Re: Embedding Flash in .app
- Subject: Re: Embedding Flash in .app
- From: Nicko van Someren <email@hidden>
- Date: Thu, 29 Dec 2005 16:33:42 +0000
On 28 Dec 2005, at 18:24, Rachel Blackman wrote:
I have a situation where I need to display a Flash file as,
basically, an NSView subclass. I was thinking that using
NSMovieView and just loading in the Flash file would be the best
way to handle it, but I've realized that there is no way I would be
able to set Flash variables (which, unfortunately, I need to be
able to do).
Has anyone else been crazy enough to try this in the past? Is the
best way to do it just using a web view (yuck, seems like overkill)
and communicating with the Flash movie that way? Or am I missing
some other obvious method?
Unless there is something that you can do with the QuickTime movie
handle from [[myMovieView movie] QTMovie] then I think that using a
WebView is going to be your best way; the WebView option will
certainly be the simplest to integrate into a Cocoa application.
Once you've loaded your Flash movie this way you should be able to
adjust the variables through the scripting interface.
It's worth noting that if you ask Xcode to dynamically link against
the WebKit framework then there will be little bloat to your
application since the framework code will not be included in what you
have to ship. It is also my understanding that the code components
of dynamically loaded frameworks can be shared between applications
and will only reside in physical memory once, so if the user already
has Safari running there the will be relatively little memory
footprint. As such it is perhaps not so much overkill after all.
Nicko
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden