# Calling parent variable

**URL:** <https://forum.kirupa.com/t/calling-parent-variable/321211>\
**Category:** flash\
**Created:** [April 13, 2011, 2:20pm UTC](https://forum.kirupa.com/t/calling-parent-variable/321211 "2011-04-13T14:20:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugot](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@hugot](https://forum.kirupa.com/u/hugot)\
**Post date:** [April 13, 2011, 2:20pm UTC](https://forum.kirupa.com/t/calling-parent-variable/321211/1 "2011-04-13T14:20:31Z")

</div>

Hi:

In my main timeline I have a variable “tipos = 5” for example.

I want to call a movieclip named movie2 using the “addChild”. The movie loads without a problem.

My problem is that in my “movie2” I have to access my variable "tipos ", but I can’t access it…

The code “trace(tipos)” on my “movie2” returns an error.

In AS2 this was easy, I’m new to AS3…

Thanks!
