/Frameworks/AppKit/browser.platform/CAFlashLayer.j

http://github.com/polymar/polish · Unknown · 18 lines · 18 code · 0 blank · 0 comment · 0 complexity · 1522a26f03b227b2342faf25c2ffca05 MD5 · raw file

  1. i;9;CALayer.ji;14;CPFlashMovie.jc;803;
  2. var _1=objj_allocateClassPair(CALayer,"CAFlashLayer"),_2=_1.isa;
  3. class_addIvars(_1,[new objj_ivar("_flashMovie")]);
  4. objj_registerClassPair(_1);
  5. objj_addClassForBundle(_1,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
  6. class_addMethods(_1,[new objj_method(sel_getUid("setFlashMovie:"),function(_3,_4,_5){
  7. with(_3){
  8. if(_flashMovie==_5){
  9. return;
  10. }
  11. _flashMovie=_5;
  12. _DOMElement.innerHTML="<object width = \"100%\" height = \"100%\"><param name = \"movie\" value = \""+_5._fileName+"\"></param><param name = \"wmode\" value = \"transparent\"></param><embed src = \""+_5._fileName+"\" type = \"application/x-shockwave-flash\" wmode = \"transparent\" width = \"100%\" height = \"100%\"></embed></object>";
  13. }
  14. }),new objj_method(sel_getUid("flashMovie"),function(_6,_7){
  15. with(_6){
  16. return _flashMovie;
  17. }
  18. })]);