# Delay stage creation

**URL:** https://forum.kirupa.com/t/delay-stage-creation/298991
**Category:** flash
**Created:** [October 28, 2009, 9:26am UTC](https://forum.kirupa.com/t/delay-stage-creation/298991 "2009-10-28T09:26:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![AdObeOne](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@AdObeOne](https://forum.kirupa.com/u/AdObeOne)
#### Post date: [October 28, 2009, 9:26am UTC](https://forum.kirupa.com/t/delay-stage-creation/298991/1 "2009-10-28T09:26:21Z")

</div>

Hello,

I would like to set the stage size to the size of a random jpeg after it successfully loaded. So I don’t know the dimenstions beforehand. It there a way to do that without using javascript. I know there is a solution using javascript, but I don’t want to use that. I know I can set the stage size by using [SWF(width = 800, height = 600)]. But that only works before you do anything else. Not after loading the jpeg. Do you know a solution?

Thanks for your time and effort,

Ad.
