SWFObject help
Posted: 15 May 2008 09:56 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  77
Joined  10-19-2005

Hi,

I’m trying to use SWFObject to embed an swf file and am a little lost.

I’ve used the documentation and the code generator to get code. Here’s where I’m at.

How to I call the flash movie?  I’m obviously missing what goes in the body to get the movie to show.

Any help would be appreciated.

Thanks!

Dana

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">

<
head>
<
title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>

<
link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
<
style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>

        
            var
flashvars = {};
            var
params = {};
            var
attributes = {};
            
attributes.id = "gallery";
            
swfobject.embedSWF("http://www.marjigallery.com/ParticleTransition-XML.swf", "myAlternativeContent", "299", "300", "8.0.0", false, flashvars, params, attributes);
        




</
head>

<
body>
<
table width="930" border="0" align="center" cellpadding="0" cellspacing="0">

  
{embed="site/header"}

  
<tr>
    <
td width="290" valign="top"  id="galleryCell">
    
{exp:weblog:entries weblog="static"  entry_id="4" dynamic="off"}
    
    
<div id="Gentext">

<
div id="myAlternativeContent">
            <
a href="http://www.adobe.com/go/getflashplayer">
                <
img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
            </
a>
        </
div>

   

      </
div>

Profile
 
 
Posted: 15 May 2008 10:13 AM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1463
Joined  09-16-2004

Can you give us a link to the actual page? The forum is stripping out the script tags…

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 15 May 2008 11:04 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  77
Joined  10-19-2005

Yes sorry, I forgot about that.

http://www.marjigallery.com/index.php/site/gallery/

Thanks!

Profile
 
 
Posted: 15 May 2008 11:15 AM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1463
Joined  09-16-2004

2 suggestions:
1. make the link to swfobject.js absolute e.g. http://www.example.com/swfobjects.js
2. add

flashvars.height = "299";
flashvars.width = "300";                                             
params.allowscriptaccess = "always";


to your script call in the head.

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 15 May 2008 12:14 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  77
Joined  10-19-2005

Ok did that and added recommended code, now it hangs up and at “Transferring data from www.marjigallery.com”

It’s a flash movie that calls 2 images via xml…could that be part of the problem? It works fine outside of ee. (I use dreamweaver and it does it’s thing but it doesn’t translate to the ee template http://www.marjigallery.com/general.html)

Thanks!
Dana

Profile
 
 
Posted: 15 May 2008 12:25 PM   [ Ignore ]   [ # 5 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1463
Joined  09-16-2004

Care to post your XML code too?
You may have to use absolute paths to the images in your XML as well…

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 15 May 2008 12:36 PM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  77
Joined  10-19-2005

<slides>
    <
image name="http://www.marjigallery.com/slides/hoyle.jpg" />
    <
image name="http://www.marjigallery.com/slides/marji.jpg" />
</
slides>

Maybe some where in the flash file…let me look through it and see what I find. (I bought it and just replaced the pictures)

Profile
 
 
Posted: 15 May 2008 01:14 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  759
Joined  03-22-2004

I bought it and just replaced the pictures

Make sure the new pictures you added were not saved as progressive jpgs as flash will not load them. The flash movie is loading fine and I’m guessing the xml is ok too.

Profile
 
 
Posted: 15 May 2008 04:08 PM   [ Ignore ]   [ # 8 ]  
Grad Student
Rank
Total Posts:  77
Joined  10-19-2005

Ok, I found it. One more path in the flash actionscript that pointed to the xml file, made absolute and presto.

Thanks everybody!

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 29
Total Topics: 82017 Total Anonymous Users: 17
Total Replies: 440827 Total Guests: 178
Total Posts: 522844    
Members ( View Memberlist )