Found a way of running any SWF from an icon (local & remote) - without having to go into swf-launcher 1st.
This is useful if you use a particular swf regularly and more user friendly as using the swf launcher, the URL addresses can not be seen properly most of the time.
This method does rely on having swf-launcher installed via gforums PnP in the 1st place http://www.gforums.de/juggler/
Right then lets do some stuff - the app I find useful in the kitchen is the stopwatch/countdown timer swf, so I will use that as an example. (this runs the file locally from the internal memory)
1st off telnet in to the joggler as normal, then copy and paste the code below
Code: Select all
cd /media/gforums/webserver/starter
wget http://www.roderz.pwp.blueyonder.co.uk/timer.tgz
tar xvf timer.tgz
rm timer.tgz
Code: Select all
cd /media/appshop
Code: Select all
<app id="timer" loc="http://localhost:80/starter/timer/" app="timer.cgi" title="timer" icon="icon.swf"/>
If you want to make the exit button bigger then edit the file /media/squeezingtarkan/app/flashapp.sh and change two numbers in the last line - set mine on 40 for convenience
Another example that runs a file from the interweb - Rainbow riches fruit machine
Code: Select all
cd /media/gforums/webserver/starter
wget http://www.roderz.pwp.blueyonder.co.uk/rainbow.tgz
tar xvf rainbow.tgz
rm rainbow.tgz
Code: Select all
cd /media/appshop
Code: Select all
<app id="rainbow" loc="http://localhost:80/starter/rainbow/" app="rainbow.cgi" title="rainbow" icon="icon.swf"/>
Feel free to have a look and make your own
How it works:
All this does is use the command line of the swf-launcher program by passing it the location of the swf - but saves opening the swf-launcher itself.
BUT I found that the location sent has to be a 'http' address for the exit button to work (hence why I used 'localhost' in the timer.cgi script)
timer script looks like this
Code: Select all
/media/squeezingtarkan/app/flashapp.sh http://localhost:80/starter/timer/main.swf
Code: Select all
/media/squeezingtarkan/app/flashapp.sh http://homepage.ntlworld.com/macker25/elvis/RR%20and%20Elvis/Rainbow_Riches.swf
Hope someone finds this useful, please post any comments or any useful swf's you find.
Have fun