{"action":"created","issue":{"url":"https://api.github.com/repos/Corsaair/redtamarin/issues/76","repository_url":"https://api.github.com/repos/Corsaair/redtamarin","labels_url":"https://api.github.com/repos/Corsaair/redtamarin/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/Corsaair/redtamarin/issues/76/comments","events_url":"https://api.github.com/repos/Corsaair/redtamarin/issues/76/events","html_url":"https://github.com/Corsaair/redtamarin/issues/76","id":139582470,"number":76,"title":"Support for 'normal' SWF loading/instantiating","user":{"login":"ajwfrost","id":6400804,"avatar_url":"https://avatars.githubusercontent.com/u/6400804?v=3","gravatar_id":"","url":"https://api.github.com/users/ajwfrost","html_url":"https://github.com/ajwfrost","followers_url":"https://api.github.com/users/ajwfrost/followers","following_url":"https://api.github.com/users/ajwfrost/following{/other_user}","gists_url":"https://api.github.com/users/ajwfrost/gists{/gist_id}","starred_url":"https://api.github.com/users/ajwfrost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajwfrost/subscriptions","organizations_url":"https://api.github.com/users/ajwfrost/orgs","repos_url":"https://api.github.com/users/ajwfrost/repos","events_url":"https://api.github.com/users/ajwfrost/events{/privacy}","received_events_url":"https://api.github.com/users/ajwfrost/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-09T13:51:26Z","updated_at":"2016-03-09T19:02:39Z","closed_at":null,"body":"Hi   \r\n\r\nI was trying to embed some data in a SWF file that was loaded by the redtamarin shell and it's made everything stop working. Having done some debugging, this is because I'm getting now an abc block that has two scripts in it: (1) my main class which is what I had before adding the 'embed' statement, and (2) the generated class which contains the byte array. However, retamarin is set up normally to only execute the main (final) script - and I can see this happening, both from the method ID that's returned from `initAllScripts` and from the output when I enable verbose mode.   \r\n\r\nSo I'm planning to expand upon the support for SWF files in order to allow two things:\r\n1.   It will parse the 'SymbolClass' block from the SWF file and will instantiate an object using the class given at symbol ID 0 (i.e. how Flash/AIR works)\r\n2.   It will add the link between a class name and the relevant SWF 'DefineBinaryData' block so that the AS code can access the embedded byte array.   \r\n\r\nI'm doing this off-line for now but have ordered books on git/github so will raise these as pull requests at some point should you be interested!\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Corsaair/redtamarin/issues/comments/194453828","html_url":"https://github.com/Corsaair/redtamarin/issues/76#issuecomment-194453828","issue_url":"https://api.github.com/repos/Corsaair/redtamarin/issues/76","id":194453828,"user":{"login":"ajwfrost","id":6400804,"avatar_url":"https://avatars.githubusercontent.com/u/6400804?v=3","gravatar_id":"","url":"https://api.github.com/users/ajwfrost","html_url":"https://github.com/ajwfrost","followers_url":"https://api.github.com/users/ajwfrost/followers","following_url":"https://api.github.com/users/ajwfrost/following{/other_user}","gists_url":"https://api.github.com/users/ajwfrost/gists{/gist_id}","starred_url":"https://api.github.com/users/ajwfrost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajwfrost/subscriptions","organizations_url":"https://api.github.com/users/ajwfrost/orgs","repos_url":"https://api.github.com/users/ajwfrost/repos","events_url":"https://api.github.com/users/ajwfrost/events{/privacy}","received_events_url":"https://api.github.com/users/ajwfrost/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T19:02:39Z","updated_at":"2016-03-09T19:02:39Z","body":"Hi   \r\nThanks for the comments here. I'm aware of the current usage of the ASC to create .abc files rather than the focus being on SWF support (other tags etc). I guess in a way, what I'm trying to do is to make it \"easier\" to use redtamarin as the runtime for some non-gui, server-side AS3 software but to fit into a normal workflow used by most AS3 developers at the moment (i.e. generating a SWF file using Flash Builder or FlashDevelop etc). So adding support for other tags from the SWF is one way to achieve that.   \r\nI take your point about the size of this and the merging/integration tasks particularly if you're doing the update from several years' worth of Adobe changes to the avmplus project! But I believe it can be pretty independently implemented...   \r\nIn terms of contributing, I guess there are three options: (a) I work on stuff according to my personal priorities and you guys integrate it into redtamarin; (b) I work on this stuff but it stays in a fork of redtamarin; or (c) I could just do this separately, starting off with (the new!) avmplus and adding to that directly. Which would mean that I don't get the benefit of all your existing stuff, but equally I don't want to start pulling this in a direction you're not comfortable with, or ending up adding some fragmentation..   \r\nHow about for now (at least for this one) I work on it in the fork, and then when you're done with the avmplus updates I could up-merge stuff on my side to make things easier for a pull request back again? Let me know what you think..   \r\nIn terms of actually making the changes, I'd already created something like this a couple of years ago when I was playing around (but the code never made it to an open source repo) so it should be okay to do :-)   \r\nBTW - to reproduce the set-up I've got then please see the project at [https://github.com/Corsaair/redtamarin/issues/url](url) and uncomment the lines in MainApp.as.   \r\ncheers"}}