rem: url: "../freemovie/swfgen.php", 
add: url: fGenDir+"swfgen.php", 
context: function preFlash(){initRevisionBrowser()$('previewStatus').innerHTML = "Mode: Preview (Revision " + (revisionNumber - 1) + ")"if(animationRevision[revisionNumber -1 ] == generateAnimationXML()){setTimeout("embedAnimationPreview()",100); //hack to make it work right...}else{$('zFlashPreviewDiv').style.height = canvasHeight + 'px';$('zFlashPreviewDiv').style.width = canvasWidth + 'px';$('zFlashPreviewDiv').innerHTML = "";pButton.disable()pButton.setText( 'generating...')var swfgen = generateAnimationXML();if(swfgen.length > 50){Ext.Ajax.request({url: "../freemovie/swfgen.php",params: {type: "preview",height: canvasHeight,width: canvasWidth,framerate: AnimationFramerate,svg: swfgen,},success: function(e){$('previewStatus').innerHTML = "Mode: Preview (Revision " + (revisionNumber - 1) + ")"animationRevision[revisionNumber] = generateAnimationXML();var flashHTML = "",FLASHfilename=e.responseText.replace('preview','../freemovie/preview');lastAnimationURL = FLASHfilename;animationRevisionURL[revisionNumber] = FLASHfilename;revisionNumber++;$('previewStatus').innerHTML = "Mode: Preview (Revision " + (revisionNumber - 1) + ")"flashHTML=genFlashHTML(FLASHfilename)document.getElementById("zFlashPreviewDiv").innerHTML = flashHTML;pButton.enable()pButton.setText('Preview')if(e.responseText.indexOf('Warning') != -1 || e.responseText.indexOf('Error') != -1 ){if(e.responseText.indexOf('<br>') != -1 || e.responseText.indexOf('<b>') != -1 ){document.getElementById("zFlashPreviewDiv").innerHTML = e.responseText ;}}initRevisionBrowser()}})}else{$('zFlashPreviewDiv').innerHTML = "Empty Animation";}}$('previewStatus').innerHTML = "Mode: Preview (Revision " + (revisionNumber - 1) + ")"}
meta: 5269	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5269/af9f096c35280c572f3a344cbbc4dee702b4ef92/flash.js/buggy/Animator/ajaxanimator/flash.js