On 11/28/16, 1:27 AM, "doug777" <[email protected]> wrote:

>It's so odd.
>
>This line in ViewListingsDataGridSkin -
>
>super.updateDisplayList(unscaledWidth, unscaledHeight);
>
>has the warning : Call to a possibly undefined method updateDisplayList
>
>How is that possible???

Don't know.  Are you getting this error from an IDE or a build script?
Flash Builder sometimes has its compiler cache go funky, and a cleaning
the project and/or restarting Flash Builder clears those errors.  Also,
you could use the debugger to step into the super.updateDisplayList call
to make sure no exception gets thrown at that point.


>
>I've done something to this project that has caused this fault - I was
>just
>looking for some clue as to where the fault might lie. The fault is passed
>onto the compiled Release Build as well.
>
>In the particular trace posted before, the error is caused by columnIndex
>=
>-1 as test case FLEX-35028. But the columns array in the DataGrid
>component
>are all set up correctly. And everything works correctly if I use the
>default DataGrid skin.
>

>only a blank header row and a blank first row with the correct
>background colour show up :
>
>
>

This makes me think some sort of exception is being thrown and caught
somewhere.  If the skin is funky, even though your columns array is good,
the internal column width arrays may have bad values and then the
columnIndex calculation will end up as -1.

The next thing to try is to run swfdump on the swf.  Swfdump is in the bin
folder of any Flex SDK.  Run it as:

  swfdump -abc foo.swf >foo.txt

Foo.txt will be a huge file.  Search for your skin class name in the file.
 It will show up several times, but one line should start with "newclass"
as in:

   newclass     :ViewListingsDataGridSkin


This line should be in an init() function and the surrounding code should
show you the class hierarchy that the compiler actually output.  Then
chasing down that base class should show you the source-path for that base
class and sometimes provides a clue that you are accidentally picking up a
base class from somewhere unexpected.

HTH,
-Alex
  

Reply via email to