# Dynamic Movie Variable

**URL:** <https://forum.kirupa.com/t/dynamic-movie-variable/258083>\
**Category:** flash\
**Created:** [April 20, 2008, 7:03pm UTC](https://forum.kirupa.com/t/dynamic-movie-variable/258083 "2008-04-20T19:03:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eanimator](https://avatars.discourse-cdn.com/v4/letter/e/7cd45c/32.png) [@eanimator](https://forum.kirupa.com/u/eanimator)\
**Post date:** [April 20, 2008, 7:03pm UTC](https://forum.kirupa.com/t/dynamic-movie-variable/258083/1 "2008-04-20T19:03:29Z")

</div>

Hello guys,

I am very much new to this forum.  
This forum has helped me a lot in learning Flash AS 3.0.

* * *

## AS 2.0 Code

subitem.id = 2; //dynamic movie clip variable  
subitem.onRelease = function (){ // throw away function  
trace(this.id); // 2  
}

I want to do this using AS 3.0. Facing problems.

Please help.

Thanks in advance.
