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
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
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
[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 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