# attachMovie init Functions

**URL:** <https://forum.kirupa.com/t/attachmovie-init-functions/248151>\
**Category:** flash\
**Created:** [January 4, 2008, 12:52pm UTC](https://forum.kirupa.com/t/attachmovie-init-functions/248151 "2008-01-04T12:52:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [January 4, 2008, 12:52pm UTC](https://forum.kirupa.com/t/attachmovie-init-functions/248151/1 "2008-01-04T12:52:16Z")

</div>

hello,

I would like to know if it is possible to initialise a movie attachment with a function …

Thus:

```auto

function myFunction(){
this._alpha = 0;
}

this.attachMovie("new","new_mc",1,{myFunction});

```

I know that I could put \_alpha:0 into the INIT value (But in reality I have something a little more complicated up my sleeve)

Any ideas would be great 😏
