# Flash help asap

**URL:** <https://forum.kirupa.com/t/flash-help-asap/310261>\
**Category:** Uncategorized\
**Created:** [June 6, 2010, 3:49am UTC](https://forum.kirupa.com/t/flash-help-asap/310261 "2010-06-06T03:49:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aivlis4](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@aivlis4](https://forum.kirupa.com/u/aivlis4)\
**Post date:** [June 6, 2010, 3:49am UTC](https://forum.kirupa.com/t/flash-help-asap/310261/1 "2010-06-06T03:49:02Z")

</div>

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
