PageRenderTime 21ms CodeModel.GetById 19ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 24 lines | 23 code | 1 blank | 0 comment | 0 complexity | 6399c04f13299965f10f4ff8668f9f3d MD5 | raw file
 1i;9;CALayer.ji;14;CPFlashMovie.jc;1108;
 2{var the_class = objj_allocateClassPair(CALayer, "CAFlashLayer"),
 3meta_class = the_class.isa;class_addIvars(the_class, [new objj_ivar("_flashMovie")]);
 4objj_registerClassPair(the_class);
 5objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
 6class_addMethods(the_class, [new objj_method(sel_getUid("setFlashMovie:"), function $CAFlashLayer__setFlashMovie_(self, _cmd, aFlashMovie)
 7{ with(self)
 8{
 9    if (_flashMovie == aFlashMovie)
10        return;
11    _flashMovie = aFlashMovie;
12    _DOMElement.innerHTML = "<object width = \"100%\" height = \"100%\"><param name = \"movie\" value = \"" +
13                            aFlashMovie._fileName +
14                            "\"></param><param name = \"wmode\" value = \"transparent\"></param><embed src = \"" +
15                            aFlashMovie._fileName + "\" type = \"application/x-shockwave-flash\" wmode = \"transparent\" width = \"100%\" height = \"100%\"></embed></object>";
16}
17}), new objj_method(sel_getUid("flashMovie"), function $CAFlashLayer__flashMovie(self, _cmd)
18{ with(self)
19{
20    return _flashMovie;
21}
22})]);
23}
24