Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm stuck with a crappy digital signage platform that only renders .html and .swf files (and RSS feeds). No customization of RSS, only way to show something dynamic in a pretty way is to use Flash. The question: is there any way to embed JavaScript in .swf files or somehow have Facebook and Twitter Flash plugins?

I looked for ready-made .swf widgets for the job but didn't find any, if there is any Flash widget that serves a Facebook and/or Twitter feed please give me a link.

share|improve this question
    
The stripped-down browser cannot read javascript? –  huzzah Oct 22 '12 at 14:33
    
nope and it contributes greatly to why its a crappy platform :p –  NorthPole Oct 22 '12 at 14:42
1  
Yeah you're right about that! So no web server, no PHP. Hmm....well, I found this tutorial on building a twitter feed in flash from 2009: active.tutsplus.com/tutorials/actionscript/…. I googled 'serve twitter feed in flash'. Maybe that'll help get you going. –  huzzah Oct 22 '12 at 14:48
    
yup, when i heard how much this crappy thing cost us i started laughing in tears :p, thank you for the tutorial :-), now all i have to do is learn how to code in flash :p (which will happen if nobody answers by tomorrow :p ) –  NorthPole Oct 22 '12 at 14:57
    
We used ours to play videos so i never ran into this problem...good luck!!!! –  huzzah Oct 22 '12 at 18:27

1 Answer 1

up vote 1 down vote accepted

You really cannot load complex JavaScript into Flash. It will not work. You said your signage app supports RSS. One simple option is to create RSS feeds from the data you are trying to get from Facebook or Twitter.

You can use PHP, Asp or something else to gain access to the Facebook/Twitter APIs. Then create dynamic RSS feeds that Flash can read. Flash can also read XML that is more complex than RSS. This gives you a lot of options.

I know Facebook has an ActionScript 3 version of their SDK. You can also use that SDK to build on the Facebook platform (http://code.google.com/p/facebook-actionscript-api/). This might be a bit too much for a digital signage application where I am assuming you just want to show live updates?

share|improve this answer
    
hmm the is no way to load php or really anything server-side into it, I managed to find some facebook plugins that work but no twitter ones. Thanks for the answer though :) –  NorthPole Nov 13 '12 at 12:01
    
You can run php on a different server to create the xml feeds? –  Frank Nov 20 '12 at 4:34
    
....and query the php server to get the feeds, a first class idea! now I only need to find a way to style it, since the default rss reader for it only displays it as scrolling text. Thanks a lot m8! –  NorthPole Nov 21 '12 at 14:39
    
Yeah, best of luck. –  Frank Nov 23 '12 at 4:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.