Solved

Flash not scaling inside a table cell in FireFox and not  not showing up at all in IE. Works outside table!

Posted on 2008-06-25
8
479 Views
Last Modified: 2008-07-04
Greetings;

I have authored a Flash movie and it is working fine. When I use the html page output by Flash it scales fine but when I cut and paste this code into a table cell the movie will not scale (in Firefox) and not showup at all in IE 7.

Help appreciated. Here is the html page output by Flash:

http://www.howardbakerphotography.com/gallery/bakerGallery.html (Scaling fine)

Here is the content placed inside a simple table cell:

http://www.howardbakerphotography.com/gallery/index3.php (Only shows up small not scaling)

Help appreciated.

Rip

0
Comment
Question by:ripnoel
  • 3
  • 2
8 Comments
 
LVL 5

Expert Comment

by:cwickens
ID: 21871403
what are the size limits on the table/cell you are putting it in?  can you post the php code for index3.php?

you have "<td width="20">" in the HTML, that might be limiting it.  I didn't see anything when I viewed the second link in IE7.
0
 

Author Comment

by:ripnoel
ID: 21874339
Hi and thanks for trying to help!  If you will look a bit closer you will see that the "<td width="20">" is in the table cell just BEFORE the cell with the Flash content. It's cell is set to "<td align="center">" with no size. BTW, I did point out in my original post this is not showing up at all in IE ...

Thoughts appreciated!

code below:


<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="20"><img src="../images/html/mnCnt/spacer.gif" width="1" height="800" /></td>
    <td align="center">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
      if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
      } else {
            AC_FL_RunContent(
                  'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                  'width', '100%',
                  'height', '100%',
                  'src', 'bakerGallery',
                  'quality', 'high',
                  'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                  'align', 'middle',
                  'play', 'true',
                  'loop', 'true',
                  'scale', 'showall',
                  'wmode', 'window',
                  'devicefont', 'false',
                  'id', 'bakerGallery',
                  'bgcolor', '#46454b',
                  'name', 'bakerGallery',
                  'menu', 'true',
                  'allowFullScreen', 'true',
                  'allowScriptAccess','sameDomain',
                  'movie', 'bakerGallery',
                  'salign', ''
                  ); //end AC code
      }
</script>
<noscript>
      <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="100%" height="100%" id="bakerGallery" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="true" />
      <param name="movie" value="bakerGallery.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#46454b" />      <embed src="bakerGallery.swf" quality="high" bgcolor="#46454b" width="100%" height="100%" name="bakerGallery" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>
</noscript>
    </td>
    <td width="20">&nbsp;</td>
  </tr>
</table>
</body>
</html>
0
 

Accepted Solution

by:
ripnoel earned 0 total points
ID: 21874872
Found the solution myself! It appears the problem was in the document type I was declaring:

<!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">

*The above was preventing my Flash from scaling when placed in a table cell. When I changed it to:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >

It worked fine.

I'd be curious to know a little more about this problem if anyone else has some insight ...

Rip
0
 
LVL 5

Expert Comment

by:cwickens
ID: 21874886
It was late when I responded to your initial post, I did mean to say that I didn't have FF installed on that machine but was confirming that it didn't show up in IE...lol

rather than put the SWF in a table to center it, put it in a <div align="center"> tag.  I think that the table is what is causing your issue.

c
0
 
LVL 5

Expert Comment

by:cwickens
ID: 21874916
was replying when you made your post, glad to see you got it sorted...  I would have not even looked at the header.  

Ugh, I need more coffee  :)
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

759 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

22 Experts available now in Live!

Get 1:1 Help Now