This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<appSettings> | |
<!-- Virtual Directory Setup | |
assign virtualDirPath below a value like '/{path}' | |
Add below to your app code and then prepend routes with virtualDirPath | |
var virtualDirPath = process.env.virtualDirPath || ''; --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function supportedSampleRates() { | |
return [4000, 8000, 16000, 32000, 44100, 48000, 96000].filter(supportsSampleRate); | |
} | |
function supportsSampleRate(sampleRate) { | |
try { | |
var l = new OfflineAudioContext(1, sampleRate, sampleRate); | |
return true; | |
} | |
catch(e){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO make this not an ugly hack, assumes a lot of things | |
// TODO add a LoadMovie to load movie in-place, need to retrieve bgcolor and frameSize and set them | |
// for swiffy v7.4 | |
// loadMovie only works if ends in lowercase .swf, looks for .swf.json | |
function lcase_swf(path) { | |
var path = path[path.length - 4] === '.' ? path.slice(0, -4) : path; | |
return path + '.swf'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//stage.Ga.O.s | |
//stage.Td | |
(function() { | |
/* | |
Copyright 2015 Google Inc. | |
Swiffy runtime version 7.4.0 | |
In addition to the Google Terms of Service (http://www.google.com/accounts/TOS), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
/* | |
Copyright 2015 Google Inc. | |
Swiffy runtime version v7.3.1 | |
In addition to the Google Terms of Service (http://www.google.com/accounts/TOS), | |
Google grants you and the Google Swiffy end users a personal, worldwide, | |
royalty-free, non-assignable and non-exclusive license to use the Google Swiffy | |
runtime to host it for Google Swiffy end users and to use it in connection with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// export audio because HTML5 canvas projects mangles published audio files | |
// TODO find way to click ok buttons, so it is fully automatic | |
var inFolder = fl.browseForFolderURL("Select a folder with Flash files."); | |
var imageFileURLBase = inFolder + '/sounds'; | |
fl.trace(inFolder); | |
var files = FLfile.listFolder(inFolder + "/*.fla", "files"); |