i am a beginner, im getting a error 2044 in this code
var req:URLRequest = new URLRequest("*.swf");
var myLoader:Loader = new Loader();
myLoader.load(req);
stage.addChild(myLoader);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, downloadComplete);
myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, stillDownloading);
function downloadComplete(loadEvent:Event) {
trace(“The swf has finsished downloading and should now be playing”);
bg_mc.addChild(myLoader);
}
function stillDownloading(progEvt:ProgressEvent) {
var percent:int = progEvt.bytesLoaded / progEvt.bytesTotal * 100;
trace(percent + “% has downloaded”);
}
stop();
this.loaderInfo.addEventListener(Event.COMPLETE, swfDownloadComplete);
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, swfStillDownloading);
function swfDownloadComplete(loadEvent:Event) {
gotoAndStop(“home”);
}
function swfStillDownloading(prog:ProgressEvent) {
var percent:int = prog.bytesLoaded/prog.bytesTotal*100;
cursor_mc.gotoAndStop(percent);
cursor_mc.preloader_txt.text = percent + “%”;
}
cursor_mc.startDrag(“true”);
Mouse.hide();
and i need help with this part of code, i have a external swf loading into a mc but strangly i have left something else and cnt figure it out,
import fl.transitions.;
import fl.transitions.easing.;
var galleryTween:Tween = new Tween(gallery_mc, “y”, Bounce.easeOut, -2000, 100, 3, true);
var REQ:URLRequest=new URLRequest(gallery_mc.load = “gallery.swf”);
var myImage:Loader = new Loader();
myImage.load(REQ);
myImage.addChild(myImage);
myImage.contentLoaderInfo.addEventListener(Event.COMPLETE, downloadCompleteSWF);
myImage.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, stillDownloadingSWF);
function downloadCompleteSWF(loadEvent:Event ) {
myImage.scaleX*=.5;
myImage.scaleY=.5;
myImage.x=50;
gallery_mc.preloader_txt.visible=false;
gallery_mc.addChild(myImage);
}
function stillDownloadingSWF(prog:ProgressEvent) {
var percent:int=prog.bytesLoaded/prog.bytesTotal*100;
gallery_mc.preloader_txt.text=percent+"%";
}
help would be appreciated thakyou