?
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
Medium Priority
?
486 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

770 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