xoops forums

richardb96

Just popping in
Posted on: 2008/6/18 13:49
richardb96
richardb96 (Show more)
Just popping in
Posts: 78
Since: 2008/4/29
#1

How do I add a flash movie an article in Smartsection? Urgent Please!

Hi Guys,

How do I add a flash movie an article in Smartsection? Urgent Please!

TIA

richardb96

Just popping in
Posted on: 2008/6/18 13:51
richardb96
richardb96 (Show more)
Just popping in
Posts: 78
Since: 2008/4/29
#2

Re: How do I add a flash movie an article in Smartsection? Urgent Please!

I added this

<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
'width', '530',
'height', '255',
'src', 'atag',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'atag',
'bgcolor', '#333333',
'name', 'atag',
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'atag',
'salign', ''
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = '<img src="../imgs/atag.jpg">'
document.write(alternateContent); // insert non-flash content
}
}
// -->
</script>

but it leaves a blank space

avtx30

Not too shy to talk
Posted on: 2008/6/18 13:52
avtx30
avtx30 (Show more)
Not too shy to talk
Posts: 181
Since: 2006/10/12
#3

Re: How do I add a flash movie an article in Smartsection? Urgent Please!

Ref. topic_id=64475

richardb96

Just popping in
Posted on: 2008/6/18 14:18
richardb96
richardb96 (Show more)
Just popping in
Posts: 78
Since: 2008/4/29
#4

Re: How do I add a flash movie an article in Smartsection? Urgent Please!

i'm not sure if that will give me just a flash image sitting in my article will it?

richardb96

Just popping in
Posted on: 2008/6/18 15:07
richardb96
richardb96 (Show more)
Just popping in
Posts: 78
Since: 2008/4/29
#5

Re: How do I add a flash movie an article in Smartsection? Urgent Please!

New feature !!!Link a file to this article*
Select a file from your computer to attach it to this article. You will be able to add more files once the article has been created. Simply edit the article and scroll at the bottom of the page to see the Add file button.

For example, you could add a Word document or an Excel document. You can even upload a Flash file and it will be directly embeded into your article ! New feature !!!

Tried to upload a .swf file. Just isn't having it!

richardb96

Just popping in
Posted on: 2008/6/18 18:54
richardb96
richardb96 (Show more)
Just popping in
Posts: 78
Since: 2008/4/29
#6

Re: How do I add a flash movie an article in Smartsection? Urgent Please!

I really want to put this code into an article......

<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/sh ... ash/swflash.cab#version=7,0,0,0',
'width', '530',
'height', '255',
'src', 'atag',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'atag',
'bgcolor', '#333333',
'name', 'atag',
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'atag',
'salign', ''
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = '<img src="../imgs/atag.jpg">'
document.write(alternateContent); // insert non-flash content
}
}
// -->
</script>


but it doesn't work or I'm not sure if it's to go in tags etc. The code below is the only way i can get the flash image to show - by embeding it. But it looses some of the features we made the flash file have. i.e. a static image behind the flash if the user doesn't have flash installed + a loading image etc.
How can I add the above code?
We have the html file that the flash code above was in & it worked fine as a stand alone page (for testing).

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/sh ... ash/swflash.cab#version=9,0,28,0" width="530" height="255">
<param name="movie" value="../atag.swf" />
<param name="quality" value="high" />
<embed src="../atag.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/downlo ... sion=ShockwaveFlash" type="application/x-shockwave-flash" width="530" height="255"></embed>
</object>

Q. I tried to pagewrap the html file - this didn't work or i got it wrong.
would that be an answer here?

Please help, it's the last thing on my site to do & I don't want to compromise as I'm sure it can be done.

rgauci

Not too shy to talk
Posted on: 2008/6/18 19:13
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#7

Re: How do I add a flash movie an article in Smartsection? Urgent Please!

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/sh ... ash/swflash.cab#version=9,0,28,0" width="530" height="255">
<param name="movie" value="http://www.yourdomain.com/uploads/atag.swf" />
<param name="quality" value="high" />
<embed src="http://www.yourdomain.com/uploads/atag.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/downlo ... sion=ShockwaveFlash" type="application/x-shockwave-flash" width="530" height="255"></embed>
</object>

You need to tell the script where the swf is I presume that you have uploaded it in the uploads folder

Hope this works
Be Set FREE!

richardb96

Just popping in
Posted on: 2008/6/18 19:16
richardb96
richardb96 (Show more)
Just popping in
Posts: 78
Since: 2008/4/29
#8

Re: How do I add a flash movie an article in Smartsection? Urgent Please!

thanks but I had that. I removed the path for posting purposes!

It's the top piece of code I want to use....how tho?

rgauci

Not too shy to talk
Posted on: 2008/6/18 19:41
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#9

Re: How do I add a flash movie an article in Smartsection? Urgent Please!

Okay Richard
use this code that I have running on one of my XOOPS website:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="700" height="140" id="habbhead" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="http://www.habbejtek.tv/uploads/habbhead.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://www.habbejtek.tv/uploads/habbhead.swf" quality="high" bgcolor="#ffffff" width="700" height="140" name="habbhead" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>


see it working here

I have noticed that your version is 9 mine is flash 8 not sure if that is the reason. but it should work for you. The swf file I am using in this example is the one at the very bottom under the address. The top one was embeded in a block.
Be Set FREE!

richardb96

Just popping in
Posted on: 2008/6/18 20:02
richardb96
richardb96 (Show more)
Just popping in
Posts: 78
Since: 2008/4/29
#10

Re: How do I add a flash movie an article in Smartsection? Urgent Please!

The only difference i can see is the addition of - allowScriptAccess="sameDomain".

It still does the same thing. I'll expalin a bit further. The flash movie is working but it hasdn't got all the features we have built in that work on the flash image on the index page as I added this one directly and the articles have been added via SmartSection. This is where i'm having probs. I can get all the features of the .swf to work.
Can i wrap the flash movie into a html? that way the features wil work as intended?