• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.

New Here ,
Sep 24, 2012 Sep 24, 2012

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);

TOPICS
ActionScript

Views

16.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 01, 2012 Oct 01, 2012

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);

Votes

Translate

Translate
LEGEND ,
Sep 24, 2012 Sep 24, 2012

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 24, 2012 Sep 24, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2012 Oct 01, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2012 Oct 01, 2012

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);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2012 Oct 01, 2012

Copy link to clipboard

Copied

Thanks Mr. Kglad.

I will test your solution.

Thank you.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2012 Oct 01, 2012

Copy link to clipboard

Copied

you're welcome.

(it worked for me.  and amazingly, that websites controls work too!)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2012 Oct 01, 2012

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.


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2012 Oct 01, 2012

Copy link to clipboard

Copied

you published for the ipad and installed your app?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2012 Oct 01, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2012 Oct 01, 2012

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2012 Oct 01, 2012

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2012 Oct 01, 2012

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 );


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2012 Oct 01, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2012 Oct 01, 2012

Copy link to clipboard

Copied

to remove the stagewebview from the display, use:

webView.stage=null;

to ready for gc, use:

webView.dispose();

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2012 Oct 01, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2012 Oct 01, 2012

Copy link to clipboard

Copied

you're welcome.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 05, 2012 Oct 05, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 06, 2012 Oct 06, 2012

Copy link to clipboard

Copied

add vr.html to your included files list in the air publish settings.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 08, 2012 Oct 08, 2012

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines