Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 4.0 (Release)
-
None
-
None
-
Affected OS(s): Mac
Affected OS(s): Mac OS 10.6
Browser: Firefox 3.x
Language Found: English
Description
Steps to reproduce:
1.Create two CSS files with the same name in two separate folders (folder1/myStyles.css, folder2/myStyles.css)
2.Create style declarations in both files
3.Compile these CSS files to CSS-based SWF files
4.Load one of the CSS-based SWF files - styleManager.loadStyleDeclarations("folder1/myStyles.swf");
5.Load the other CSS-based SWF file - styleManager.loadStyleDeclarations("folder2/myStyles.swf");
Actual Results:
Styles in the second CSS-based SWF file that is loaded are not applied to styleManager. Test using StyleManager.getStyleDeclaration and CSSStyleDeclaration.getStyle.
Expected Results:
Second CSS-based SWF file that is loaded should add/override styles.
Workaround (if any):
Use two separate names for the CSS files.
CSS-based SWFs appear to be going through modules such that the second file that is loaded appears to have already been defined (similar to multiple Class definitions loaded into same ApplicationDomain)
Note: The filenames of the CSS-based SWF files are not important. The problem is based on the names of the source CSS files used to create the CSS-based SWF files.
For example, "myStyles.swf" and "myStyles.swf" work properly so long as the CSS filenames were different.