# Help! Urgent! UILoader

**URL:** <https://forum.kirupa.com/t/help-urgent-uiloader/316172>\
**Category:** flash\
**Created:** [November 15, 2010, 9:01am UTC](https://forum.kirupa.com/t/help-urgent-uiloader/316172 "2010-11-15T09:01:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoveTheresa](https://avatars.discourse-cdn.com/v4/letter/l/aeb1de/32.png) [@LoveTheresa](https://forum.kirupa.com/u/LoveTheresa)\
**Post date:** [November 15, 2010, 9:01am UTC](https://forum.kirupa.com/t/help-urgent-uiloader/316172/1 "2010-11-15T09:01:51Z")

</div>

do anyone know how to load in an UIloader purely with action script withoud dragging it onto the stage?

I have try the following code but it just can not work

import fl.containers.UILoader

var bg:UILoader = new UILoader();  
bg.source = “Element/front page.jpg”  
addChild (bg);

(the above code only works when I drag an UIloader to the stage and delete it)
