Well using all the very helpfull advice and help given, I seemed to ride my AS of all errors but I have a new problem, for some reason my external swf is not visible… I used a progress handler and it shows in my output that it is loaded from 0- 100% but it shows only a blank screen.
I would really appreciate any advice on how i can fix this… thanks
my AS loading my external is this
stop();
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.ProgressEvent;
function startLoad()
{
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("Quiz.swf");
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.load(mRequest);
}
function onCompleteHandler(loadEvent:Event)
{
addChild(loadEvent.currentTarget.content);
}
function onProgressHandler(mProgress:ProgressEvent)
{
var percent:Number = int(mProgress.bytesLoaded/mProgress.bytesTotal*100);
trace(percent);
}
startLoad();