[Flashcoders] HTMLLoader not loading
Hi list... I'm *desperately* trying to figure out why an AIR project's HTMLLoader won't load any pdfs, just showing blank. Web pages load fine. Based on documented known limitations (below): scaleX, scaleY, and alpha of the HTMLLoader are all 1, and rotation is 0. The window isn't transparent. The htmlLoader instance is at the top of the displayList. I set scaleMode to NO_SCALE. A simple test AIR file worked fine. It's got to be something about my file, but what can I double check? Any help is tremendously appreciated! Thanks, - Michael M. >From the docs: Known limitations for PDF content in AIR PDF content in Adobe AIR has the following limitations: PDF content does not display in a window (a NativeWindow object) that is transparent (where the transparent property is set to true). The display order of a PDF file operates differently than other display objects in an AIR application. Although PDF content clips correctly according to HTML display order, it will always sit on top of content in the AIR application's display order. If certain visual properties of an HTMLLoader object that contains a PDF document are changed, the PDF document will become invisible. These properties include the filters, alpha, rotation, and scaling properties. Changing these properties renders the PDF content invisible until the properties are reset. The PDF content is also invisible if you change these properties of display object containers that contain the HTMLLoader object. PDF content is visible only when the scaleMode property of the Stage object of the NativeWindow object containing the PDF content (the window.nativeWindow.stage property) is set to air.StageScaleMode.NO_SCALE. When it is set to any other value, the PDF content is not visible. Clicking links to content within the PDF file update the scroll position of the PDF content. Clicking links to content outside the PDF file redirect the HTMLLoader object that contains the PDF (even if the target of a link is a new window). PDF commenting workflows do not function in AIR. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] HTMLLoader and AIR -- always a nice white blank
Thanks, that sounds worth focussing on. I'll try that out. I've got the COMPLETE so far but I'll investigate what else I can trace. T Tony Fairfield Programmer Lifelearn, Inc. 67 Watson Road S, Unit 5 Guelph, ON N1L 1E3 www.lifelearn.com T: 519-767-5043 F: 519-767-1101 -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew Murphy Sent: June 21, 2010 10:50 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] HTMLLoader and AIR -- always a nice white blank If you haven't tried this yet: Add event listeners and traces to all of the relevant events that the HTML component throws, and see if that can give you more details on what it's doing.. or not doing. -- Andrew Murphy Interactive Media Developer amur...@delvinia.com Delvinia 370 King Street West, 5th Floor, Box 4 Toronto Canada M5V 1J9 P (416) 364-1455 ext. 232 F (416) 364-9830 W www.delvinia.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Tony Fairfield Sent: June 21, 2010 09:08 am To: Flash Coders List Subject: RE: [Flashcoders] HTMLLoader and AIR -- always a nice white blank Yes, as pdf.height = stage.stageHeight; pdf.width = stage.stageWidth; I found one glaringly stupid mistake I'd made: not including the local documents I was loading with the AIR build. When I simply tested the movie, it finally showed. Still can't get a site URL (such as adobe home page) to work, but I'm working on that one now... Thanks for your reply, Tony Fairfield Programmer Lifelearn, Inc. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks Sent: June 20, 2010 5:39 PM To: Flash Coders List Subject: Re: [Flashcoders] HTMLLoader and AIR -- always a nice white blank Did you trace the width and height? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] HTMLLoader and AIR -- always a nice white blank
If you haven't tried this yet: Add event listeners and traces to all of the relevant events that the HTML component throws, and see if that can give you more details on what it's doing.. or not doing. -- Andrew Murphy Interactive Media Developer amur...@delvinia.com Delvinia 370 King Street West, 5th Floor, Box 4 Toronto Canada M5V 1J9 P (416) 364-1455 ext. 232 F (416) 364-9830 W www.delvinia.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Tony Fairfield Sent: June 21, 2010 09:08 am To: Flash Coders List Subject: RE: [Flashcoders] HTMLLoader and AIR -- always a nice white blank Yes, as pdf.height = stage.stageHeight; pdf.width = stage.stageWidth; I found one glaringly stupid mistake I'd made: not including the local documents I was loading with the AIR build. When I simply tested the movie, it finally showed. Still can't get a site URL (such as adobe home page) to work, but I'm working on that one now... Thanks for your reply, Tony Fairfield Programmer Lifelearn, Inc. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks Sent: June 20, 2010 5:39 PM To: Flash Coders List Subject: Re: [Flashcoders] HTMLLoader and AIR -- always a nice white blank Did you trace the width and height? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] HTMLLoader and AIR -- always a nice white blank
Yes, as pdf.height = stage.stageHeight; pdf.width = stage.stageWidth; I found one glaringly stupid mistake I'd made: not including the local documents I was loading with the AIR build. When I simply tested the movie, it finally showed. Still can't get a site URL (such as adobe home page) to work, but I'm working on that one now... Thanks for your reply, Tony Fairfield Programmer Lifelearn, Inc. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks Sent: June 20, 2010 5:39 PM To: Flash Coders List Subject: Re: [Flashcoders] HTMLLoader and AIR -- always a nice white blank Did you trace the width and height? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTMLLoader and AIR -- always a nice white blank
Did you trace the width and height? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] HTMLLoader and AIR -- always a nice white blank
Are there known issues with the HTMLLoader method? No success at all with it: I have CS4, and building with AIR 1.5, and can only get one result: a white box when the content loads (whether html or pdf). I have tried many options: local documents, site urls (as in Adobe's eg below), PDF, straight html, and PDF embedded into html. Tried it at work and at home to eliminate possibility of some obscure security setting. Here's Adob'es own example from Live docs, which I've implemented exactly (without success): public function HTMLLoaderExample() { var html:HTMLLoader = new HTMLLoader(); var urlReq:URLRequest = new URLRequest("http://www.adobe.com/";); html.width = stage.stageWidth; html.height = stage.stageHeight; html.load(urlReq); addChild(html); } I've seen many posts about transaprency, but that isn't the issue (my app.xml has transparency set to false). Some mention adding the content to a UIComponent once the document is loaded. Tried that. I'm stumped by this, as I see exactly the same script for this process everywhere, including the AIR 1.5 Cookbook. I'm beginning to think it's a fiction. Any advice or tips much appreciated. Tony Fairfield Programmer Lifelearn Inc. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTMLLoader
Why is this funny. The client wants a touchscreen kiosk (built in Flash) that one of the elements is they want the to show the corporate website within the app. Not a overlaid popup browser, but the actual site inside the application. I've been told that AIR and the HTMLLoader will handle it, but the clients site has Flash elements running on it, hence my question of: Can AIR handle displaying a website inside itself, that has Flash elements? Why did you say that that is funny? Thank you in advance, John on 11/20/09 8:16 PM, Latcho at spamtha...@gmail.com wrote: > That be funny, > > Finally html rendering inside a packed flash air swf but then no flash > anymore :) > > Nono, Works a treat. > > Have fun. > > Ciao, > > Latcho John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interactive Inc 945 Washington Blvd. Hoffman Estates, IL 60169 Office/Fax: 847.310.5959 Cellular: 847.651.4469 www.ondemandinteractive.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTMLLoader
That be funny, Finally html rendering inside a packed flash air swf but then no flash anymore :) Nono, Works a treat. Have fun. Ciao, Latcho John R. Sweeney Jr wrote: Howdy all, Does anyone know that if you load a website into the HTMLLaoder (AIR app) and that site contains or is entirely in FLASH, will that work? Much appreciated and everyone get ready for Turkey Day, John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] HTMLLoader
Howdy all, Does anyone know that if you load a website into the HTMLLaoder (AIR app) and that site contains or is entirely in FLASH, will that work? Much appreciated and everyone get ready for Turkey Day, John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] HTMLLoader issues
Hi all, I am having some event issues with an htmlLoader object which I populate with loadString(). When I click on a link inside that HTMLLoader object, sometimes the page opens up in the default browser as it should and sometimes not. Worse is that I have the HTMLLoader object to be draggable (which doesn't work on it for some reason but only on a larger background it is centered upon). Why can't I make an HTMLLoader draggable - it has startDrag and stopDrag methods? I am just looking for confirmation that people have gotten HTMLLoaders to be draggable. Also, if I click on a link inside the loader, now it does drag and I can't get rid of it - it is stuck to the mouse. Perhaps I have to kill off an event? (No time right now to give some code - if there are no immediate thoughts on HTMLLoader issues, I will add some code). Mark ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTMLLoader problem
Yes, that class is only for AIR. Adding rendering of HTML content using Webkit engine was one of the 3 or 4 most significant features introduced by AIR. In the docs, AIR only classes usually have the little red pinwheel icon next to them. -jonathan On Mon, Feb 23, 2009 at 8:36 AM, Lehr, Theodore M (N-SGIS) < theodore.m.l...@lmco.com> wrote: > I'm having a funny issue with HTMLLoader. I'm getting a "1046: Type was > not found or was not a compile-time constant: HTMLLoader." Error for the > line of code below. > > public var _htmlLoader:HTMLLoader = new HTMLLoader(); > > I'm importing HTMLLoader and URLLoader. The odd part to me is the code > I am using to create a simple browser window works perfectly for an AIR > application, but when I try it in a Flash program I get the error. Is > HTMLLoader only for AIR? > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- -jonathan howe ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTMLLoader problem
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/html/HTMLLoader.html On Mon, Feb 23, 2009 at 10:36 AM, Lehr, Theodore M (N-SGIS) < theodore.m.l...@lmco.com> wrote: > I'm having a funny issue with HTMLLoader. I'm getting a "1046: Type was > not found or was not a compile-time constant: HTMLLoader." Error for the > line of code below. > > public var _htmlLoader:HTMLLoader = new HTMLLoader(); > > I'm importing HTMLLoader and URLLoader. The odd part to me is the code > I am using to create a simple browser window works perfectly for an AIR > application, but when I try it in a Flash program I get the error. Is > HTMLLoader only for AIR? > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Fábio Pinatti :: web.developer www.pinatti.com.br :: 19. 9184.3745 / 3342.1130 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] HTMLLoader problem
I'm having a funny issue with HTMLLoader. I'm getting a "1046: Type was not found or was not a compile-time constant: HTMLLoader." Error for the line of code below. public var _htmlLoader:HTMLLoader = new HTMLLoader(); I'm importing HTMLLoader and URLLoader. The odd part to me is the code I am using to create a simple browser window works perfectly for an AIR application, but when I try it in a Flash program I get the error. Is HTMLLoader only for AIR? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders