flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
204 stars 91 forks source link

Simply including flexlib 1.8 introduces dependancy on mxCharts #35

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by tomjorda...@gmail.com on 2007-06-22T18:51:54

What steps will reproduce the problem?

  1. Add includeLibraries to reference flexlib 1.8
  2. Compile any file. It does not need to reference a flexlib component.
  3. Run it

What is the expected output? What do you see instead? VerifyError: Error #1014: Class mx.charts.chartClasses::ChartElement could not be found. at flash.display::MovieClip/nextFrame() at mx.managers::SystemManager/::deferredNextFrame() at mx.managers::SystemManager/::preloader_initProgressHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFu nction() at flash.events::EventDispatcher/dispatchEvent() at mx.preloaders::Preloader/::timerHandler() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick()

What version of the product are you using? On what operating system? Windows XP. Problem does not exist with flexlib 1.7

Please provide any additional information below.

nicoulaj commented 13 years ago

Updated by tomjorda...@gmail.com on 2007-06-22T18:54:34

This would not be a problem for users with the charting package.

nicoulaj commented 13 years ago

Updated by dmcc...@gmail.com on 2007-06-30T11:21:38

we'll have to figure out what to do about components that require the charting package...

Removed label Type-Defect Added label Type-Other Added label HorizontalAxisDataSelector

nicoulaj commented 13 years ago

Updated by martyp...@mango-factory.com on 2007-10-26T01:40:36

I think that this becomes a breaking issue with Flex 3 M3.

I just compiled an existing project using Flex 3 M3, and received the following error:

TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::ChartLabel/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\ChartLabel.as:261] at mx.core::UIComponent/validateDisplayList()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:6096] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8338] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8281]

(No reference to a line of my code).

I'll try and recreate in a somewhat smaller project.

nicoulaj commented 13 years ago

Updated by dmcc...@gmail.com on 2007-12-26T19:29:32

Removed label HorizontalAxisDataSelector Added label FlexLib-HorizontalAxisDataSelector

nicoulaj commented 13 years ago

Updated by amirsgar...@gmail.com on 2008-02-08T00:47:12

did you guys ever find a solution to this error? i just got it and have no idea why. when i build the culprit applet on a machine with flex it runs great, but when i build the applet on a machine w/o flex it chokes at runtime, throwing this error (the one at the top.)

nicoulaj commented 13 years ago

Updated by mree...@gmail.com on 2008-05-22T10:56:50

If you are compiling from command line, then open your flex-config.xml. Check for external-library-path and copy "flexlib.swc" in that location (probably under libs folder). Then compile and run (don't pass external-library-path as argument outside). It will solve the problem.

nicoulaj commented 13 years ago

Updated by rituraj....@gmail.com on 2008-07-10T01:15:29

I am using mxmlc ant task to compile. I followed the advise above and now I see this error: VerifyError: Error #1014: Class flexlib.containers::SuperTabNavigator could not be found.

Any fixes for this?

nicoulaj commented 13 years ago

Updated by myspi...@gmail.com on 2008-10-21T20:01:39

Id like to resurface this issue as it occurs anytime you attempt to use the .swc as an RSL. Verification error happens on opening load.

nicoulaj commented 13 years ago

Updated by buggyVel...@gmail.com on 2008-11-17T15:10:10

Thank you, mreenal. Your fix worked for me. (though I am not trying to use it as an RSL).

nicoulaj commented 13 years ago

Updated by buggyVel...@gmail.com on 2008-11-17T15:44:55

Thank you, mreenal. Your fix worked for me. (though I am not trying to use it as an RSL).

nicoulaj commented 13 years ago

Updated by lorenjer...@gmail.com on 2008-12-17T18:09:05

I have this problem regardless of whether or not flexlib is being used as an RSL.
Haven't tried the proposed fix yet.

nicoulaj commented 13 years ago

Updated by rituraj....@gmail.com on 2009-08-22T00:42:18

Mreenal, Maybe I am the odd one out here, but this still does not work for me. Here is what I did:

I now get an error finding flexlib classes. This figures because although my project is now compiled against flexlib, the flexlib binaries are not included with it. I am a little surprised these instructions worked for anyone.

-Raj

nicoulaj commented 13 years ago

Updated by Dennis.V...@gmail.com on 2009-11-01T18:04:06

If anyone wants to know how to fix this, it only took me 4 hours to figure this one out :-). You need to build your project with a flex builder version of the sdk not the free open source version. This contains the libraries necessary to link properly during the compilation. This is required even if you are not using the professional features, my guess is the flexlib charts are the only ones requiring this part of the SDK. Would be nice to have a non chart version of the lib, of course I am sure I could get the code from svn and do it myself :-).