Hi I am currently trying to find a way to redirect a another page after a flashswf is done. I am currently using AC_RunactiveContent.js in order to get the flashswf to play. I thought about using the 'onfinish' case, however as I have just begun using javascript I am unsure as to what to send in terms of parameters.
Here is the coding for the cases
And here is what I am sending from the html sideCode:function AC_GetArgs(args, ext, srcParamName, classid, mimeType) { var ret = new Object(); ret.embedAttrs = new Object(); ret.params = new Object(); ret.objAttrs = new Object(); for (var i=0; i < args.length; i=i+2) { var currArg = args[i].toLowerCase(); switch (currArg) { case "classid": break; case "pluginspage": ret.embedAttrs[args[i]] = args[i+1]; break; case "src": case "movie": args[i+1] = AC_AddExtension(args[i+1], ext); ret.embedAttrs["src"] = args[i+1]; ret.params[srcParamName] = args[i+1]; break; case "onafterupdate": case "onbeforeupdate": case "onblur": case "oncellchange": case "onclick": case "ondblclick": case "ondrag": case "ondragend": case "ondragenter": case "ondragleave": case "ondragover": case "ondrop": case "onfinish": ret.params[args[i]] = args[i+1]; break; case "onfocus": case "onhelp": case "onmousedown": case "onmouseup": case "onmouseover": case "onmousemove": case "onmouseout": case "onkeypress": case "onkeydown": case "onkeyup": case "onload": case "onlosecapture": case "onpropertychange": case "onreadystatechange": case "onrowsdelete": case "onrowenter": case "onrowexit": case "onrowsinserted": case "onstart": case "onscroll": case "onbeforeeditfocus": case "onactivate": case "onbeforedeactivate": case "ondeactivate": case "type": case "codebase": case "id": ret.objAttrs[args[i]] = args[i+1]; break; case "width": case "height": case "align": case "vspace": case "hspace": case "class": case "title": case "accesskey": case "name": case "tabindex": ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1]; break; default: ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1]; } } ret.objAttrs["classid"] = classid; if (mimeType) ret.embedAttrs["type"] = mimeType; return ret; }
Many thanks for helping. I apologise if this is more on the html side if the problem lies there. Also, does anyone by chance have a good example of using most of the cases? I was unable to find a place that actually used the 'onfinish' case.Code:AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '224', 'height', '136', 'src', 'FlashSwf', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'noscale', 'wmode', 'window', 'devicefont', 'false', 'id', 'FlashSwf', 'bgcolor', '#ffffff', 'name', 'FlashSwf', 'menu', 'true', 'allowFullScreen', 'true', 'onfinish', 'window.location = "menu.htm"', 'allowScriptAccess','sameDomain', 'movie', 'test_left2_Data/FlashSwf', 'FlashVars','StandByVideo=test_left2Standby&BrowseVideo=test_left2', 'salign', 'lt' ); //end AC code



Reply With Quote
Bookmarks