How can I change the Flash display in Flashnode?

At my test site, the following link is a short tutorial: http://juliew8.com/drupal/node/5

The same tutorial using Page and HTML instead of Flashnode: http://juliew8.com/drupal/node/18

Granted, the layout in Flash is better, but the tutorial is unviewable. I tried all kinds of formats and resolutions.

Comments

Stuart Greenfield’s picture

If I've understood you right the first page is generating content via Flashnode, and using SWFTools to insert the movie. The second page is generating the movie using hard coded HTML?

This means the issue isn't really a Flashnode one, but try the following...

Use the flashnode generated page (node 5) to check the code you have written for the hand coded example (node 18).

In particular, if I look quickly I notice the first node references a SWF file at http://juliew8.com/drupal/files/flash_files/sendtodesktop_1.swf. This path is referred to by both the OBJECT and EMBED tags.

The hard coded page refers to http://www.juliew8.com/sendtodesktop_1.swf as part of the EMBED tag, and to STD3.swf as part of the OBJECT tag. So it refers two different files, and neither is the same as node 5.

When I try to view node 18 the page hangs, which usually happens when Flash is trying to download a file it can't find - check the paths are right in your hand coded page as they are possibly wrong.

Also, check the Adobe website for help and guidance in proper use of the OBJECT/EMBED tag. I can't remember the short code link off hand, but it's easy enough to find and it explains the proper syntax. Bear in mind the whole point of Flashnode and SWFTools is to shield you from having to use OBJECT/EMBED!

Rather than hard coding the HTML code you might want to investigate use of the SWFTools print swf() format. That would let you use SWFTools do the "hard work" of generating the embedding code, and you could also then use a javascript embedding method which is often better than the OBJECT/EMBED format (and means that IE users don't get the "Click to activate this control" message).

By definition Flashnode was designed to be very easy to use, and it always generates Flash content at the top of the page. SWFTools goes further by allowing you to insert Flash anywhere on a page via the print command. Read the SWFTools help to understand how to use that format if you need more power than Flashnode.

Does this help??

flatfeet’s picture

"Rather than hard coding the HTML code you might want to investigate use of the SWFTools print swf() format."

This may not be the best place to ask, but I have literally spent all day trying to find ANY documentation on how to actually use the print swf() function to change the embed tags.

Obviously you can do "print swf(myFile.swf);" , but I want to change the generated embed tag from this value "allowScriptAccess='sameDomain'" to "allowScriptAccess='always'", but for the life of me I can't figure out how to pass that through the use of the print swf function. Is there any documentation anywhere on that specific function and how to use it to pass specific values you want to change in the generated embed tag?

I've spent literally hours trolling around but I just can't seem to find any real documentation on the function.

Thanks a ton!

Stuart Greenfield’s picture

I tend to only use flashnode to add flash now, and I have to admit it's a while since I worked directly with SWFTools! You might want to post a request at the SWFTools page! I think there might have been some documentation written recently (I seem to recall seeing a post about it).

That said, I need to write the documentation for Flash node!

I should have also pointed out that you can position Flash node content elsewhere on a page by using its build in macro format.

To do this you create a "container" Flash node that contains the flash movide, but you set it to not published. You then write your next node, and where you want the flash you put [flashnode|node=nn] where nn is the node number of the container. That then places the flash content in whatever location you choose! Remember you have to activate flashnode macros as part of an input format to use them!

Stuart Greenfield’s picture

Status: Active » Closed (fixed)

No further posts have been made to this thread, and not sure the original query was actually a Flash node bug, so setting status to closed.

Please post again and change status if this assumption is wrong!