Thnx Attila and Tom for your replies. In my test app I allready have a line System.security.allowDomain( "floorplanner.nl" ). But it seems that is has to be the other way around... all furniture swf's should have the line System.security.allowDomain( "floorplanner.com" ). Am I understanding you correct Tom?
Bye! Gert-Jan On 5/30/07, Tom Gooding <[EMAIL PROTECTED]> wrote:
Hi, To allow scripting across swfs served from different domains the swfs themselves need to set System.security.allowDomain("www.somedomain.com"); to permit a parent swf from somedomain.com to call actionscript methods on them. I guess your swfs on amazon will need to run the line above to open your domain up for cross scripting ( "*.floorplanner.com" ). I haven't loaded you links or anything though - hope this helps.. Tom -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gert-Jan van der Wel Sent: 30 May 2007 15:51 To: firstname.lastname@example.org Subject: [Flashcoders] Crossdomain problems Hi list! I'm a developer on the Floorplanner team (check www.floorplanner.com) and I ran into some crossdomain issues. All the furniture elements are separate swf's which are loaded in one by one. For the sake of scalability we are thinking about moving all the furniture swf's to the Amazon S3 service. So I've uploaded all the swf's to Amazon S3 and I made a little test app to see how things worked. To be short, it didn't. You can load swf's, but no moving, scaling, changing color etc. So I made a new test app using another server of our own: www.floorplanner.nl (because I've more control over this one). Every furniture swf has an movieclip with the name "color". When you select a color in the Floorplanner, the color of this movieclip is changed. My test app checks if it can access that color movieclip. When I run it inside the Flash IDE there is no problem, but run it anywhere else and it will fail. Here is my little test app: http://www.floorplanner.com/assets/lab/crossdomaintest.swf http://www.floorplanner.com/assets/lab/crossdomaintest.fla I've set my crossdomain files to allow everything (for now): http://www.floorplanner.nl/crossdomain.xml http://www.floorplanner.com/crossdomain.xml Can anybody help me and tell me what I'm doing wrong? Bye! Gert-Jan _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
-- Met vriendelijke groet, Gert-Jan van der Wel | Suite75 _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com