{"action":"created","issue":{"url":"https://api.github.com/repos/openvv/openvv/issues/73","labels_url":"https://api.github.com/repos/openvv/openvv/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/openvv/openvv/issues/73/comments","events_url":"https://api.github.com/repos/openvv/openvv/issues/73/events","html_url":"https://github.com/openvv/openvv/issues/73","id":54300180,"number":73,"title":"Flex requirement","user":{"login":"timdp","id":201034,"avatar_url":"https://avatars.githubusercontent.com/u/201034?v=3","gravatar_id":"","url":"https://api.github.com/users/timdp","html_url":"https://github.com/timdp","followers_url":"https://api.github.com/users/timdp/followers","following_url":"https://api.github.com/users/timdp/following{/other_user}","gists_url":"https://api.github.com/users/timdp/gists{/gist_id}","starred_url":"https://api.github.com/users/timdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdp/subscriptions","organizations_url":"https://api.github.com/users/timdp/orgs","repos_url":"https://api.github.com/users/timdp/repos","events_url":"https://api.github.com/users/timdp/events{/privacy}","received_events_url":"https://api.github.com/users/timdp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-14T09:24:18Z","updated_at":"2015-01-14T11:50:04Z","closed_at":null,"body":"If I wanted to include OpenVV into a pure Flash project, would I still need Flex? My initial tests seem to indicate that I need to statically link Flex's `core.swc` into my SWF.\r\n\r\nThere are a few references to the `mx` package in the SWC's `catalog.xml`, which all seem related to the `[Embed]` of `OVVAsset.js` in `OVVAsset.as`. Consequently, would it be at all possible to bypass Flex entirely by just assigning a (ridiculously) long string to `ovvAssetSource` directly?\r\n\r\nI'm guessing the compiler already does a pretty good job at stripping out unused code, so the few remaining `mx` probably don't add _that_ much to the SWF's size, but it still seems like the Flex stuff is somewhat superfluous.\r\n\r\n(By the way, why is the embedded content's MIME type `application/octet-stream` rather than `application/javascript`?)"},"comment":{"url":"https://api.github.com/repos/openvv/openvv/issues/comments/69905567","html_url":"https://github.com/openvv/openvv/issues/73#issuecomment-69905567","issue_url":"https://api.github.com/repos/openvv/openvv/issues/73","id":69905567,"user":{"login":"timdp","id":201034,"avatar_url":"https://avatars.githubusercontent.com/u/201034?v=3","gravatar_id":"","url":"https://api.github.com/users/timdp","html_url":"https://github.com/timdp","followers_url":"https://api.github.com/users/timdp/followers","following_url":"https://api.github.com/users/timdp/following{/other_user}","gists_url":"https://api.github.com/users/timdp/gists{/gist_id}","starred_url":"https://api.github.com/users/timdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdp/subscriptions","organizations_url":"https://api.github.com/users/timdp/orgs","repos_url":"https://api.github.com/users/timdp/repos","events_url":"https://api.github.com/users/timdp/events{/privacy}","received_events_url":"https://api.github.com/users/timdp/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T11:50:04Z","updated_at":"2015-01-14T11:50:04Z","body":"On [my minify-js branch](https://github.com/timdp/openvv/tree/minify-js), I run the JS code through UglifyJS and then inject the minified JavaScript code directly into the AS file. This cuts the size of `openvv.swc` down to 16 KB.\r\n\r\nMy `build.xml` requires that `uglifyjs.cmd` be in the path, so it'll only work if you are on Windows and have UglifyJS2 installed globally. If you leave out the `.cmd`, it should work on OS X and Linux. Better yet, someone should create an ant task that runs UglifyJS2 directly. You could also use [this public REST API](http://marijnhaverbeke.nl/uglifyjs).\r\n\r\nEverything seems to work on my end. How would I go about verifying it more thoroughly? Also, once I've done so, should I create a pull request?"}}