Run any SWF from icon + close btn - stock OS
Posted: Thu Nov 17, 2011 1:41 pm
Just thought I'd share a bit of info I been using for a while (well since finding the swf launcher last year)
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
once done change directory
and edit the file applications.xml and insert the following line
Restart tango and you should have a nice stopwatch icon that will launch the timer and add an exit button in the top left.
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
once done change directory
and edit the file applications.xml and insert the following line
Restart tango and look for the leprechaun !!
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
And fruit machine script is......
Only danger with calling a file from the net is that it could vanish if its not on your own server (hint hint - use your own and save filling up the jogglers memory) oh and it can be slower to load sometimes depending to the speed of the site
Hope someone finds this useful, please post any comments or any useful swf's you find.
Have fun
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