wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

Lots of warnings on Flex 4.1 and compilation errors on 4.5 #356

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set the SDK to 4.5 (Hero)
2. Compile an app that uses flexlib
3.

What is the expected output? What do you see instead?
expected: clean compilation (ideally without deprecation warnings)
seen: had to comment out a couple of lines to make it compile in 4.5

What version of the product are you using? On what operating system?
revision 244

Please provide any additional information below.

Original issue reported on code.google.com by dan.dime...@gmail.com on 22 Apr 2011 at 8:37

GoogleCodeExporter commented 8 years ago
I got it to compile with flex sdk 4.5 (flex_sdk_4.5.0.20967).

1. Adjust the build.{unix, mac,windows}.properties to point to the flex 4.5 sdk 
and set the flex.version4 to true and flex.version3 to false.
  In build.xml I had to add the line
<arg line="-external-library-path ${flexsdk.dir}/frameworks/libs/charts.swc" />

2. Application.application should be renamed to 
FlexGLobals.topLevelApplication.application and 
StyleManager to FlexGLobals.topLevelApplication.

This should take care of the warnings.

3. There are two uses of deprecated methods (chart.locatToData(...), 
chart.dataToLocal(...)) in src/flexlib/charts/HorizontalAxisDataSelector.as

which should be changed to dataValues.localToData and 
dataValues.dataToLocal respectively.

This should take care of the errors.

Original comment by gena...@googlemail.com on 28 Jul 2011 at 9:03