[SWFObject] swf loading external swf
MJJAIXEN at up.com
MJJAIXEN at up.com
Thu Aug 31 06:35:37 PDT 2006
Try going back to the old style <object> tag format temporarily just to
eliminate swfobject as a potential problem.
I had a similar problem a while back; the SWF file needs to be in the same
directory as the HTML page that loads the page. You can use SWFObject to
call an object in another directory, but the Flash Player doesn't track
which directory the Flash was loaded from, so when Flash makes the request
for the 2nd movie, the browser makes the request relative to the HTML page
that is currently loaded.
I.E. /foo/mypage.html calls /bar/myflash.swf, and that loads fine, but if
/bar/myflash.swf were to call second.swf, it would try to load
/foo/second.swf, not /bar/second.swf. Of course, if you code the full path
of the second flash into the first flash (/bar/second.swf instead of just
second.swf), this wouldn't happen, but that probably will cause more
problems down the line when you decide to reorganize your site.
"Sibrand Hoekstra | Buyways B.V." <sibrand at buyways.nl> wrote:
> Im using the old workhorse swfobject.js to display a swf, which works
> like a charm, but then this swf loads another swf.
> And it doesn't. Is this a known issue ? And, more important, are there
> any workarounds?
>
> Any help is very much appreciated :')
>
> Siep
More information about the Swfobject
mailing list