# Why isn't this working? Creating a dynamic movieclip using ActionScript

**URL:** <https://forum.kirupa.com/t/why-isnt-this-working-creating-a-dynamic-movieclip-using-actionscript/233830>\
**Category:** flash\
**Created:** [July 27, 2007, 10:33am UTC](https://forum.kirupa.com/t/why-isnt-this-working-creating-a-dynamic-movieclip-using-actionscript/233830 "2007-07-27T10:33:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zomis](https://avatars.discourse-cdn.com/v4/letter/z/e56c9b/32.png) [@Zomis](https://forum.kirupa.com/u/Zomis)\
**Post date:** [July 27, 2007, 10:33am UTC](https://forum.kirupa.com/t/why-isnt-this-working-creating-a-dynamic-movieclip-using-actionscript/233830/1 "2007-07-27T10:33:20Z")

</div>

When I click the button, I want the “sand” movieclip to be created at position (200, 100). But when I launch the project I get an error:

The class or interface ‘sand’ could not be loaded.

However, even though I get thise error, the ‘sand’ movie clip which is placed on the application during design time does show up.

And when I click the button I trace the x position of the new movieclip and all I get is “undefined”.

Help please…?
