# Event.INIT question

**URL:** <https://forum.kirupa.com/t/event-init-question/264050>\
**Category:** flash\
**Created:** [June 22, 2008, 5:56pm UTC](https://forum.kirupa.com/t/event-init-question/264050 "2008-06-22T17:56:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)\
**Post date:** [June 22, 2008, 5:56pm UTC](https://forum.kirupa.com/t/event-init-question/264050/1 "2008-06-22T17:56:57Z")

</div>

So, when loading a swf file the Event.INIT event is dispatched when the first frame of the swf file has been loaded. Does this work with bitmaps ? can you access, say, the width and height of a bitmap in an Event.INIT event, or is it just the same if you wait for the Event.COMPLETE event ?

thanks

---

<div class="post-metadata">

**Author:** ![Robert\_Payne](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@Robert\_Payne](https://forum.kirupa.com/u/Robert_Payne)\
**Post date:** [June 22, 2008, 6:58pm UTC](https://forum.kirupa.com/t/event-init-question/264050/2 "2008-06-22T18:58:02Z")

</div>

No Event.INIT does not fire for Bitmaps since there is no code execution with them. However, in AS3 the Event.COMPLETE is always fired after the Event.INIT so you can use Event.COMPLETE for everything and not worry much

---

<div class="post-metadata">

**Author:** ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)\
**Post date:** [June 22, 2008, 7:06pm UTC](https://forum.kirupa.com/t/event-init-question/264050/3 "2008-06-22T19:06:21Z")

</div>

bummer, it would have been nice to have access to bitmaps info such as size and weight in an Event.INIT event.  
thanks for clearing that up for me 🙂

---

<div class="post-metadata">

**Author:** ![Robert\_Payne](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@Robert\_Payne](https://forum.kirupa.com/u/Robert_Payne)\
**Post date:** [June 22, 2008, 8:24pm UTC](https://forum.kirupa.com/t/event-init-question/264050/4 "2008-06-22T20:24:40Z")

</div>

Actually I’m wrong. The Event.INIT does fire on BMP’s. At least just was running some tests on png’s and it is firing.

You can do the following:

```auto

trace(loader.contentLoaderInfo.content.width);

```
