Search…

X3 Photo Gallery Support Forums

Search…
 
archeon
Topic Author
Posts: 8
Joined: 15 Oct 2008, 15:46

embedding V2 two methods... need help

16 Oct 2008, 14:24

in looking through forum posts I've found there's 2 ways to embed V2 into an html page.

Method 1 (This works):
Code
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','590','height','600','src','gallery2/imagevue/imagevue2','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','flashvars','globalpath=../gallery2/', 'movie','gallery2/imagevue/imagevue2' ); //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=9,0,28,0" width="590" height="600">
        <param name="movie" value="gallery2/imagevue/imagevue2.swf" />
        <param name="quality" value="high" />
        <param name="flashvars" value="globalpath = ../gallery2/" />
        <embed src="gallery2/imagevue/imagevue2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" flashvars="globalpath= ../gallery2/" width="590" height="600"></embed>
      </object>
    </noscript>
Method 2 (this does not work):
Code
<div id="imagevue"> 
   This is where the gallery is placed 
</div> 
<script type="text/javascript"> 
   //<![CDATA[ 
  var flashvars = {
  globalpath = '../gallery2/';
	  };
      swfobject.embedSWF("../gallery2/imagevue/imagevue2.swf", "imagevue", "590", "600", "8.0.0", "../gallery2/imagevue/expressInstall.swf", flashvars, {allowScriptAccess: 'always', allowFullScreen: true, bgcolor: 'ffffff'}, {id: 'imagevue', name: 'imagevue'}); 
   // ]]> 
</script>
Both require a tag in the <head>

M1 (Inserted by Dreamweaver):
Code
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
M2:
Code
<script type="text/javascript" src="../gallery2/imagevue/javascript/swfobject.js"></script>
NEED HELP SECTION :D
First problem I'm having is ---- Why doesn't M2 work?

Second and more important, how do I add a parameter to make M1 use the "theme" as defined in the admin?

Anyone making this work?
 
archeon
Topic Author
Posts: 8
Joined: 15 Oct 2008, 15:46

solving my own problem, lol

16 Oct 2008, 16:40

OK, here is a solution using M2:

Header code needs 2 lines, not just one:
Code
<script type="text/javascript" src="../gallery2/imagevue/javascript/swfobject.js"></script>
<script type="text/javascript" src="../gallery2/imagevue/javascript/swfaddress.js"></script>
Script for the gallery:
Code
<script type="text/javascript">
//<![CDATA[							
var flashVars = {					
foreground_color: 'AAAAAA',					
background_color: 'FFFFFF'									
};									
flashVars.theme = 'white';
flashVars.globalpath = '../gallery2/';
swfobject.embedSWF("../gallery2/imagevue/imagevue2.swf", "imagevue", "590", "600", "8.0.0", "../gallery2/imagevue/expressInstall.swf", flashVars, {allowScriptAccess: 'always', allowFullScreen: true, bgcolor: '#FFFFFF'}, {id: 'imagevue', name: 'imagevue'});		

// ]]>		
</script>
Still haven't figured out a way to use themes with Method 1 above, not sure if it's possible.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

17 Oct 2008, 04:15

You need to forward all imagevue parameters in the "flashvars" parameter ...
Code
<param name="flashvars" value="globalpath=../gallery2/&theme=gardener" />
...
flashvars="globalpath=../gallery2/&theme=gardener"
 
archeon
Topic Author
Posts: 8
Joined: 15 Oct 2008, 15:46

19 Oct 2008, 16:29

ah, I couldn't figure out the syntax for adding additional variables in the definition line.

Is there a list of all the V2 flash variables somewhere?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

20 Oct 2008, 01:40

archeon wrote:Is there a list of all the V2 flash variables somewhere?
I found this:
http://kb.adobe.com/selfservice/viewCon ... d=tn_12701

For the SWFObject, there are a few tips here:
http://blog.deconcept.com/swfobject/