[flexcoders] Security sandbox violation 2048

2007-12-06 Thread sarah_e_boys
I was hoping someone could help me with this security violation error 
I am getting.  I recently uploaded my image gallery application to a 
server and when I try to download an image via a zip file I get this 
error.  It was working fine locally.


As a simple test I have used the following code.  I have placed the 
test.html, test.swf and photozip_920091426.zip file on the server 
(http://info.hrw-uk.local) and 
set up a virtual site called test.  I have checked the security 
settings of the flash player have been set to trust http://info.hrw-
uk.local/test.

Can anyone tell me what else needs to happen to make this work?

Many thanks in advance,

Sarah


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
  creationComplete=init()
   mx:Script
  ![CDATA[ 
 import mx.controls.Alert;   

import flash.net.FileReference;
 import classes.events.*
import mx.rpc.events.ResultEvent;
 
 private var fileReference:FileReference = new FileReference;

  private function init():void {   
 var urlRequest:URLRequest = new URLRequest(http://info-
hrw.local/test/photozip_920091426.zip);
 fileReference.addEventListener(Event.COMPLETE, 
onFileComplete)
  fileReference.download(urlRequest);
   }

   private function onFileComplete(event:Event):void {
  // wsCreateArchive.DeleteArchive.send
(event.currentTarget.name)
  Alert.show(would delete something now)
   }
 
  ]]
   /mx:Script
/mx:Application

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: 
Security sandbox violation: http://info.hrw-uk.local/test/test.swf 
cannot load data from http://info-
hrw.local/test/photozip_920091426.zip.
   at test$iinit()
   at _test_mx_managers_SystemManager/create()
   at mx.managers::SystemManager/::initializeTopLevelWindow()
   at mx.managers::SystemManager/::docFrameHandler()



Re: [flexcoders] Security sandbox violation 2048

2007-12-06 Thread Tom Chiverton
On Thursday 06 Dec 2007, sarah_e_boys wrote:
 I was hoping someone could help me with this security violation error
 I am getting.  I recently uploaded my image gallery application to a
 server and when I try to download an image via a zip file I get this
 error.  It was working fine locally.

You need either a crossdomain.xml or a way to get the correct domain at run 
time (Application.application.url, maybe).
You also want to read Adobe's Flash Player Security white paper.

-- 
Tom Chiverton
Helping to authoritatively supply killer relationships
on: http://thefalken.livejournal.com



Please note, as of 10th December 2007 the registered office address of 
Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/