1
richardb96
How do I add a flash movie an article in Smartsection? Urgent Please!
  • 2008/6/18 13:49

  • richardb96

  • Just popping in

  • Posts: 78

  • Since: 2008/4/29


Hi Guys,

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

TIA

2
richardb96
Re: How do I add a flash movie an article in Smartsection? Urgent Please!
  • 2008/6/18 13:51

  • richardb96

  • Just popping in

  • Posts: 78

  • Since: 2008/4/29


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

3
avtx30
Re: How do I add a flash movie an article in Smartsection? Urgent Please!
  • 2008/6/18 13:52

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Xoops Demos:
http://www.nhatban.net/info/a0021.html

4
richardb96
Re: How do I add a flash movie an article in Smartsection? Urgent Please!
  • 2008/6/18 14:18

  • richardb96

  • Just popping in

  • Posts: 78

  • Since: 2008/4/29


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

5
richardb96
Re: How do I add a flash movie an article in Smartsection? Urgent Please!
  • 2008/6/18 15:07

  • richardb96

  • Just popping in

  • Posts: 78

  • Since: 2008/4/29


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!

6
richardb96
Re: How do I add a flash movie an article in Smartsection? Urgent Please!
  • 2008/6/18 18:54

  • richardb96

  • Just popping in

  • Posts: 78

  • Since: 2008/4/29


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/shockwave/cabs/flash/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/download/download.cgi?P1_Prod_Version=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.

7
rgauci
Re: How do I add a flash movie an article in Smartsection? Urgent Please!
  • 2008/6/18 19:13

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


<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!

8
richardb96
Re: How do I add a flash movie an article in Smartsection? Urgent Please!
  • 2008/6/18 19:16

  • richardb96

  • Just popping in

  • Posts: 78

  • Since: 2008/4/29


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?

9
rgauci
Re: How do I add a flash movie an article in Smartsection? Urgent Please!
  • 2008/6/18 19:41

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


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!

10
richardb96
Re: How do I add a flash movie an article in Smartsection? Urgent Please!
  • 2008/6/18 20:02

  • richardb96

  • Just popping in

  • Posts: 78

  • Since: 2008/4/29


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?

Login

Who's Online

181 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 181


more...

Donat-O-Meter

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

Latest GitHub Commits