Hello World....

After installing swftools-5.x-1.1 - I placed php code in a block as follows:

print swf('MS_TopScrollingText.swf', '701x115')

I am having two problems:

The flash file is showing up considerably smaller than it should be even when I specify a size as shown above. This problem I think is related to my next problem.

I am seeing the warning "SWFObject - Geoff Stearns - Missing" even though the "swfobject.js" file is located in my module folder "swftools/shared". I read somewhere that I should uninstall swftools - but since there is not uninstall option in admin i simply deleted the swftools module folder. Are there other files that are altered/added from the install?

PS I also installed and drag uninstalled flashnode.

Comments

vm’s picture

according to SWFObjects readme.txt file, the swfobject file is supposed to go into a different folder then what you have listed.

3) Place the swfobject.js file into modules/swfobject_api/

along with the expressinstall.swf

4) Place the expressinstall.swf file into modules/swfobject_api/

Hunabku’s picture

I could find no where in the readme for swfobject 1.5 the instructions that you mention. So are you saying that i need to create a folder inside "sites/all/modules" entitled "swfobject_api"? I created that folder and put the files in there but i am still getting the missing error.

Below are the comments that i found inside the swfobject.module file:

* SWF Tools - SWFObject
 *
 * Enables the use of 's swfobject.js which provides image replacement
 * for Flash content. swfobject.js must be downloaded separately. (Add
 * the contents of the zip file to swftools/shared/

As i mentioned at the top of this thread - i already tried that to no avial.

vm’s picture

the readme.txt file is insides the swfobject.module found here on Drupal.org.
the swfobject.module for Drupal is only available in Drupal 4.7 see: http://drupal.org/project/swfobject
it is the readme in the module above that I quoted from. This obviously isn't what you are using now that you have stated what version of SWFObjects you have installed.

The swftools.module is indeed needed to use the swfobject library, This is how it interacts with Drupal core. through the module. see: http://drupal.org/project/swftools. The problem that you had with files appearing smaller then you have them set for, could be a bug that was fixed in the 5.x-dev release , also located on the project page. you can also file a bug report using the project page, or search the issue query for this module to see if there is a patch that needs to be applied, or if the bug itself was already reported.

mwpeters’s picture

I found what appears to be the correct location documented in a README.TXT file located inside of

.../modules/swftools/shared.

Following the guidance in the README.txt I created a subdirectory within the shared directory as follows:

.../modules/swftools/share/swfobject.

I placed "swfobject.js" within that subdirectory along with all other files from the zip download.

After placing the files in this location, the "Missing" message within the Drupal SWFTools configuration disappeared.

rdixon22’s picture

I can confirm mwpeters's finding.

By default, the swfObject 1.5 zip or tgz file expands into a folder called swfobject1-5. You can upload this folder to

.../modules/swftools/shared

and then rename the new subfolder from swfobject1-5 to swfobject, so your full path is

.../modules/swftools/shared/swfobject

Then it works.

truly_appreciative’s picture

Once I uploaded the swfobject directory to the 'shared' directory, as above (and as in tutorial below) it was no longer missing in the CMS.

Other helpful links:

"A tutorial: setting up and implementing this module"

http://www.computerminds.co.uk/flash-objects-drupal

"Download the latest SWFObject"

http://code.google.com/p/swfobject

soundsational’s picture

I didn't find it in the documentation until someone pointed it out to me that is was in the shared folder.

Here is what the readme file says:

Please add your Flash players and embedding scripts to this directory.
You can usually do this by downloading the supported flash player, unzipping
the files, and moving the whole file structure in the modules/swftools/shared
directory.

Links - Media Players:
MODULE URL
wijering http://jeroenwijering.com/?item=Flash_Media_Player
wijering http://jeroenwijering.com/?item=Flash_Image_Rotator
simpleviewer http://www.airtightinteractive.com/simpleviewer
onepixelout http://www.1pixelout.net/code/audio-player-wordpress-plugin

Links - Flash Replacement
MODULE URL
swfobject http://blog.deconcept.com/swfobject
ufo http://www.bobbyvandersluis.com/ufo
jquery.flash.js http://jquery.lukelutman.com/plugins/flash

Default file structure for install players and scripts. You can change the
"Default flash player path" in admin/media/swf/embed to change the "shared"
directory. However, inside the "shared" directory, the paths to the player
file are not configurable.

swftools/
shared/
generic/generic_flv.swf
generic/generic_mp3.swf
1pixelout/player.swf (onepixelout.module)
flash_media_player/mediaplayer.swf (wijering.module)
flash_image_rotator/imagerotator.swf (wijering.module)
simpleviewer/viewer.swf (simpleviewer.module)
swfobject/swfobject.js (swfobject.module)
ufo/ufo.js (ufo.module)
lutman/jquery.flash.js (lutman.module)

Refer to http://drupal.org/project/swftools for documentation.

thanks,