Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.observe('dom:loaded', function() {
- $('episode1').observe('click', function() {
- var params = {wmode : "transparent", allowScriptAccess:"always", movie:"header"};
- swfobject.embedSWF("swf/float.swf", "header", "100%", "100%", "9.0.0","expressInstall.swf", "", params, "");
- sendToActionScript("ep1.swf");
- });
- })
- function thisMovie(movieName) {
- if (navigator.appName.indexOf("Microsoft") != -1) {
- return window[movieName];
- } else {
- //alert("aaa")
- return document[movieName];
- }
- }
- function sendToActionScript(value) {
- thisMovie('header').sendToActionScript(value);
- }
- private function receivedFromJavaScript(value:String):void {
- loader.load(new URLRequest(value));
- }
- var timeoutId;
- var js_initiate_callback = function() {
- // This is the swf object:
- fvar_js.js_to_as_f();
- clearTimeout ( timeoutId );
- }
- var reset_fvar_f = function(new_val) {
- fvar_val = new_val;
- }
- //js_initiate_callback();
- timeoutId = setTimeout(js_initiate_callback, 1000);
- function GetSWF(strName) {
- if (window.document[strName] != null)
- if (window.document[strName].length == null)
- return window.document[strName];
- else
- return window.document[strName][1];
- else
- if (document[strName].length == null)
- return document[strName];
- else
- return document[strName][1];
- }
- function GetSWF(strName) {
- if (window.document[strName] != null)
- if (window.document[strName].length == null)
- return window.document[strName];
- else
- return window.document[strName][1];
- else
- if (document[strName].length == null)
- return document[strName];
- else
- return document[strName][1];
- }
Add Comment
Please, Sign In to add comment