[Flashcoders] Cross-Scripting a SWF : Problem Passing Objects and Arrays

2007-04-10 Thread John laPlante
I've written a Library SWF and and I load it into a client SWF. In the 
past, I've loaded it off the same server from a sister directory of the 
client SWF. But, I would like to load it from a URL on another machine.  
After some trouble with security, allowDomain(), cross-domain policy 
files, etc, I am able to load and cross script the library SWF.  Now, 
the scripting behaves differently if I load the library SWF off a 
different server.  I'm creating an instance of a class in the library 
SWF and I'm calling methods on that class from the client SWF. If I pass 
strings to those methods, it works fine but when I pass an Object of 
Arrays or an array, the class method thinks the Arrays are undefined.  I 
don't have this problem if I'm loading the library SWF from the same 
machine. It works fine if I load the library SWF from a URL and that URL 
is on the same machine as the client SWF.  Is there some limitation to 
cross-scripting and complex data structures?







___
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] Cross-Scripting a SWF : Problem Passing Objects and Arrays

2007-04-10 Thread John laPlante
I have been able to get around the problem by joining the array before 
passing it and splitting the array in the class method. But, this seems 
like an awkward approach.


John laPlante wrote:
I've written a Library SWF and and I load it into a client SWF. In the 
past, I've loaded it off the same server from a sister directory of 
the client SWF. But, I would like to load it from a URL on another 
machine.  After some trouble with security, allowDomain(), 
cross-domain policy files, etc, I am able to load and cross script the 
library SWF.  Now, the scripting behaves differently if I load the 
library SWF off a different server.  I'm creating an instance of a 
class in the library SWF and I'm calling methods on that class from 
the client SWF. If I pass strings to those methods, it works fine but 
when I pass an Object of Arrays or an array, the class method thinks 
the Arrays are undefined.  I don't have this problem if I'm loading 
the library SWF from the same machine. It works fine if I load the 
library SWF from a URL and that URL is on the same machine as the 
client SWF.  Is there some limitation to cross-scripting and complex 
data structures?







___
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] Cross-Scripting a SWF : Problem Passing Objects and Arrays

2007-04-10 Thread John laPlante
I have been able to get around the problem by joining the array before 
passing it and splitting the array in the class method. But, this seems 
like an awkward approach.



John laPlante wrote:
I've written a Library SWF and and I load it into a client SWF. In the 
past, I've loaded it off the same server from a sister directory of 
the client SWF. But, I would like to load it from a URL on another 
machine.  After some trouble with security, allowDomain(), 
cross-domain policy files, etc, I am able to load and cross script the 
library SWF.  Now, the scripting behaves differently if I load the 
library SWF off a different server.  I'm creating an instance of a 
class in the library SWF and I'm calling methods on that class from 
the client SWF. If I pass strings to those methods, it works fine but 
when I pass an Object of Arrays or an array, the class method thinks 
the Arrays are undefined.  I don't have this problem if I'm loading 
the library SWF from the same machine. It works fine if I load the 
library SWF from a URL and that URL is on the same machine as the 
client SWF.  Is there some limitation to cross-scripting and complex 
data structures?







___
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