If your swf to be loaded is located at different domain than the swf,
which loads it, then you have no access to the properties, functions,
etc. of the loadee from the loader (by default). To allow access to
internals of the loadee, call security.allowDomain() in it with the
domain name of the loader, which grants right to movies located at
this domain to do anything with the loaded movie.

  Attila

GJvdW> Hi list!
GJvdW> 
GJvdW> I'm a developer on the Floorplanner team (check www.floorplanner.com) 
and I
GJvdW> ran into some crossdomain issues.
GJvdW> 
GJvdW> All the furniture elements are separate swf's which are loaded in one by
GJvdW> one. For the sake of scalability we are thinking about moving all the
GJvdW> furniture swf's to the Amazon S3 service. So I've uploaded all the swf's 
to
GJvdW> Amazon S3 and I made a little test app to see how things worked. To be
GJvdW> short, it didn't. You can load swf's, but no moving, scaling, changing 
color
GJvdW> etc.
GJvdW> 
GJvdW> So I made a new test app using another server of our own:
GJvdW> www.floorplanner.nl (because I've more control over this one). Every
GJvdW> furniture swf has an movieclip with the name "color". When you select a
GJvdW> color in the Floorplanner, the color of this movieclip is changed. My 
test
GJvdW> app checks if it can access that color movieclip. When I run it inside 
the
GJvdW> Flash IDE there is no problem, but run it anywhere else and it will fail.
GJvdW> 
GJvdW> Here is my little test app:
GJvdW> http://www.floorplanner.com/assets/lab/crossdomaintest.swf
GJvdW> http://www.floorplanner.com/assets/lab/crossdomaintest.fla
GJvdW> 
GJvdW> I've set my crossdomain files to allow everything (for now):
GJvdW> http://www.floorplanner.nl/crossdomain.xml
GJvdW> http://www.floorplanner.com/crossdomain.xml
GJvdW> 
GJvdW> Can anybody help me and tell me what I'm doing wrong?
GJvdW> 
GJvdW> Bye!
GJvdW> 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

Reply via email to