Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1133
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

SMF 2.0.2 + SIMPLEPORTAL + SWF FILE

Started by MESSIAH, February 19, 2012, 07:49:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MESSIAH

Forgive me my bad english. I got forum  http://audioground.pl with installed simpleportal.

I embed swf file to block (Name "Welcome" Type "HTML")
<embed width="800" height="360" name="plugin" src="http://audioground.pl/mCube/cu3er.swf" type="application/x-shockwave-flash">

But swf file don't start it's showing only logo of the banner.
Banner working fine when i enter url - http:audioground.pl/mCube/cu3er.swf
I need any help to start this banner.

THX FOR ANY HELPS

Chen Zhen

#1
Try this:

global $boardurl;
$file = $boardurl . '/mCube/cu3er.swf';

echo '<script type="text/javascript" src="swfobject.js"></script>
<div class="centertext" style="overflow:hidden;">
<object width="800" height="360">
<param name="movie" value="'.$file.'">
<embed src="'.$file.'" width="800" height="360" />
</object>
</div>';

MESSIAH

#2
Quote from: Underdog on February 20, 2012, 02:12:22 AM
Try this:

global $boardurl;
$file = $boardurl . '/mCube/cu3er.swf';

echo '<div class="centertext" style="overflow:hidden;">
<script type="text/javascript" src="swfobject.js"></script>
<object width="800" height="360">
<param name="movie" value="'.$file.'">
<embed src="'.$file.'" width="800" height="360" />
</object>
</div>';


This same effect - stoped banner.
If that helps ther is home page of this banner http://demo.templateworld.com/zero/in_action/mCube/

Chen Zhen

I don't know exactly what your $boardurl is with all those sub directories.
Adjust the $file variable appropriately or you can just put the entire url into it.
ie.

$file = 'http://demo.templateworld.com/zero/in_action/mCube/cu3er.swf';

MESSIAH

Quote from: Underdog on February 20, 2012, 10:51:54 AM
I don't know exactly what your $boardurl is with all those sub directories.
Adjust the $file variable appropriately or you can just put the entire url into it.
ie.

$file = 'http://demo.templateworld.com/zero/in_action/mCube/cu3er.swf';


any urls and allways is stoped.

Chen Zhen


It's your actual swf file that is not configured correctly.

Try the code I gave you with this for the file as an example:

$file = 'http://askusaquestion.net/Games/game_AdagioHard2v32Sparky/AdagioHard2v32Sparky.swf';


In scene 1 of your swf file try putting in actionscript to play the first frame of your animation.

ie.

gotoAndPLay(3);

MESSIAH

Quote from: Underdog on February 20, 2012, 12:23:47 PM

It's your actual swf file that is not configured correctly.

Try the code I gave you with this for the file as an example:

$file = 'http://askusaquestion.net/Games/game_AdagioHard2v32Sparky/AdagioHard2v32Sparky.swf';


In scene 1 of your swf file try putting in actionscript to play the first frame of your animation.

ie.

gotoAndPLay(3);


You don't understanding me.
Hit the url http:audioground.pl/mCube/cu3er.swf - is working fine and perfect
When I embed this swf file to simple portal to board allways this banner has been stoped and never play.

Chen Zhen

#7
Try this:

echo '<script type="text/javascript" src="http://audioground.pl/mCube/js/swfobject/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.xml = "http://audioground.pl/mCube/config.xml";
flashvars.font = "http://audioground.pl/mCube/font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("http://audioground.pl/mCube/cu3er.swf", "cu3er-container", "800", "360", "9", "expressInstall.swf", flashvars, attributes);
</script>
<div class="centertext">
<div id="cu3er-container">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</div>
</div>';


This seems to function properly in Firefox, IE Chrome & Opera.



MESSIAH

Quote from: Underdog on February 20, 2012, 02:22:42 PM
Try this:

echo '<script type="text/javascript" src="http://audioground.pl/mCube/js/swfobject/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.xml = "http://audioground.pl/mCube/config.xml";
flashvars.font = "http://audioground.pl/mCube/font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("http://audioground.pl/mCube/cu3er.swf", "cu3er-container", "800", "360", "9", "expressInstall.swf", flashvars, attributes);
</script>
<div class="centertext">
<div id="cu3er-container">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</div>
</div>';


This seems to function properly in Firefox, IE Chrome & Opera.


YOU ARE GENIUS :) Very Very THX MAN

I know it - connecting swf + xml but i don't knowing how.

Yes this code is working fine.