col: 4 Error:Access of undefined property bb_input

Monkey Forums/Monkey Programming/col: 4 Error:Access of undefined property bb_input

Amon(Posted 2011) [#1]
For building to flash, never tried before, I get this error with just the basic template code, i.e. the minimum a monkey app can be as per the tutorial.

[codeboc]
MonkeyGame.as(1124): col: 4 Error: Access of undefined property bb_input_device.

bb_input_device.keyStates[i]=0;

ERROR:
TRANS Failed to execute 'mxmlc -static-link-runtime-shared-libraries=true MonkeyGame.as', return code=1
Error in compilation!
[/codebox]

Any ideas as how to fix. I'm using flex_sdk_4.1.0.16076


therevills(Posted 2011) [#2]
Have you tried deleting your build folder and compiling again?

It looks like you have just updated to v37 to me...


GW_(Posted 2011) [#3]
and you've properly modified the config file?


Amon(Posted 2011) [#4]
Hi! Sorry for the late reply. I have tried to make sure everything is installed properly. Maybe it's my file path structure. Here is my config file.




Loofadawg(Posted 2011) [#5]
FLEX_PATH="${SYSTEMDRIVE}\XPlatformDev\flex_sdk_4.1.0.16076"


I think your FLEX_PATH is still needs some work.

${SYSTEMDRIVE} <-Possible culprit.

Looking at the rest of the config, it should probably be this

FLEX_PATH="C:\xplatformdev\flex_sdk_4.1.0.16076"



Hope that helps.


Amon(Posted 2011) [#6]
Hi! It turns out that the cause of this is monkeyPro37 as when I go back to MonkeyPro36 it works perfectly using the same config file. So I definitely know now that there is a bug in 37 that is causing it to fail.

Can anybody else confirm if 37 gives them the same issues and if going back to 36 fixes it?


therevills(Posted 2011) [#7]
Are you using Diddy? If so you need to get the latest files from the source...


Samah(Posted 2011) [#8]
Are you using Diddy? If so you need to get the latest files from the source...

What he said. Mark removed those underscores in v37, and an older version of Diddy references it. If you're using Diddy, make sure you get the latest version of that too.


Amon(Posted 2011) [#9]
Thanks guys, that solved it. :)