1
lolothom
news module and flash
  • 2005/1/14 16:33

  • lolothom

  • Just popping in

  • Posts: 26

  • Since: 2002/5/10


hello

I want to integrate a Flash file in a newsitem with the following code:

<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="320" id="slidingpuzzle" ALIGN=""> <PARAM NAME=movie VALUE="uploads/slidingpuzzle.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="uploads/slidingpuzzle.swf" quality=high bgcolor=#000000 WIDTH="320" HEIGHT="320" NAME="slidingpuzzle" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

This seems to work fine in a Block, but not in a newsitem. Anyone suggestions? I use the newsmodule as a way to create different sections in my website. Thanks in advance.

2
hyperpod
Re: news module and flash
  • 2005/1/14 16:54

  • hyperpod

  • Quite a regular

  • Posts: 359

  • Since: 2004/10/4


Greetings lolothom,

I spotted your problem right away!


<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="320" id="slidingpuzzle" ALIGN=""> <PARAM NAME=movie VALUE="/uploads/slidingpuzzle.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="/uploads/slidingpuzzle.swf" quality=high bgcolor=#000000 WIDTH="320" HEIGHT="320" NAME="slidingpuzzle" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>


Notice the forward slash before both places where it refers to the flash movie in the uploads directory.

This works in a block because the path is relevant from it, but inside of a module, you need to reference the flash file differently....

The slash works from both places if your site isnt inside a subdirectory from root. if it is, then you would need to put the subdirectory into the path as well.

Hope that makes sense.

Cheers,

_Dan

Login

Who's Online

158 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits