[flexcoders] Re: BrowserManager crossdomain issues

2009-12-10 Thread thequakeguy
this is a Javascript security issue with the BrowserManager.  I don't know if 
there is a fix for it.  I am hosting all files on my amazon server except the 
html so all js and swf files are in cloudfront.  I'll post something if I 
figure it out but I have a feeling it's going to be a work-around. 

/Bron

--- In flexcoders@yahoogroups.com, Alberto Brealey-Guzmán 
alberto.brea...@... wrote:

 Hello David,
 
 did you manage to solve this problem? I am trying to fix the exact same thing.
 
 cheers,
 
 Alberto
 
 On Tue, Sep 1, 2009 at 5:17 AM, Alex Harui aha...@... wrote:
 
 
 
  Smells like a JS/Flash security issue and maybe a JS side call will fix 
  it.  I’m not an expert in this area though.
 
 
 
  Alex Harui
 
  Flex SDK Developer
 
  Adobe Systems Inc.
 
  Blog: http://blogs.adobe.com/aharui
 
 
 
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
  Behalf Of david.keutgens
  Sent: Monday, August 31, 2009 7:14 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: BrowserManager crossdomain issues
 
 
 
 
 
  Both domains are https. Yeah, I'll use the debugger but I get the 
  impression that this is a Flash Player security restriction.
 
  -David
 
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
  
   Is one domain https and the other http? Are you calling setTitle in your 
   code? Maybe debug through that to see what is going on.
  
   Alex Harui
   Flex SDK Developer
   Adobe Systems Inc.http://www.adobe.com/
   Blog: http://blogs.adobe.com/aharui
  
   From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
   Behalf Of david.keutgens
   Sent: Monday, August 31, 2009 4:09 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: BrowserManager crossdomain issues
  
  
  
   Hi Alex,
  
   This is a SWF compiled with Flex SDK 3.3 running in Firefox 3.5. The 
   BrowserManager code works fine when the HTML/JavaScript and SWF are 
   hosted in the same domain, only separating them breaks it.
  
   Thanks,
   David
  
   --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
   Alex Harui aharui@ wrote:
   
Which browser? Might be an issue with HistoryFrame.html on IE?
   
Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
   
From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
 On Behalf Of david.keutgens
Sent: Monday, August 31, 2009 5:05 AM
To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] BrowserManager crossdomain issues
   
   
   
Hi All,
   
I'm trying to host the html-template files provided by Flex Builder 
(including all necessary JavaScript) on one domain (www.mydomain.com) 
and the embedded SWF on another (swf.mydomain.com).
   
Now, even though I call Security.allowDomain(*.mydomain.com) in my 
Flex app and allowScriptAccess=always in the embedding html, 
FlashPlayer complains about a SecurityViolation in flashlog.txt. It 
actually happens as soon as I hit the browser's back button.
   
Firebug reports: uncaught exception: Error calling method on NPObject! 
[plugin
exception: Error in Actionscript. Use a try/catch block to find
error.].
The exception gets thrown in the setTitle function in history.js.
   
Crossdomain files don't seem to be the issue, they're set up and 
working fine for other content.
   
I cannot really find any reference of others who tried this before, 
does anyone know if it is actually possible at all to host the history 
related JavaScript in a different domain than the SWF?
   
  
 
  
 
 
 --
 Alberto Brealey-Guzmán
 +44 07590 734124





Re: [flexcoders] Re: BrowserManager crossdomain issues

2009-12-08 Thread Alberto Brealey-Guzmán
Hello David,

did you manage to solve this problem? I am trying to fix the exact same thing.

cheers,

Alberto

