<div id="frontbox" class="flow">
<h1 id="heading-front"><a href="/index.php/Categories">Categories</a></h1>
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '590',
'height', '300',
'src', 'Main',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Main',
'bgcolor', '#111111',
'name', 'Main',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'http://www.skunk.agentura.dk/index.php/themes/monochrome/coverflow/swf/Main',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="590" height="300" id="Main" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="swf/Main.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="http://www.skunk.agentura.dk/index.php/themes/monochrome/coverflow/swf/Main.swf" quality="high" bgcolor="#000000" width="590" height="300" name="Main" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
</div>
Posts: 16503
Why not use "/themes/YourTheme/swf/Main.swf" or "/swf/Main.swf"?
If you put the slash at the front like that it will specify a path from the root of the site. If you don't do that then it's based on the "path" you're in, in your Gallery.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 572
I tried all paths by now with or without /. I am aware of the root jump.
I also tried full path . http:// .................
So I am wondering this.... page.html.php does this file concider itself inside views, inside mytheme or at root?
all the best
HB - http://www.image.agentura.dk
Posts: 572
Not sure what test site you mean..?
The one working is in an iFrame. I need to port it to my theme to get links in the frame working and also for getting album cover to the flash. The integrated flash is placed below and not displaying at www.skunk.agentura.dk
js is placed in page.html.php <head>
I created front.html.php and it reads fine.
I added the embed code to front.html.php
Related files are in place, 3 places now to get it right and I can not break this!!
all the best
HB - http://www.image.agentura.dk
Posts: 16503
Didn't notice the iframe before. I think I see what's going on. Since the theme pages are just PHP, I think you may need to close out the PHP tags insert your javascript and then open the PHP tags, since I don't have the PHP source of your page/theme available, see this site for an example:
http://www.hotscripts.com/forums/php/30400-include-javascript-php-page.html
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 572
This is what I have. I created:
mytheme > js > flashcheck.js and dumped the script here
mytheme > views > page.html.php
I added in <head> (first line was there) -
in page.html.php <body> I added for a new front:
in front.html.php I have:
Works fine as standalone - works fine in iframe - embedded in G3, absolutely dead...
all the best
HB - http://www.image.agentura.dk
Posts: 572
Related folders and files I placed:
1) inside views - not working
2) inside mytheme - not working
3) inside coverflow (custom) - not working
Files are in all positions now.
Paths for calling the swf I tried:
swf/Main.swf
/swf/Main.swf
../swf/Main.swf
../coverflow/swf/Main.swf
/coverflowswf/Main.swf
mytheme/swf/Main.swf
mytheme/views/swf/Main.swf
index.php/themes/mytheme/views/swf/Main.swf
/index.php/themes/mytheme/views/swf/Main.swf
http://mysite.com/index.php/themes/mytheme/views/swf/Main.swf
http://mysite.com/themes/mytheme/views/swf/Main.swf
all the best
HB - http://www.image.agentura.dk
Posts: 572
I added this and page does not read
if($s == 0){
?>
<script></script>
<?
}
all the best
HB - http://www.image.agentura.dk
Posts: 16503
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 572
Same as before - page notloading:
all the best
HB - http://www.skunk.agentura.dk
Posts: 572
I don't get this
We are in an area that allows html and the script is html tag'ed. So why jump in and out of php?
all the best
HB - http://www.skunk.agentura.dk
Posts: 572
I have a feeling that without the php in/out something displays correct. The background is defined in correct size and color. It is z-index on top of everything as the iframe. So the styling is correct, but the content does not display.
It seems there are 3 places calling the file:
1) in script - 'movie', 'swf/Main',
2) in html - value="swf/Main.swf"
3) in html - src="swf/Main.swf"
Since I change path, wich ones needs update? All, 1 or 2?
all the best
HB - http://www.skunk.agentura.dk
Posts: 572
Embedding Flash - how to:
http://www.longtailvideo.com/support/tutorials/Embedding-Flash
Didn't solve anything for me yet though
I tried the SWFObject method
1) adding their js
2) adding their div
3) adding their embed code and call swf/Main.swf and also any other path
This does not seem to react to size change etc???
all the best
HB - http://www.skunk.agentura.dk
Posts: 572
This is how I install JS in my theme. I assume this is correct:
Dump the js file in themes/mytheme/js/thefile.js
in page.html.php I add in <head>:
Two last files I added. flashcheck.js checks the version of flash player and swfobject.js is described in the above link. It embeds, so that the embedding works for any browser, as opposed to <object> for IE and <embed> for everyone else. This method complies to xhtml.
Let me know if this is bad?
My guess is the G3 structure breaks the flash structure, but where?
all the best
HB - http://www.skunk.agentura.dk
Posts: 572
Is it possible that:
<?= $theme->script("swfobject.js") ?>
breaks any other flash on the site?
all the best
HB - http://www.skunk.agentura.dk