swf files coming up blank

wintervanilla - November 30, 2007 - 21:35
Project:Flash Node
Version:5.x-3.1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm a newbie so please excuse me if this is a really low level request. I hope it is something simple:

on Drupal 5.3 I've just set up SWFtools and FlashNode so I can publish a .swf I've made to my homepage. All permissions are set and modules enabled, but when I create Flash content, the .swf does not appear. I'm sure Firefox recognizes that there is flash content on the page because there is a blank space that is the same dimensions as my .swf and when I right click I see "about flash player 9". But it seems my file isn't loading all the way. I don't see any similar support requests so maybe I've skipped a step along the way.

Thanks!

#1

Stuart Greenfield - November 30, 2007 - 22:17
Status:active» active (needs more info)

That sometimes happens if flash can't find the file it is supposed to be playing, so it leaves a blank placeholder.

You might also want to try different methods in SWF Tools - try direct embedding, then go back to a javascript method. I don't know why but sometimes that helps!

If this doesn't work then view the source code for the page and copy and paste the relevant flash part here and I'll have a look to see if that sheds any light. Alternatively, if the page in question is publically accessible let me know the link and I'll see if I can spot anything obvious from the page itself.

#2

wintervanilla - December 1, 2007 - 00:59

I've tried both direct embedding and using the Flash node type. Both yield the same blank area with dimensions that are precisely the dimensions of the stage in my flash animation. When embedded directly, I also get "<swf file="homepage.swf">" printing out directly below the blank area where the flash item should be.

Here's the relevant source code:

<div class="content"><div class="swftools-wrapper swftools-swf "><div class="swftools"><object width="840" height="380" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie"   value="http://localhost/drupal/files/flash/homepage_0.swf" />
<param name="wmode"   value="opaque" />
<param name="bgcolor" value="#FFFFFF" />
<param name="scale"   value="showall" />
<param name="quality" value="autohigh" />
<param name="align"   value="l" />
<param name="FlashVars"  value="width=840&height=380" />
<embed width="840" height="380" swliveconnect="default" src="http://localhost/drupal/files/flash/homepage_0.swf" wmode="opaque" bgcolor="#FFFFFF" scale="showall" quality="autohigh" loop="true" menu="false" play="true" name="" base="/files" salign="tl" FlashVars="width=840&height=380" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></div>
</div></div>

I am new to flash as well, so its possible I've made a mistake in how I published my .swf. I just used the default settings using Flash CS3.

Thanks for your help!

#3

wintervanilla - December 4, 2007 - 04:22

Does anyone have any further insight to offer me on this?

#4

Stuart Greenfield - December 4, 2007 - 12:59

The code looks to be right for direct insertion of flash, and it is clearly trying to do something as you are getting a placeholder.

Do you have a link to the website in question that I can visit to see if I see the same issue (to check it is not a browser issue).

Also, could you attach/email me the flash file. I can then test the file itself on my dev server to make sure it isn't the file that is causing a problem.

Lastly, if you are seeing <swf file="homepage.swf"> printing out, are you also trying to use the SWF Tools filter? Flash node doesn't output code in that format.

#5

Stuart Greenfield - December 6, 2007 - 00:04

I have just committed version 5.x-4.1 of Flash node and it should be available shortly. This version of Flash node can work without SWF Tools by rendering flash directly.

Try downloading the new package and disabling SWF Tools. Then try to create some flash content and see if it works.

Let me know what happens!

#6

wintervanilla - December 6, 2007 - 06:28

Thanks Stuart,

The <swf file="homepage.swf"> is only appearing when I try to embed the file using SWF Tools. I have the same blank space when trying both methods (flashnode and swftools).

I just updated to the newer version of FlashNode. Upon creating a new page with it, I got this error message... and still have the blank space appearing in my browser.

user warning: Unknown column 'vid' in 'field list' query: INSERT INTO flashnode (nid, vid, height, width, display, substitution, flashvars, base, fid) VALUES (39, 39, 380, 840, 0, '!default\r\n', '', './files', 10) in /Applications/MAMP/htdocs/drupal/includes/database.mysql.inc on line 172.    warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/drupal/sites/all/modules/flashnode/flashnode.module on line 387.

Right now the page is in development on localhost... so I can't provide you with a link to a live version. I'm hoping that within the next week or so I will get the whole thing moved onto a server. When this happens I will let you know. I've attached the swf that is failing. I'd be surprised if it's the file itself that is the problem, because I'm having the same result trying to insert a SimpleViewer flash file generated by iPhoto. I'm using Mac OSX and the latest version of Firefox.

