Solved

Having trouble embedding a flash file .swf on my home page.

Posted on 2011-09-20
6
346 Views
Last Modified: 2012-05-12

I'm using wondershare to create a 3d gallery.  basically an .swf file that loads pictures into a template and you can interact with it.  Simple, but I can't get it to show on my website.  Here is the html code below.  The file works fine on my computer, but won't run when I upload the "project directory structure" to my website.  In essence I have uploaded the entire TEST folder to the root of my website.  
The structure is:
\test\test.swf (this is the embedded .swf file I want to play)
\test\resource (this is a subdirectory)
\test\resource\res (this is another subdirectory)
\test\resource\xml (this is another subdirectory)
\test\resource\album.xml
\test\resource\res\images  (this has the photos to populate the .swf)


Anyway, I'm sure its a path issue, but not sure what, where and exact syntax to change to.  It just shows a black box no errors, but I suspect it can't find the photos?
\test\resource\config.xml



<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.0.0" width="600" height="450" ID="sf" VIEWASTEXT>
  <param name="movie" value="homepage.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="window" />
  <param name="allowScriptAccess" value="always" />
  <param name="allowFullScreen" value="true" />
  <embed src="homepage.swf" quality="high" name="sf" allowScriptAccess="always" allowFullScreen="true" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="450"></embed>
</object>
0
Comment
Question by:rdelrosario
6 Comments
 

Author Comment

by:rdelrosario
ID: 36569203
the code shows homepage.swf  (it is suppose to say test.swf that was a typo.....  
0
 
LVL 29

Assisted Solution

by:dgofman
dgofman earned 250 total points
ID: 36569374
Embedding object class HTML tags is very old syntax use SWFObject JavaScript

http://code.google.com/p/swfobject/
0
 

Author Comment

by:rdelrosario
ID: 36569404
I'd love to read about how that works, but I used a 3rd party .swf generator program.  I know very little web programming... enough to do damage.  Can you define the syntax of how to reference my files.  specifically, can you define the  chunk of code that I can copy and paste using your suggestion based on my code sample above.
0
 
LVL 8

Accepted Solution

by:
Jen0910 earned 250 total points
ID: 36569662
Doesn't matter what you used to generate a swf file, it's still a SWF file. How you implement SWFobject depends a lot on your file, and it also needs additional files you download with the package in order to work correctly. You really should read the documentation, and then try the SWFobject generator after you figure out which implementation suits your needs better.

http://swfobject.googlecode.com/files/swfobject_generator_1_2_html.zip

Download the package here that has the files you need: http://code.google.com/p/swfobject/downloads/detail?name=swfobject_2_2.zip

There are 2 ways to install SWFobject, here is one example of what your code could look like. This is the version I always use.
<head>
<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
var flashvars = {};
var params = {
  menu: "false",
  loop: "false",
  quality: "high",
  scale: "noscale",
  align: "center",
  wmode: "transparent",
  devicefont: "false",
  allowscriptaccess: "always",
  allownetworking: "all",
  seamlesstabbing: "true",
  allowFullScreen: "true",
  classid: "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
  };
var attributes = {};

swfobject.embedSWF("test.swf", "flashAlt", "600", "450", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
</head>

<body>
<div id="flashAlt">
Place your alternative content here for users who do not have the correct version of flash player.
</div>
</body>

Open in new window

0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 37337167
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
FreePBX to CUCM Error 1 63
Downgrading shoretel phones 3 71
Terminology defined.  Easy Questions 5 49
Cisco MRA Phones 4 91
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
The goal of the tutorial is to teach the user how to how to record live broadcast.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now