# Loader class to load swf

**URL:** <https://forum.kirupa.com/t/loader-class-to-load-swf/225265>\
**Category:** flash\
**Created:** [May 10, 2007, 6:19am UTC](https://forum.kirupa.com/t/loader-class-to-load-swf/225265 "2007-05-10T06:19:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eudora](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@eudora](https://forum.kirupa.com/u/eudora)\
**Post date:** [May 10, 2007, 6:19am UTC](https://forum.kirupa.com/t/loader-class-to-load-swf/225265/1 "2007-05-10T06:19:41Z")

</div>

I am currently using the Loader class to load ext swfs. I have a problem, if the first frame of that swf is empty, the loader detects that its height and width to be only 0 and I won’t be able to change the .height and .width of that loader in the complete event. This can be walked round if I put a invisible layer that reflects the dimension of that swf, is there other more elegant way of going round this?
