PDA

View Full Version : adding picmenu2 into FFC project


kbellis
04-14-2011, 05:41 PM
Hi,

I've been trying to get Tommy's picmenu2 shoehorned into an FFC project but am not seeing any signs of life yet.

My first question concerns the added javascript in the head tag of the index.html as I'm inserting Tommy's <script> calls after FFC's and wonder if this was permissible:<script type="text/javascript" src="files/swfobject.js"></script>
<script type="text/javascript">
var swfVersionStr = "10.0.0.0";
var xiSwfUrlStr = "files/playerProductInstall.swf";
var flashvars = {};
flashvars.xml_file = "files/xml/rud2.xml";
var params = {};
params.quality = "high";
params.bgcolor = "#ffffff";
params.allowscriptaccess = "sameDomain";
params.allowfullscreen = "true";
var attributes = {};
attributes.id = "rud2";
attributes.name = "rud2";
attributes.align = "middle";
swfobject.embedSWF(
"files/pano.swf", "flashContent",
"100%", "100%",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>

<!-- Tommy Wirestam's picmenu2 - begin -->

<script type="text/javascript" src="files/swfobject.js"></script>
<script type="text/javascript" >
var flashvars = {
xml_file: "files/xml/picmenu2.xml"
};
var params = {
allowscriptaccess: "sameDomain", <!-- changed from always 4.14.2011 -->
allowFullScreen: "true"
};
swfobject.embedSWF(
"files/pano.swf", "flashcontent",
"100%", "100%", "9.0.0", false, flashvars, params, attributes);

</script>
<!-- Tommy Wirestam's picmenu2 - end -->

kbellis
04-14-2011, 08:33 PM
I'm guessing there's redundancy...

But aside from that, and for the record, I've gotten picmenu2.swf working in FFC v2.075 :)

allSaints
04-14-2011, 09:30 PM
Good news, Kelly!

And for the record - you should remove all my javascript. Your FFC code above does everything that's needed. And the line with xml_file: "files/xml/picmenu2.xml" is all wrong here - it's the name of my FPP xml file for my test page.

Tommy

kbellis
04-14-2011, 10:11 PM
Thank you very much Tommy!

Kelly

Trausti Hraunfjord
04-14-2011, 10:43 PM
Now I am curious....

How did you do this Kelly? No issues?

kbellis
04-15-2011, 12:24 AM
I am still testing for issues, but aside from a separate set of side issues, it works.

By side issues, I mean like, for example, between the parameters tag we place the call for a layer and a plugin that gets loaded.. as well as I can gather, gets loaded into some kind of memory hole for the duration of the entire one or dozen pano renderings<parameters>
layer_6 = files/plugins/picmenu2.swf
</parameters>

The issue that I'm trying to understand is what alternatives are there for getting the effect or equivalent into the memory hole without the littoral layer call and maybe instead introduce - in this example Tommy's picmenu2.swf plugin - with a function. I just don't enough enough.

My next test was to remove the called layer for the plugin and try adding it as a spot like I've done using Tommy's soundspot.swf which behaves very nicely when introduced into FFC thus:<spot
id="picmenu2"
url="files/plugins/picmenu2.swf"
/>

But the picmenu2.swf plugin appears not to have gotten loaded into whatever and where ever it needed to go. So the <spot> route is out.

The reason for this is of course trying to shoehorn Tommy's stuff into FFC without having to do custom edits of the xml post-flashification. Admittedly, it's presently easier doing those custom xml edits than trying to find this answer... but other than that, I think that implementing the other stuff for this particular picmenu2.swf plugin can be done entirely within the confines of FFC, though I've yet to do this.

Throughout these tests, my appreciation for all of Tommy's work deepens and increases daily.

kbellis
04-15-2011, 12:37 AM
This didn't work either<spot
id="picmenu2"
url="files/plugins/picmenu2.swf"
onLoad=""
/>

kbellis
04-15-2011, 08:43 AM
... and of course until this is settled, the main issue, like an elephant in the room, is that the only way to implement any plugin needing placed between the <parameters> tags presently (FFC v2.076) can not be done in FFC and must be done post flashification. Ditto for external calls:<!-- Tommy Wirestam's picmenu2 - begin -->
<picmenu2>
xmlFile=files/xml/picmenu2.xml
</picmenu2>
<!-- Tommy Wirestam's picmenu2 - end -->

allSaints
04-17-2011, 04:49 PM
Kelly,

you can forget about loading the picmenu2 plugin in a <spot>. This is an external plugin, and they have a completely different interface to FPP than hotspot plugins.

Tommy

kbellis
04-17-2011, 06:30 PM
Yes - I tried that and discovered. It's working well now :)

Thank you Tommy!

Kelly