Thanks again.. your effort is appreciated!
Andrew

AttachmentSize
homepage.swf_.zip185.52 KB

#7

Stuart Greenfield - December 6, 2007 - 09:22

After installing the latest flashnode did you run the update script (Think it will be at http://localhost/drupal/update.php looking at your flash file path)

There is a schema update to the database table that will add columns vid and fid.

If you did run the update then did it complete ok?

You should see (or have seen!) this message if the update is successful:

The following queries were executed
flashnode module
Update #9
ALTER TABLE {flashnode} ADD vid int NOT NULL default '0'
ALTER TABLE {flashnode} ADD fid int NOT NULL default '0'
UPDATE {flashnode} fn INNER JOIN {node} n ON fn.nid = n.nid SET fn.vid = n.vid
UPDATE {flashnode} fn INNER JOIN {files} f ON fn.nid = f.nid SET fn.fid = f.fid

Thanks for the zip file - I will test it later today.

#8

Stuart Greenfield - December 6, 2007 - 10:00

The flash file works for me on my test server running Drupal 5.3 and Flash node 4.1

The file will render using Flash node without SWF Tools, and also with SWF Tools / javascript!

If you can try again using Flash node without SWF Tools and see if that works? That said, I compared the mark up that SWF Tools produced that you pasted above, and the mark up I am getting, and they are the same, so it ought to be working.

As a double check try visiting this page on my site. This is also producing Flash via Flash node / SWF Tools. That way we can test that your browser is able to display the flash ok!

#9

wintervanilla - December 11, 2007 - 22:43

Thanks Stuart,

Flash is loading and looks great... and no more error messages. Still one remaining issue: When logged in as admin or root user, no matter what FlashNode permissions are allowed the swf files are still blank. If I logout or am logged in as any other user, they appear. Yet the source code for the files are exactly the same no matter who is logged in. I don't think this is intentional functionality... do you have any idea why this is happening?

Thanks!
Andrew

#10

Stuart Greenfield - December 12, 2007 - 22:27

do you have any idea why this is happening?

Um, nope! I never saw this happen before! Which version of flashnode are you using, and if 5.4 or later are you also using SWFTools, in which case which version of that? I'll have to try and recreate the problem I think.

Out of interest, if you add some text to the flashnode too do you see that? Is it just the flash file that is blank??

At least we're a bit closer to getting it working right :-)

#11

eileen - December 23, 2007 - 05:51

I'm having the exact same problem, but it's oddly random. Some of my .swf files work fine, others come up blank. There's a placeholder with the proper file dimensions, but no content.

I've tried all the solutions you offered here, but no luck. Any other ideas? I've got a ton of flash files to add, each a bit different and all work fine embedded in html on another website (same host.)

Thanks in advance,
Eileen

#12

Stuart Greenfield - December 23, 2007 - 10:12

This seems to be a really odd little bug!

Can you send me a file that works, and one that doesn't, to web@stuartandnicola.com? That way I can test the files on my local dev system and see if I can bottom it out.

Also, can I check - are the files "straightforward" in that the flash contains everything, or are they files that use loadMovie or similar in ActionScript. loadMovie needs careful use to work properly!

Thanks!

#13

eileen - December 23, 2007 - 18:51

Here's the thing; the site I'm building is for students, and it's vital that they be able to upload ANY .swf file without issues. Otherwise, the site is useless.

Can you outline for me (step-by-step like I were a remedial third grader) exactly what needs to be done to make movies with loadMovie() in them embed properly? I've read the documentation and can't make any sense of it.

Thanks,
Eileen

#14

mrevels - January 7, 2008 - 16:36

I am having a similar problem as those above. But here's my twist:

1. SWFs work fine on IE V6, but not at all in Firefox 2 (just get a blue placeholder)
2. FLVs do not work in either browser, but a blank placeholder is present
3. SWF is installed with Tools, j.query, 1 Pixel, SWFObject, SWF Tools, UFO, and Wijering checked
4. The latest Flashnode module was downloaded and used (as of 1/4/08)
5. Source for SWF is as follows

<div class="content">

    <div class="swftools-wrapper swftools-swf "><div class="swftools"><object width="600" height="500" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie"   value="http://drupal.learningsupersite.com/files/flash/c_demo.swf" />
<param name="wmode"   value="opaque" />
<param name="bgcolor" value="#FFFFFF" />
<param name="scale"   value="showall" />
<param name="quality" value="autohigh" />
<param name="align"   value="l" />
<param name="FlashVars"  value="width=600&height=500" />
<embed width="600" height="500" swliveconnect="default" src="http://drupal.learningsupersite.com/files/flash/c_demo.swf" wmode="opaque" bgcolor="#FFFFFF" scale="showall" quality="autohigh" loop="false" menu="false" play="false" name="" base="./files" salign="tl" FlashVars="width=600&height=500" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></div>
</div>    </div>

6. Source for FLV is as follows

<div class="content">

    <div class="swftools-wrapper generic-flv "><div class="swftools"><object width="300" height="300" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie"   value="http://drupal.learningsupersite.com/sites/all/modules/swftools/shared/generic/generic_flv.swf" />
<param name="wmode"   value="opaque" />
<param name="bgcolor" value="#FFFFFF" />
<param name="scale"   value="showall" />
<param name="quality" value="autohigh" />
<param name="align"   value="l" />
<param name="FlashVars"  value="autostart=false&file_url=http%3A/%252Fdrupal.learningsupersite.com/files/flash/Untitled_0001_NEW_0.flv&width=300&height=300" />
<embed width="300" height="300" swliveconnect="default" src="http://drupal.learningsupersite.com/sites/all/modules/swftools/shared/generic/generic_flv.swf" wmode="opaque" bgcolor="#FFFFFF" scale="showall" quality="autohigh" loop="false" menu="false" play="false" name="" base="./files" salign="tl" FlashVars="autostart=false&file_url=http%3A/%252Fdrupal.learningsupersite.com/files/flash/Untitled_0001_NEW_0.flv&width=300&height=300" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></div>
</div>    </div>

Any ideas?

#15

mrevels - January 7, 2008 - 20:31

Okay, read the doc at http://drupal.org/node/181998 regarding SWFtools. Got it working first, now Flashnode works fine! Go figure :-)

#16

heathergaye - January 10, 2008 - 00:17

Hi, wrt a blank swf under admin user: I'm on OSX, and I also have this problem in Firefox (I can hear the swf, I just can't see it). It works fine in Safari.

