----- Original Message ---- From: Jim Hayes <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Monday, January 28, 2008 2:07:42 PM Subject: RE: [flexcoders] Running a flex app from local file system
Try -use-network= false Jim. -----Original Message----- From: [EMAIL PROTECTED] ups.com on behalf of Greg Hess Sent: Mon 28/01/2008 19:39 To: [EMAIL PROTECTED] ups.com Subject: RE: [flexcoders] Running a flex app from local file system Thanks Guys, Unfortunately, I am having difficulty getting both strategies to work. 1. Embed the xml file - It seems xml file format (xml) is not specifically supported by Flex and will require me to set the MIME type and the embedded object is a ByteArrayAsset. Is this the only way? - tried to embed both as a metadata tag and directive and the error states: no transcoder registered for mimeType 2. Use the compiler arg '-use-network false' - it seems the argument -use-network does not support additional parameters such as 'false'. When I use just '-use-network' it does compile but errors at runtime loading the local XML file as before. My mxml is as follows (loading 'images/gallery/ photos.xml is giving the problem'): <mx:HTTPService id="photosIn" url="images/ gallery/photos. xml" result="photosInHan dler(event) " /> The resulting ArrayCollection is used to bind as the dataProvider of a TileList. Am I missing something? Just wanted an easy way to support launching off local file system and hoped I could have an easy strategy to toggle both deployment strategies (web server, local file system). Any comments much appreciated. -Greg From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Andrew D. Goodfellow Sent: Monday, January 28, 2008 11:37 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Running a flex app from local file system Hi Greg, I think if you go to "Project | Properties | Flex Compiler" and add " -use-network false" to the Additional Compiler Arguments that might do the trick. You'll need to rebuild. I think the problem you are having is due to security constraint built into the Flash player. It will allow the swf to either load external resources via HTTP from the network OR from the local filesystem. Both are not allowed, you have to choose a setting for one or the other when you build/publish. -Andy On Jan 28, 2008 9:38 AM, Greg Hess <[EMAIL PROTECTED] com<mailto:[EMAIL PROTECTED] com>> wrote: Hi All, I am working with a remote team and I need to send them the application prototype for review. I thought all I need to do is add all the files in the output dir to a compressed file and send via email ect... The prototype is loading a local XML file to populate an UI component to simulate a remote HTTPService call and it seems to be generating security violations accessing the local file system. The client workstations are Windows Vista. How do I build or configure the application so it can be launched from the local files system? Any comments much appreciated. Thanks, -Greg ____________ _________ _________ _________ _________ _________ _ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ____________ _________ _________ _________ _________ _________ _ <!-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#0000ff;text-decoration:none;} --> <!-- #ygrp-sponsor #ygrp-lc{ font-family:Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom:10px;padding:0 0;} --> <!-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a{ text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc{ background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o{font-size:0;} .MsoNormal{ margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq{margin:4;} --> ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