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
484 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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 what frame rate is, how to control it and what effect it has on the video.

717 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