serg-srri-umass / TP-data-games

Middle School/Statistics oriented data games for the Data Games Project
http://srri.umass.edu/datagames
4 stars 5 forks source link

Chainsaw [flash]: game does not start correctly, logs piled up. #32

Closed cdmiller closed 11 years ago

cdmiller commented 11 years ago

Chainsaw flash game does not always start correctly. What you see is all of the logs overlapping where the 1st (top) log should be. This happens every 50 games or so according to Cliff.

The workaround is to reload the game, usually it then works correctly.

cdmiller commented 11 years ago

Here is error message you get with Flash Debug version of flash player, when running Chainsaw in DG. Probably we need to just add some careful error checking of uninitialized values -- something is being referenced before being initialized? previewscreensnapz001

cdmiller commented 11 years ago

How can we get this bug to trigger most of the time?

cdmiller commented 11 years ago

Probably we need to call randomizeLogSizePostion() at a later time, not in startup. See this page: http://stackoverflow.com/questions/8456282/flash-typeerror-error-1009-cannot-access-a-property-or-method-of-a-null-objec Which waits for Event.ADDED_TO_STAGE before an init. or http://www.kirupa.com/forum/showthread.php?305555-How-to-solve-TypeError-Error-1009 and similar pages when you search for 'actionscript TypeError #1009'

MikeSalyh commented 11 years ago

Preloader seems to have solved this issue; please close.