Forums » Installation

Swf Object Embed

mfro
UNITED STATES
2010-03-10 01:19:57
Permalink Post
 


I just started using indexhibit and am trying to build a portfolio of flash banners. Some of the banners have initial and progressive loads, meaning that there's a first .swf that loads a second swf inside of it. I've uploaded both files to my server and then tried to embed the first swf in the page. The problem is that it doesn't load the second swf.

Just to confirm that the .swf does work and that they are in the same place, I made a test html page and put it in the same directory and pulled up that page in my browser and it works fine. It's only when embedded on the indexhibit page that it doesn't work.

I also tried to use swfobject to embed the swf but that doesn't seem to work at all, it just calls the alternative content ("you need flash..") instead of loading the swf. I use absolute URLs in the paths to both the .swfs and the swfobject.js file so that doesn't seem to be the issue.

Is there something about Indexhibit that doesn't allow dynamic flash and/or swfobject embedding?

I'd love to use indexhibit for my portfolio so if anyone has any advice, I thank you in advance!

Vaska A
I WROTE THIS
2010-03-10 09:41:43
Permalink Post
 

What is the page in question?

And no, there is nothing Indexhibit would be doing to stop Flash from functioning.

mfro
UNITED STATES
2010-03-10 19:27:13
Permalink Post
 

here is the page:

http://www.mfrohman.com/indexexhibit/index.php?/project/banners/

There is a swfobject embed first and then the initial swf embedded with the file manager below it. The swfobject is only calling the 'alternative content'(flash plugin link) and not embedding the swf. The file manager embed has the initial shell but is not loading in the second swf so it just looks like an empty frame.

this is a page I set up in the same folder that indexhibit loaded the swfs through file manager in: http://www.mfrohman.com/indexexhibit/files/index.html
It uses the same swfobject embed code as I'm trying to use through indexexhibit and points to the same swf files. I don't know why it works here but not above.

thanks!

Vaska A
I WROTE THIS
2010-03-10 20:54:27
Permalink Post
 

You got the object embed part right...do you see what's wrong with this code?

  1. <script type="text/javascript" src="http://www.mfrohman.com/indexexhibit /files/swfobject.js"></script>
  2. <script type="text/javascript">
  3. var flashvars = {};
  4. var params = {};
  5. var attributes = {};
  6. swfobject.embedSWF("http://www.mfrohman.com/indexexhibit/files/mnie300x250cs3.swf", "myAlternativeContent", "300", "250", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  7. </script>

See all these breaks? These are auto-generated by Indexhibit and in this case they get in the way. Simply go to Exhibits > Edit (your exhibit) > Additional Settings > Page Processing and turn it "Off".

Then, no auto formatting and these breaks will go away.

mfro
UNITED STATES
2010-03-10 22:19:10
Permalink Post
 

ah, great, now the swfobect embed works. Thanks!

For some reason, the dynamic swf still isn't working. It's not loading the second swf. It's not a flash problem because as I mentioned before I made this index page in the same folder that works: http://www.mfrohman.com/indexhibit/files/index.html

The only thing I can think is that the path from swf1 to swf 2 is incorrect. As it is now, swf 1 uses a relative path to swf 2 because they are in the same directory. It works on that index page mentioned above. Is there something about it being embedded in the page that would require an absolute path to the second swf even though the swfs appear to be in the same directory?

mfro
UNITED STATES
2010-03-10 22:32:45
Permalink Post
 

Actually, I just made the the link to swf 2 an absolute url and it works now. I guess the paths to files isn't as transparent as it appeared at first. Maybe you can shed some light on this? It means I have to go in an change all my files but its worth it to have it work properly and to be able to use this application.

thanks a lot!

Showing 1 - 6 of 6 posts in Forum > Installation > Swf Object Embed
 

You need to be logged in to post.