Skip navigation
premkant81
Currently Being Moderated

How to load compiled style (style.swf) from other server.

Mar 5, 2012 6:10 AM

Tags: #http_style

Hi,

      I have to load compiled css (swf) inside an application, when I load it  like;

 

1.  styleManager.loadStyleDeclarations('/demo/test.swf')  -   Works

 

2. styleManager.loadStyleDeclarations('http://ec202.classicinformatics.com/demo/test.swf')  -  Not Works

    [not a loadable content]

 

      What I need it I have a server for storing all styles, themes etc that I want to use for all application on any server.

 

Thanks,

Premkant

 
Replies
  • Currently Being Moderated
    Mar 5, 2012 6:38 AM   in reply to premkant81

    Possibly it is a crossdomain.xml issue?  Meaning there is security keeping swf files from being access between two domains.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 5, 2012 8:35 AM   in reply to Anonymous2008

    And you need to set the securityDomain parameter on loadStyleDeclarations.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 5, 2012 11:27 PM   in reply to premkant81

    Did you set the securityDomain parameter in loadStyleDeclarations?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 6, 2012 8:36 AM   in reply to premkant81

    That looks right.  Does http://e202.classicinformatics.com/crossdomain.xml permit the domain you are running from?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 6, 2012 10:39 PM   in reply to premkant81

    Sounds like the SWF is not being built correctly.  I would try to find out why ModuleBase is not in the SWF.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 9:01 AM   in reply to premkant81

    What matters is the pair of URLs for the app and the module.  What app/module pairs work and don’t work?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points