I've done some messing around, and it looks like enabling the admin_menu module is causing the problem. I've no idea why, but HTH. I can live with it.

#17

wintervanilla - January 10, 2008 - 19:35

I'm using OSX with Firefox (and also have admin menu enabled). Somehow this combination seems to be the problem - when I open the page with Firefox on a PC or with Safari on OSX it works great. I can absolutely live with it, but would like to fix this if anyone has come across a solution.

#18

Stuart Greenfield - January 18, 2008 - 12:10

I don't have access to an OSX machine so I can't recreate this problem. However, if I install admin_menu on my Vista machine then Drupal doesn't work under IE7 any more - pages with expandable sections stop expanding and the page never finishes loading. I also get flash files saying they have failed to initialise which is a sign that the js substitution routines aren't being triggered.

From this I can only assume that something to do with the js code that makes admin_menu works is interfering with other js modules, and this causes not only Flash node but also other js functions to fail.

I'm not familiar with js to know why this should be the case, but it does look like admin_menu might be the root cause.

I'll therefore have to leave this open, but you might want to check over on the admin_menu project to see if there are any reported bugs or fixes.

#19

Stuart Greenfield - January 18, 2008 - 12:41

@eileen

Information on using submovies is here on my website. Hopefully it explains what is needed.

In a nutshell, upload the main SWF using Flash node exactly as any other Flash content, attach submovies using the upload module, or use FTP or similar, and simply make sure that the base parameter under Advanced settings provides the path to the sub-files. Within the ActionScript just use loadMovies('submovie.swf', mc1); or similar.

#20

Stuart Greenfield - January 27, 2008 - 02:00

@mrevels - in reply to #14

It appears that there is a bug with SWF Tools that means flv files and mp3's won't play using the generic player that comes with SWF Tools. Things work ok with Wijering player, or you can try the fix suggested in this entry of the SWF Tools issue queue that works around the escaping problem that seems to be breaking the generic player.

#21

Stuart Greenfield - February 28, 2008 - 10:24

Follow up to #16 regarding admin_menu. There's a similar bug thread over at SWF Tools, and the issue there was pinpointed to the admin_menu style sheet assigning an opacity. The suggested solution is described in this post.

#22

Stuart Greenfield - March 23, 2008 - 22:56
Status:active (needs more info)» closed

I am closing this thread - there have been no further posts in three weeks, and I think all the issues contained in here are now addressed.

If there are any open issues, or you don't think the reply in here helped, please can you raise a NEW issue as this thread got kind of muddled with a few different issues all wrapped up in it. Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.