Re: How to implement IBindHost
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 10 Apr 2006 13:29:46 -0400
Vicente <uchan@xxxxxxx> wrote:
After the entire morning trying to solve the problem I found this
strange situation:
When I call m_flash.LoadMovie (which loads a SWF file into the
ActiveX) passing a "real" url, for example: "d:\intro.swf", only is
called CMyMoniker::BindToStorage, but if I call m_flash.LoadMovie
with an strange url, for example:"hello" (m_flash.LoadMovie("hello");)
CMyMoniker::GetDisplayName and CMyMoniker::BindToStorage are called,
but nothing is displayed in the control.
IMoniker::GetDisplayName is a way for the client to retrieve a URL from
which the data is coming. I suspect Flash needs a valid URL for various
reasons - to verify security (there are interesting things ActionScript
can do that a restricted by same-origin policy), maintain cookies (Flash
has its own persistent storage independent of browser cookie jar) and so
on.
Try passing a valid-looking URL (it does not have to actually exist) to
LoadMovie or return it from GetDisplayName. You'll trick Flash into
believing that the data is actually coming from that URL.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: How to implement IBindHost
- From: Vicente
- Re: How to implement IBindHost
- References:
- How to implement IBindHost
- From: Vicente
- Re: How to implement IBindHost
- From: Igor Tandetnik
- Re: How to implement IBindHost
- From: Vicente
- Re: How to implement IBindHost
- From: Igor Tandetnik
- Re: How to implement IBindHost
- From: Vicente
- Re: How to implement IBindHost
- From: Igor Tandetnik
- Re: How to implement IBindHost
- From: Vicente
- Re: How to implement IBindHost
- From: Vicente
- Re: How to implement IBindHost
- From: Igor Tandetnik
- Re: How to implement IBindHost
- From: Vicente
- Re: How to implement IBindHost
- From: Vicente
- How to implement IBindHost
- Prev by Date: Re: How to implement IBindHost
- Next by Date: Re: get_contentWindow / cross site ? / once again
- Previous by thread: Re: How to implement IBindHost
- Next by thread: Re: How to implement IBindHost
- Index(es):
Relevant Pages
|
|