Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Without code or an understanding of some of your settings, here is what I assume your class looks like: </p> <pre><code>package { import flash.display.MovieClip; public class Level extends MovieClip { public var gridView:GridView; public function Level() { gridView.x = 100; } } } </code></pre> <p>This is assuming that <code>gridView</code> is a <code>GridView</code> but it could be anything, really.</p> <p>What may be happening is that you don't have the instance of your <code>gridView</code> instance named properly within the Flash IDE. You may want to check this.</p> <p>Another possibility is that you may be caught up in that gentle ballet of having 'Strict Mode' turned on while also having 'Automatically declare stage instances' also turned off. You can find these checkboxes by going to Publish Settings -> the Flash tab -> clicking on the button that says Settings to the right of the Script dropdown.</p> <p>What this means is that you'll have to do a bit more work in your class with the auto-declare turned off. </p> <p>For a bit of info about what you can and cannot do in Strict Mode take a look at this Stack Overflow question: <a href="https://stackoverflow.com/questions/907648/summary-of-actionscript-3-strict-mode">Summary of ActionScript 3 strict mode</a></p> <p>For a bit on the stage instances, there was this Stack Overflow question: <a href="https://stackoverflow.com/questions/1734169/flash-as3-referenceerror-error-1056-cannot-create-property">Flash AS3: ReferenceError: Error #1056: Cannot create property </a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload