I have a package name se2u in file soeasy2use.as in folder soeasy2use. How can I access the variables in package?
Package:
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:
import soeasy2use.soeasy2use;
.
.
.
//
// Variables from package
//
movieWidth = se2u.Movie.movieWidth;
movieHeight = Movie.movieHeight;
I have tried all kinds of variations but nothing works.