Problem Description
Accessing an object instance variable through index id in same event (and sub-events) gives js error.
Uncaught TypeError: Cannot read property 'instance_vars' of undefined expressions.js:474
Attach a Capx
dl.dropboxusercontent.com/u/16940759/instance%20variable%20access.capx
Description of Capx
It creates a sprite setting an instance variable to somevalue and saving the current IID.
Then it tries to access this value in the same event (disabled) and again outside the event (to show that it works) and dumps it in a text object.
Steps to Reproduce Bug
- Open capx
- Enable last action of first event.
- Preview.
Observed Result
Javascript error
Expected Result
No error and text object shows the value.
Affected Browsers
- Chrome: YES
- FireFox: YES
- Internet Explorer: IDK
Operating System and Service Pack
WIn7 64bit SP1
Construct 2 Version ID
r209