# Sending variables between classes

**URL:** https://forum.kirupa.com/t/sending-variables-between-classes/233290
**Category:** flash
**Created:** [July 22, 2007, 1:44pm UTC](https://forum.kirupa.com/t/sending-variables-between-classes/233290 "2007-07-22T13:44:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wanda](https://avatars.discourse-cdn.com/v4/letter/w/e495f1/32.png) [@wanda](https://forum.kirupa.com/u/wanda)
#### Post date: [July 22, 2007, 1:44pm UTC](https://forum.kirupa.com/t/sending-variables-between-classes/233290/1 "2007-07-22T13:44:47Z")

</div>

Hi guys

I have two classes. A main class called core.as and a bg.as class which loads a background.

I want to send the loaded percent from bg.as to core.as

```auto
private function progressHandler(event:ProgressEvent):void { 
         
                        var percent:Number = Math.round((event.bytesLoaded / event.bytesTotal )*100 ); 
                         
                }

```

This is my progressHandler where i get the percent loaded and stores it in the variable called “percent” - How do i get this out to my core.as file?
