cs7258 / mad-components

Automatically exported from code.google.com/p/mad-components
0 stars 0 forks source link

stage3Dacceleration.LongListScrolling causes bug with Flash Builder simulator #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run SLIDE_OUT_NAVIGATION example with Stage 3D (use Context3D)
2. customized renderer of the DIVIDED_LIST in that example
3. Using Flash Builder 4.6, Flex SDK 4.6, AIR 3.7

Run in simulator and there is an error :

RangeError: Error #1125: The index 2 is out of range 2.
    at com.danielfreeman.stage3Dacceleration::LongListScrolling/drawLists()[com\danielfreeman\stage3Dacceleration\LongListScrolling.as:637]

and the source code of that line is :

_context3D.setTextureAt(0, _listRowTextures[listRecord.textureIndex][j]);

But running in Device is fine.

Thank you Dan, but how to fix it ?

Original issue reported on code.google.com by vinaj...@gmail.com on 30 Sep 2013 at 1:17

GoogleCodeExporter commented 9 years ago

The problem is that when an index of the Stage3D is deleted from the list of 
indices plumb the stage in what you are trying to use the index generating the 
error.

Hope that helps!

Original comment by defensor...@gmail.com on 26 Feb 2014 at 3:04