cheerq / flexlib

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

Simply including flexlib 1.8 introduces dependancy on mxCharts #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by tomjorda...@gmail.com on 22 Jun 2007 at 6:51

GoogleCodeExporter commented 8 years ago
This would not be a problem for users with the charting package.

Original comment by tomjorda...@gmail.com on 22 Jun 2007 at 6:54

GoogleCodeExporter commented 8 years ago
we'll have to figure out what to do about components that require the charting 
package...

Original comment by dmcc...@gmail.com on 30 Jun 2007 at 11:21

GoogleCodeExporter commented 8 years ago
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_automati
on\projects\datavisualisation\src\mx\charts\chartClasses\ChartLabel.as:261]
    at
mx.core::UIComponent/validateDisplayList()[E:\dev\flex_3_beta2\sdk\frameworks\pr
ojects\framework\src\mx\core\UIComponent.as:6096]
    at
mx.managers::LayoutManager/validateDisplayList()[E:\dev\flex_3_beta2\sdk\framewo
rks\projects\framework\src\mx\managers\LayoutManager.as:600]
    at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex_3_beta2\sdk\frame
works\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\p
rojects\framework\src\mx\core\UIComponent.as:8338]
    at
mx.core::UIComponent/callLaterDispatcher()[E:\dev\flex_3_beta2\sdk\frameworks\pr
ojects\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.

Original comment by martypit...@gtempaccount.com on 26 Oct 2007 at 1:40

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 26 Dec 2007 at 7:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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.)

Original comment by amirsgar...@gmail.com on 8 Feb 2008 at 12:47

GoogleCodeExporter commented 8 years ago
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.

Original comment by mree...@gmail.com on 22 May 2008 at 10:56

GoogleCodeExporter commented 8 years ago
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?

Original comment by rituraj....@gmail.com on 10 Jul 2008 at 1:15

GoogleCodeExporter commented 8 years ago
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.

Original comment by myspi...@gmail.com on 21 Oct 2008 at 8:01

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

Original comment by buggyVel...@gmail.com on 17 Nov 2008 at 3:10

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

Original comment by buggyVel...@gmail.com on 17 Nov 2008 at 3:44

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

Original comment by lorenjer...@gmail.com on 17 Dec 2008 at 6:09

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

* Copied flexlib.swc to sdks/3.3.0/frameworks/libs
* Exited sdks/3.3.0/frameworks/flex-config.xml to add the following:
      <!-- List of SWC files or directories to compile against but to omit from -->
      <!-- linking.                                                             -->
      <external-library-path>
          <path-element>libs/player/{targetPlayerMajorVersion}/playerglobal.swc</path-element>
          <!-- Raj Change -->
          <path-element>libs/flexlib.swc</path-element>
          <!-- End Raj change -->
      </external-library-path>

* Modified my ant build script to not include flexlib.swc

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

Original comment by rituraj....@gmail.com on 22 Aug 2009 at 12:42

GoogleCodeExporter commented 8 years ago
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 :-). 

Original comment by Dennis.V...@gmail.com on 1 Nov 2009 at 6:04