RE: [Flashcoders] Crossdomain problems

2007-05-30 Thread Tom Gooding
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: 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


Re: [Flashcoders] Crossdomain problems

2007-05-30 Thread Gert-Jan van der Wel

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: 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





--
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


RE: [Flashcoders] Crossdomain problems

2007-05-30 Thread Tom Gooding
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


RE: [Flashcoders] Crossdomain problems

2007-05-30 Thread Daniel Portilla Heras
Hi Gert, two things about your crossdomain.xml, if you put secure=true you 
gives access to files from another httpS://www.mydomain.com but NO from 
http://www.mydomain.com (If I'm not confused). 

And the other thing it's that I didn´t be able to give access to a localhost 
domain, I had to put my files in a test server (with a internet's domain)

I hope it solve your problem.

Bye

Daniel Portilla Heras
Dpto. Desarrollo
Virtual Training
TELECOR
Tlfno: 915970193 Ext. 5864 (corp: 315 5864)
[EMAIL PROTECTED]

 

-Mensaje original-
De: Gert-Jan van der Wel [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 30 de mayo de 2007 16:51
Para: flashcoders@chattyfig.figleaf.com
Asunto: [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


Re: [Flashcoders] Crossdomain problems

2007-05-30 Thread R�kos Attila

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