{"action":"opened","issue":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/786","labels_url":"https://api.github.com/repos/jxcore/jxcore/issues/786/labels{/name}","comments_url":"https://api.github.com/repos/jxcore/jxcore/issues/786/comments","events_url":"https://api.github.com/repos/jxcore/jxcore/issues/786/events","html_url":"https://github.com/jxcore/jxcore/issues/786","id":127575722,"number":786,"title":"How to load JX package in embedded JX on Android?","user":{"login":"jeffskla","id":8324660,"avatar_url":"https://avatars.githubusercontent.com/u/8324660?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffskla","html_url":"https://github.com/jeffskla","followers_url":"https://api.github.com/users/jeffskla/followers","following_url":"https://api.github.com/users/jeffskla/following{/other_user}","gists_url":"https://api.github.com/users/jeffskla/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffskla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffskla/subscriptions","organizations_url":"https://api.github.com/users/jeffskla/orgs","repos_url":"https://api.github.com/users/jeffskla/repos","events_url":"https://api.github.com/users/jeffskla/events{/privacy}","received_events_url":"https://api.github.com/users/jeffskla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-20T00:47:41Z","updated_at":"2016-01-20T00:47:41Z","closed_at":null,"body":"I have a JX package file in my apk assets folder that I'd like to use instead of loading multiple JS files. I tried a suggestion from https://github.com/jxcore/jxcore/issues/283, but the file is not found:\r\n\r\n<pre><code>JX_DefineMainFile(\"require('myfile.jx');\");</code></pre>\r\n\r\nI also tried:\r\n\r\n<pre><code>JX_DefineMainFile(\"require('file:///android_asset/myfile.jx');\");</code></pre>\r\n\r\nIf I copy the file to sdcard, the following works fine:\r\n\r\n<pre><code>JX_DefineMainFile(\"require('/sdcard/myfile.jx');\");</code></pre>\r\n\r\nIn addition to getting the embedded file working, I'm also wondering if there's a way to load remote JX packages from my Android app."}}