Hi everyone! I've got a serious problem and I need you to help me, beacuase the time is ticking out. Thank you in advance.
The problem lies in the integration of mambo with flash, as usual:
- in what way I could insert the file Swf into template, e.g into the heading? (into the upper part of the pattern).
-
the file that is to be inserted is apart from different kinds of animation - first and foremost - music
And here the problem emerges, because after you press any link on the web, the file swf will be loaded from the beginning,the music itself will be loaded from the beginning as well, not mentioning the preloader etc.
Generally, I want the swf file to be loaded only once without the re-load
If it is possible, I kindly ask you about a specific solution, because I have never used the Flash in the Mambo environment.
*****EDIT*****
I found a solution to my problem on the Net...
I don't know whether I understood the author's idea correctly - howewver I did like that:
In the template's edition (in mambo's environment)... At the beginning, I added the first part of the code... the second one was inserted into the place it should "flash' swf.
The file headermovie.swf was inserted into the folder /images. (not to mess too much).
It's true that the file swf is loaded corrrectly, however, when you click any link on the web, the swf starts from the very beginning... 
I made a mistake somewhere... Please, look at that particular solution - maybe there is a mistake somewhere.
Please, write your views on that solution, how do you understand that? Thank U in advance.
Quote:
I have a perfect solution!
In your template's index.php file, add the following somewhere before you output the flash html.
Code:
<?php
if (mosGetParam( $_COOKIE, 'mosvisitor', 0 )) {
$flashheader='finalframe.swf';
}else{
$flashheader='headermovie.swf';
}
?>
Then, in the portion where the flash is displayed:
Code:
<object classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs
/flash/swflash.cab#version=6,0,29,0" width="750" height="80" align="absmiddle">
<param name="movie" value="images/<?= $flashheader ?>" />
<param name="quality" value="high" />
<param name="SCALE" value="noborder">
<embed src="images/<?= $flashheader ?>" width="750" height="80" align="absmiddle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="noborder"></embed></object>
|
I found it here
http://www.mambosolutions.com/index....d=28&Itemid=55
Thx...