{"action":"closed","issue":{"url":"https://api.github.com/repos/tuarua/WebViewANE/issues/157","repository_url":"https://api.github.com/repos/tuarua/WebViewANE","labels_url":"https://api.github.com/repos/tuarua/WebViewANE/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/tuarua/WebViewANE/issues/157/comments","events_url":"https://api.github.com/repos/tuarua/WebViewANE/issues/157/events","html_url":"https://github.com/tuarua/WebViewANE/issues/157","id":331300605,"node_id":"MDU6SXNzdWUzMzEzMDA2MDU=","number":157,"title":"Load a PDF","user":{"login":"coxfrederic","id":19729875,"node_id":"MDQ6VXNlcjE5NzI5ODc1","avatar_url":"https://avatars1.githubusercontent.com/u/19729875?v=4","gravatar_id":"","url":"https://api.github.com/users/coxfrederic","html_url":"https://github.com/coxfrederic","followers_url":"https://api.github.com/users/coxfrederic/followers","following_url":"https://api.github.com/users/coxfrederic/following{/other_user}","gists_url":"https://api.github.com/users/coxfrederic/gists{/gist_id}","starred_url":"https://api.github.com/users/coxfrederic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coxfrederic/subscriptions","organizations_url":"https://api.github.com/users/coxfrederic/orgs","repos_url":"https://api.github.com/users/coxfrederic/repos","events_url":"https://api.github.com/users/coxfrederic/events{/privacy}","received_events_url":"https://api.github.com/users/coxfrederic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-11T18:31:10Z","updated_at":"2018-06-11T19:40:13Z","closed_at":"2018-06-11T19:40:13Z","author_association":"NONE","body":"I searched the docs and issues in Github but can't find an answer.\r\n\r\nIs it possible to load a PDF from local disk? pathFile.nativePath points to a PDF that is being loaded but not displayed it seems.\r\n\r\nI use\r\n\r\n`webView = new WebViewANE;\r\n\t\t\t\t\tvar settings:Settings = new Settings;\r\n\t\t\t\t\tsettings.webkit.plugInsEnabled = true;\r\n\t\t\t\t\tvar thisL:Point = new Point(0,0);\r\n\t\t\t\t\tvar thisG:Point = localToGlobal(thisL);\r\n\t\t\t\t\tvar webViewViewport:Rectangle = new Rectangle(thisG.x + 10, thisG.y + 10, this.width - 45, this.height - 20);\r\n\t\t\t\t\twebView.init(stage, webViewViewport, \"\", null, 1, 0xFFFFFF, true);\r\n\t\t\t\t\twebView.loadFileURL(pathFile.nativePath, File.applicationStorageDirectory.nativePath);`\r\n\r\nIs this not supported or am I using it wrong?"}}
{"actor":{"display_login":"coxfrederic"}}