# Passing variables - Movie clip & Accordion component

**URL:** <https://forum.kirupa.com/t/passing-variables-movie-clip-accordion-component/307476>\
**Category:** flash\
**Created:** [April 4, 2010, 6:57am UTC](https://forum.kirupa.com/t/passing-variables-movie-clip-accordion-component/307476 "2010-04-04T06:57:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![merinv](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@merinv](https://forum.kirupa.com/u/merinv)\
**Post date:** [April 4, 2010, 6:57am UTC](https://forum.kirupa.com/t/passing-variables-movie-clip-accordion-component/307476/1 "2010-04-04T06:57:01Z")

</div>

I am new to actionscript and flash developing.  
I am trying to build a Calculator used in health circles to project next year’s profit and loss etc. I am using flash cs3 and actionscript2.

My flash project is based on accordion component with 6 child panes, each pane having a movie clip with input text, dynamic text etc.  
I have a couple of push buttons that has click eventhandlers taking care of calculations . All the calculative functions are in the actions layer frame 1.  
I need help in displaying the same calculated fields as dynamic text in a new movie clip in another layer before printing the same movie clip.  
The present situation is like this, I am able to calculate all the fields, but when i click a button to show a new movie clip with all the calculated fields, all the variables are displayed as “undefined”.  
the dynamic variables in the new movieclip is referenced correctly i guess, i use **pp\_acvcfy = myacc.overheads.acv\_cfy** ; where **myacc** is the accordion component, **overhead** the child pane and **acv\_cfy** the dynamic text inside the pane ‘overhead’. **pp\_acvcfy** is the dynamic text in the new movie clip. Please help :puzzled:
