# Do we have to passin at least one DisplayObject to access the stage?

**URL:** https://forum.kirupa.com/t/do-we-have-to-passin-at-least-one-displayobject-to-access-the-stage/277971
**Category:** flash
**Created:** [December 19, 2008, 2:05pm UTC](https://forum.kirupa.com/t/do-we-have-to-passin-at-least-one-displayobject-to-access-the-stage/277971 "2008-12-19T14:05:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zhangxiaorui](https://avatars.discourse-cdn.com/v4/letter/z/e495f1/32.png) [@zhangxiaorui](https://forum.kirupa.com/u/zhangxiaorui)
#### Post date: [December 19, 2008, 2:05pm UTC](https://forum.kirupa.com/t/do-we-have-to-passin-at-least-one-displayobject-to-access-the-stage/277971/1 "2008-12-19T14:05:04Z")

</div>

Well. Sometimes we want to get the querystring passed into a swf like: someswf.swf?a=1&b=2

But we have to use a DisplayObject.loaderInfo to access the parameters. This makes some functions in a configuration class very “weird”, something like:

```auto
public static function getParams(displayObject:DisplayObject):Object
{
  var param:Object = {};
  param = displayObject.loaderInfo.parameters;
  return param;
}

```

We HAVE TO pass a displayObject inside ☹

So this is the only way?..
