I've long been curious about OpenLaszlo and it's ability to dynamically display content in Flash. I've also been tinkering a bit lately with the OpenStrands API, so here's a quick mashup of the two to make a quick and dirty chart of music recently listened to:
- Step 1: Download and install OpenLaszlo Legals, if you already have Tomcat installed, you can skip the full install and just grab the .war file. (rename the war to openlaszlo.war and put it in Tomcat's webapps directory)
- Step 2: Get an OpenStrands developer id - OpenStrands is the API for the myStrands music matching service. (the API documentation is available in the developers kit)
- Step 3: Download my html file, you'll have to change the subscriberId to yours and alias to the user you'd like to look up. You'll also need to make sure all paths to openlaszlo are correct, in other words /openlaszlo should refer to the root of the openlaszlo application
<script type="text/javascript" language="JavaScript1.1" src="/openlaszlo/lps/includes/vbembed.js"></script>
<script type="text/javascript" src="/openlaszlo/lps/includes/embed.js"></script>
...
lzLPSRoot = '/openlaszlo';
- Step 4: Download my OpenLaszlo file, it's pretty rudimentary but it should work.
- Step 5: Put both files in a folder called myChart, in your OpenLaszlo folder. I put mine in C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\openlaszlo\myChart which made my localhost url http://localhost:8080/openlaszlo/myChart/
- Here's a screenshot of the finished product:
Questions? Contact me at millejos[at]hotmail.com
