# Passing variables from classes to swfs

**URL:** <https://forum.kirupa.com/t/passing-variables-from-classes-to-swfs/257454>\
**Category:** flash\
**Created:** [April 14, 2008, 2:15pm UTC](https://forum.kirupa.com/t/passing-variables-from-classes-to-swfs/257454 "2008-04-14T14:15:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thatguythatsme](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@thatguythatsme](https://forum.kirupa.com/u/thatguythatsme)\
**Post date:** [April 14, 2008, 2:15pm UTC](https://forum.kirupa.com/t/passing-variables-from-classes-to-swfs/257454/1 "2008-04-14T14:15:26Z")

</div>

Hello all,

I’m having trouble passing variables from an class which is loading this data from an xml file to a swf that this class is also loading.

I want the swf file to use the some of the data contained in the main class.

At the moment I can’ seem to see a way of doing this, I haven’t used AS3 or Flash in a few months either which isn’t helping.

I’m able to load the swf fine from the xml but I still haven’t figured out how to compile the swf file without getting errors because the variables it needs are in the class…

Any help with a show in the right direction would be great.

Dave