On Tue, Sep 1, 2009 at 5:17 AM, Alex Harui aha...@adobe.com wrote:



 Smells like a JS/Flash security issue and maybe a JS side call will fix it.  
 I’m not an expert in this area though.



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc.

 Blog: http://blogs.adobe.com/aharui



 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of david.keutgens
 Sent: Monday, August 31, 2009 7:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: BrowserManager crossdomain issues





 Both domains are https. Yeah, I'll use the debugger but I get the impression 
 that this is a Flash Player security restriction.

 -David

 --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:
 
  Is one domain https and the other http? Are you calling setTitle in your 
  code? Maybe debug through that to see what is going on.
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
  Behalf Of david.keutgens
  Sent: Monday, August 31, 2009 4:09 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: BrowserManager crossdomain issues
 
 
 
  Hi Alex,
 
  This is a SWF compiled with Flex SDK 3.3 running in Firefox 3.5. The 
  BrowserManager code works fine when the HTML/JavaScript and SWF are hosted 
  in the same domain, only separating them breaks it.
 
  Thanks,
  David
 
  --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
  Alex Harui aharui@ wrote:
  
   Which browser? Might be an issue with HistoryFrame.html on IE?
  
   Alex Harui
   Flex SDK Developer
   Adobe Systems Inc.http://www.adobe.com/
   Blog: http://blogs.adobe.com/aharui
  
   From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
   [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] 
   On Behalf Of david.keutgens
   Sent: Monday, August 31, 2009 5:05 AM
   To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] BrowserManager crossdomain issues
  
  
  
   Hi All,
  
   I'm trying to host the html-template files provided by Flex Builder 
   (including all necessary JavaScript) on one domain (www.mydomain.com) 
   and the embedded SWF on another (swf.mydomain.com).
  
   Now, even though I call Security.allowDomain(*.mydomain.com) in my Flex 
   app and allowScriptAccess=always in the embedding html, FlashPlayer 
   complains about a SecurityViolation in flashlog.txt. It actually happens 
   as soon as I hit the browser's back button.
  
   Firebug reports: uncaught exception: Error calling method on NPObject! 
   [plugin
   exception: Error in Actionscript. Use a try/catch block to find
   error.].
   The exception gets thrown in the setTitle function in history.js.
  
   Crossdomain files don't seem to be the issue, they're set up and working 
   fine for other content.
  
   I cannot really find any reference of others who tried this before, does 
   anyone know if it is actually possible at all to host the history related 
   JavaScript in a different domain than the SWF?
  
 

 


--
Alberto Brealey-Guzmán
+44 07590 734124


[flexcoders] Re: BrowserManager crossdomain issues

2009-08-31 Thread david.keutgens
Hi Alex,

This is a SWF compiled with Flex SDK 3.3 running in Firefox 3.5. The 
BrowserManager code works fine when the HTML/JavaScript and SWF are hosted in 
the same domain, only separating them breaks it.

Thanks,
David



--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Which browser?  Might be an issue with HistoryFrame.html on IE?
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of david.keutgens
 Sent: Monday, August 31, 2009 5:05 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] BrowserManager crossdomain issues
 
 
 
 Hi All,
 
 I'm trying to host the html-template files provided by Flex Builder 
 (including all necessary JavaScript) on one domain (www.mydomain.com) and 
 the embedded SWF on another (swf.mydomain.com).
 
 Now, even though I call Security.allowDomain(*.mydomain.com) in my Flex app 
 and allowScriptAccess=always in the embedding html, FlashPlayer complains 
 about a SecurityViolation in flashlog.txt. It actually happens as soon as I 
 hit the browser's back button.
 
 Firebug reports: uncaught exception: Error calling method on NPObject! 
 [plugin
 exception: Error in Actionscript. Use a try/catch block to find
 error.].
 The exception gets thrown in the setTitle function in history.js.
 
 Crossdomain files don't seem to be the issue, they're set up and working fine 
 for other content.
 
 I cannot really find any reference of others who tried this before, does 
 anyone know if it is actually possible at all to host the history related 
 JavaScript in a different domain than the SWF?





RE: [flexcoders] Re: BrowserManager crossdomain issues

2009-08-31 Thread Alex Harui
Is one domain https and the other http?  Are you calling setTitle in your code? 
 Maybe debug through that to see what is going on.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of david.keutgens
Sent: Monday, August 31, 2009 4:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: BrowserManager crossdomain issues



Hi Alex,

This is a SWF compiled with Flex SDK 3.3 running in Firefox 3.5. The 
BrowserManager code works fine when the HTML/JavaScript and SWF are hosted in 
the same domain, only separating them breaks it.

Thanks,
David

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Which browser? Might be an issue with HistoryFrame.html on IE?

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of david.keutgens
 Sent: Monday, August 31, 2009 5:05 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] BrowserManager crossdomain issues



 Hi All,

 I'm trying to host the html-template files provided by Flex Builder 
 (including all necessary JavaScript) on one domain (www.mydomain.com) and 
 the embedded SWF on another (swf.mydomain.com).

 Now, even though I call Security.allowDomain(*.mydomain.com) in my Flex app 
 and allowScriptAccess=always in the embedding html, FlashPlayer complains 
 about a SecurityViolation in flashlog.txt. It actually happens as soon as I 
 hit the browser's back button.

 Firebug reports: uncaught exception: Error calling method on NPObject! 
 [plugin
 exception: Error in Actionscript. Use a try/catch block to find
 error.].
 The exception gets thrown in the setTitle function in history.js.

 Crossdomain files don't seem to be the issue, they're set up and working fine 
 for other content.

 I cannot really find any reference of others who tried this before, does 
 anyone know if it is actually possible at all to host the history related 
 JavaScript in a different domain than the SWF?




