Yes - I have a similar app that loads heavy audio libraries from a
regional server - these libraries (the child swfs if you like) need to
run the line below.

You need to use: System.security.allowDomain( "*.floorplanner.com" )

 

If the functions are trivial (changing color etc) you could even do 

 

System.security.allowDomain("*");

 

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: flashcoders@chattyfig.figleaf.com
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
_______________________________________________
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

Reply via email to