Is it possible to have an item from a playlist in mpl1 load a different playlist in mpl2?
I've been trying something like the following in the playlist for mpl1:
<track>
<title>New Features</title>
<creator>IntelePACS 3-3-3</creator>
<info><a href="javascript:createplayer('playlist.xml', true)"></a></info>
<image>./JW/preview.jpg</image>
</track>I create mpl1 in the <head>
<script type="text/javascript">
function createplayer(theFile, go) {
var s1 = new SWFObject("./JW/mediaplayer.swf","playlist","400","440","7");
s1.addParam('allowscriptaccess','always');
s1.addParam("allowfullscreen","true");
s1.addVariable("file","./JW/playlist.xml");
s1.addVariable("displayheight","300");
s1.addVariable("backcolor","0x000000");
s1.addVariable("frontcolor","0xCCCCCC");
s1.addVariable("lightcolor","0x996600");
s1.addVariable("width","400");
s1.addVariable("height","440");
s1.addVariable("recommendations","./JW/recommendations.xml");
s1.addVariable("showstop", "true");
if (go) { s.addVariable("autostart","true"); }
s1.write("mpl1");
}
</script>
and in the body, i create mpl2:
<p id="mpl2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var s2 = new SWFObject("./JW/mediaplayer.swf","playlist","180","250","7");
s2.addParam('allowscriptaccess','always');
s2.addParam("allowfullscreen","true");
s2.addVariable("width","180");
s2.addVariable("height","250");
s2.addVariable("displaywidth","0");
s2.addVariable("displayheight","250");
s2.addVariable("file","./JW/playlist2.xml");
s2.addVariable("backcolor","0xFFFFFF");
s2.addVariable("frontcolor","0x004e75");
s2.addVariable("showicons","false");
s2.addVariable("lightcolor","0x996600");
s2.addVariable("thumbsinplaylist","true");
s2.addVariable("showstop", "false");
s2.addVariable("autoscroll", "true");
s2.write("mpl2");
</script> Finally, i create the placeholder for mpl1:
<div id="mpl1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
Basically, what i'm trying to do is use mpl2 as a menu to drive content in the main player.
you can see the updated mockup here:
Am i barking up the wrong tree? Is there a better way to do this?
cheers,
-jeremy

try change this:
<info><a href="javascript:createplayer('playlist.xml', true)"></a></info>
to
<info>javascript:createplayer('playlist.xml', true)</info>