[flexcoders] Re: BrowserManager crossdomain issues

2009-08-31 Thread david.keutgens
Both domains are https. Yeah, I'll use the debugger but I get the impression 
that this is a Flash Player security restriction.

-David


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Is one domain https and the other http?  Are you calling setTitle in your 
 code?  Maybe debug through that to see what is going on.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of david.keutgens
 Sent: Monday, August 31, 2009 4:09 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: BrowserManager crossdomain issues
 
 
 
 Hi Alex,
 
 This is a SWF compiled with Flex SDK 3.3 running in Firefox 3.5. The 
 BrowserManager code works fine when the HTML/JavaScript and SWF are hosted in 
 the same domain, only separating them breaks it.
 
 Thanks,
 David
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
 Harui aharui@ wrote:
 
  Which browser? Might be an issue with HistoryFrame.html on IE?
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
  Behalf Of david.keutgens
  Sent: Monday, August 31, 2009 5:05 AM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] BrowserManager crossdomain issues
 
 
 
  Hi All,
 
  I'm trying to host the html-template files provided by Flex Builder 
  (including all necessary JavaScript) on one domain (www.mydomain.com) and 
  the embedded SWF on another (swf.mydomain.com).
 
  Now, even though I call Security.allowDomain(*.mydomain.com) in my Flex 
  app and allowScriptAccess=always in the embedding html, FlashPlayer 
  complains about a SecurityViolation in flashlog.txt. It actually happens as 
  soon as I hit the browser's back button.
 
  Firebug reports: uncaught exception: Error calling method on NPObject! 
  [plugin
  exception: Error in Actionscript. Use a try/catch block to find
  error.].
  The exception gets thrown in the setTitle function in history.js.
 
  Crossdomain files don't seem to be the issue, they're set up and working 
  fine for other content.
 
  I cannot really find any reference of others who tried this before, does 
  anyone know if it is actually possible at all to host the history related 
  JavaScript in a different domain than the SWF?
 





RE: [flexcoders] Re: BrowserManager crossdomain issues

2009-08-31 Thread Alex Harui
Smells like a JS/Flash security issue and maybe a JS side call will fix it.  
I'm not an expert in this area though.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of david.keutgens
Sent: Monday, August 31, 2009 7:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: BrowserManager crossdomain issues



Both domains are https. Yeah, I'll use the debugger but I get the impression 
that this is a Flash Player security restriction.

-David

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Is one domain https and the other http? Are you calling setTitle in your 
 code? Maybe debug through that to see what is going on.

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of david.keutgens
 Sent: Monday, August 31, 2009 4:09 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: BrowserManager crossdomain issues



 Hi Alex,

 This is a SWF compiled with Flex SDK 3.3 running in Firefox 3.5. The 
 BrowserManager code works fine when the HTML/JavaScript and SWF are hosted in 
 the same domain, only separating them breaks it.

 Thanks,
 David

 --- In 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
  Alex Harui aharui@ wrote:
 
  Which browser? Might be an issue with HistoryFrame.html on IE?
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
   On Behalf Of david.keutgens
  Sent: Monday, August 31, 2009 5:05 AM
  To: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] BrowserManager crossdomain issues
 
 
 
  Hi All,
 
  I'm trying to host the html-template files provided by Flex Builder 
  (including all necessary JavaScript) on one domain (www.mydomain.com) and 
  the embedded SWF on another (swf.mydomain.com).
 
  Now, even though I call Security.allowDomain(*.mydomain.com) in my Flex 
  app and allowScriptAccess=always in the embedding html, FlashPlayer 
  complains about a SecurityViolation in flashlog.txt. It actually happens as 
  soon as I hit the browser's back button.
 
  Firebug reports: uncaught exception: Error calling method on NPObject! 
  [plugin
  exception: Error in Actionscript. Use a try/catch block to find
  error.].
  The exception gets thrown in the setTitle function in history.js.
 
  Crossdomain files don't seem to be the issue, they're set up and working 
  fine for other content.
 
  I cannot really find any reference of others who tried this before, does 
  anyone know if it is actually possible at all to host the history related 
  JavaScript in a different domain than the SWF?