Re: How to implement IBindHost



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


.



Relevant Pages

  • Re: Personal defense ammo, .38SPL, 2"bbl "low-flash" ??
    ... # flash of the 2 barrel is very difficult to hide however the powders ... IWBA denim protocol has found that most GS loads do not ... resist clogging well and as a result fail to expand properly ... If you throw in a 2" 38 barrel with any manufacturer's ...
    (rec.guns)
  • HELP !!! Capturing "linked videos" from Flash - Im Stumped
    ... I have a couple of Flash ... capture utilities -and they work fine for games, animations, etc. ... I am talking about a tiny swf file that "references" a video clip ... Real Video - I use notepad to look in the "ram" file to find the ...
    (rec.video.desktop)
  • Re: ripping webarchives with historic or art photos
    ... have on display (without a flash though). ... wouldn't have any rights to sell it. ... only person you could sell it to would be another idiot like yourself. ... They take apart the data in an SWF file and save it as their original ...
    (rec.photo.digital)
  • Re: how to add flash animation into frontpage 2003
    ... > HI Kevin Spencer ... > have the flash player downloaded now and i was wondering how can i ... > wordart in frontpage 2003 into a swf file and with the swf file can i get ... >> can certainluy use FrontPage to embed a .swf into a web page. ...
    (microsoft.public.frontpage.programming)
  • Containers, documents, views and asserts
    ... Recently I have attempted to add support for rendering flash files ... up and the flash player dll is loaded with no problems. ... My application told the dll to open the .swf file so the document, ...
    (microsoft.public.vc.mfc)