[r209]Error accessing instance variable

Bugs will be moved here once resolved.

Post » Sun Jul 05, 2015 10:44 pm

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
B
9
S
2
Posts: 19
Reputation: 660

Post » Wed Jul 15, 2015 11:23 am

Thanks, should be fixed in the next beta.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,464


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest