# Accessing package variables in the movie

**URL:** <https://forum.kirupa.com/t/accessing-package-variables-in-the-movie/329139>\
**Category:** flash\
**Created:** [July 25, 2012, 6:13am UTC](https://forum.kirupa.com/t/accessing-package-variables-in-the-movie/329139 "2012-07-25T06:13:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sterna](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@sterna](https://forum.kirupa.com/u/sterna)\
**Post date:** [July 25, 2012, 6:13am UTC](https://forum.kirupa.com/t/accessing-package-variables-in-the-movie/329139/1 "2012-07-25T06:13:08Z")

</div>

I have a package name se2u in file soeasy2use.as in folder soeasy2use. How can I access the variables in package?

Package:

```auto

package se2u
{
    import flash.display.Sprite;
	import flash.events.Event;

    public class Movie extends Sprite
    {
        // constructor
        public function movieParams()
        {
            super();
            addEventListener( Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true );
        }

        public function onAddedToStage( event:Event ):void
        {
            removeEventListener( Event.ADDED_TO_STAGE, onAddedToStage );

            var paramList:Object = LoaderInfo( this.root.loaderInfo ).parameters;
            public var movieWidth:int = paramList["width"];
	    public var movieHeight:int = paramList["height"];
	    trace(movieWidth);
		}
    }
}

```

Movie:

```auto

import soeasy2use.soeasy2use;
.
.
.
//
// Variables from package
//
	movieWidth = se2u.Movie.movieWidth;
	movieHeight = Movie.movieHeight;

```

I have tried all kinds of variations but nothing works.
