WordPress changes

// January 27th, 2008 // Computing

I found out today that I have $22 dollars in my Google adsense account dispite not using the thing for 18 months. So I thought I'd put it back into the site. Of course I can't see it as I use adblock plus, but you can click on it if you want.

I've also put in a new plugin to do code colouring. Might be useful if I even decide to share some code.

An example is below, from the flash video streamer I made at work

Actionscript:
  1. function onLoaded(fp)
  2. {
  3. // loading is complete, so we can now adjust the current page, zoom, etc.
  4. // go to page 50.
  5. fp.showUIElement("PrevNext", false);
  6. fp.showUIElement("Print", false);
  7. fp.showUIElement("Find", false);
  8. fp.showUIElement("Tool", false);
  9. fp.showUIElement("Pop", false);
  10. fp.showUIElement("Zoom", false);
  11. fp.showUIElement("Page", true);
  12. fp.showUIElement("Overflow", false);
  13. fp.enableScrolling(false);
  14. fp.setCurrentPage(_root.flashpaperPageNumber);
  15. // change magnification to 33%
  16. //fp.setCurrentZoom(33);
  17. }
  18.  
  19. if (_root.presentation != "yes") {
  20. _root.presentation._alpha = 0;
  21. } else {
  22. loadFlashPaper("presentations/"+_root.md5Short+".swf", flashpaper, flashpaper._width, flashpaper._height, this);
  23. }

OK, I didn't write that first bit, it's from Adobe's 'intergrating flashpaper into flash movies', but I did the rest... honest!

Leave a Reply