Copy link to clipboard
Copied
I'm having trouble matching downloads this address online.
http://www.rd3d.com.br/360/vr/vr.html
Algume can help me?
Thank you.
var request:URLRequest = new URLRequest("http://www.rd3d.com.br/360/vr/vr.html");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
if you're publishing for the ipad, use an htmlloader, not a loader:
import flash.html.HTMLLoader;
var html:HTMLLoader = new HTMLLoader();
var urlReq:URLRequest = new URLRequest("http://www.rd3d.com.br/360/vr/vr.html");
html.width = stage.stageWidth;
html.height = stage.stageHeight;
html.load(urlReq);
addChild(html);
Copy link to clipboard
Copied
See if using a URLLoader works better for you. Loaders are typically used for images and swf files. What are your intentions for the html file?
Copy link to clipboard
Copied
Hello Ned Murphy.
This address is loaded html offline or online but positive mSQL solution.
Will be attached to a file ipa future.
And appreciate all the help possible.
I look forward to returning.
Thankful.
Copy link to clipboard
Copied
Could anyone help me with some code valid and load the file you need, online or location within the Ipad?
I await response.
Copy link to clipboard
Copied
if you're publishing for the ipad, use an htmlloader, not a loader:
import flash.html.HTMLLoader;
var html:HTMLLoader = new HTMLLoader();
var urlReq:URLRequest = new URLRequest("http://www.rd3d.com.br/360/vr/vr.html");
html.width = stage.stageWidth;
html.height = stage.stageHeight;
html.load(urlReq);
addChild(html);
Copy link to clipboard
Copied
Thanks Mr. Kglad.
I will test your solution.
Thank you.
Copy link to clipboard
Copied
you're welcome.
(it worked for me. and amazingly, that websites controls work too!)
Copy link to clipboard
Copied
Mr. Kglad.
I just put your code in layer I'm working on this and not importing content aparecereu nothing.
import flash.html.HTMLLoader;
var html:HTMLLoader = new HTMLLoader();
var urlReq:URLRequest = new URLRequest("http://www.rd3d.com.br/360/vr/vr.html");
html.width = 500;
html.height = 800;
html.load(urlReq);
addChild(html);
Even though the code inserted into the receiving container.
Excuse my ignorance on implementation.
Copy link to clipboard
Copied
you published for the ipad and installed your app?
Copy link to clipboard
Copied
Yes.
Published in ipa, and even in air simulator in flash does not load anything when I select the screen where this code to html.
Copy link to clipboard
Copied
it doesn't work in the simulator for me either. i published an air for desktop file, installed the app and tested. i didn't test on an iDevice.
did you publish your ipa file, install it on an ipad and test on the ipad?
Copy link to clipboard
Copied
That's right, kglad.
In the simulator does not load the container related.
And even publishing and installing the ipa for Ipad not uploaded anything.
What do you think this problem can not load the container area for Ipad?
Copy link to clipboard
Copied
then try stagewebview:
import flash.media.StageWebView;
import flash.geom.Rectangle;
var webView:StageWebView = new StageWebView();
webView.loadURL("http://www.rd3d.com.br/360/vr/vr.html");
webView.stage = this.stage;
webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight );
Copy link to clipboard
Copied
Kglad, with StageWebView loaded perfectly.
How do the rectangle declared in code disappear when the layer change, and not overlap the other content?
I appreciate this new help.
Copy link to clipboard
Copied
to remove the stagewebview from the display, use:
webView.stage=null;
to ready for gc, use:
webView.dispose();
Copy link to clipboard
Copied
I do not know how to thank you friend, Kglad.
Problem solved 100%.
Thanks to their generosity and patience in showing me the way.
Again thank you very much.
Copy link to clipboard
Copied
you're welcome.
Copy link to clipboard
Copied
Sorry to take your time Mr. Kglad.
How could use StageWebView to load the same file vr.html off-line locally within the export package ipa?
I await your return.
Thank you.
Copy link to clipboard
Copied
add vr.html to your included files list in the air publish settings.
Copy link to clipboard
Copied
Hello, Kglad.
File vr.html and all your file folders are already included in publishing package.
I've got the following code as3:
// PASSEIO 360
stop();
import flash.media.StageWebView;
import flash.geom.Rectangle;
var webView:StageWebView = new StageWebView();
webView.loadURL("http://www.rd3d.com.br/360/vr/vr.html");
webView.stage = this.stage;
webView.viewPort = new Rectangle(7,5,1010,650);
And removing the http and leaving only "vr.html" because the swf file and vr.htm are all in the same location as the hd.
// PASSEIO 360
stop();
import flash.media.StageWebView;
import flash.geom.Rectangle;
var webView:StageWebView = new StageWebView();
webView.loadURL("vr.html");
webView.stage = this.stage;
webView.viewPort = new Rectangle(7,5,1010,650);
The area of ​​the rectangle is loaded over its content and not returns this error:
Error #2044: Unhandled ErrorEvent:. text=Load error.
Could you help me create this implementation html site?
I appreciate your help.