# Wierd array bug

**URL:** <https://forum.kirupa.com/t/wierd-array-bug/321323>\
**Category:** Uncategorized\
**Created:** [April 16, 2011, 3:07pm UTC](https://forum.kirupa.com/t/wierd-array-bug/321323 "2011-04-16T15:07:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vfistri1](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@vfistri1](https://forum.kirupa.com/u/vfistri1)\
**Post date:** [April 16, 2011, 3:07pm UTC](https://forum.kirupa.com/t/wierd-array-bug/321323/1 "2011-04-16T15:07:11Z")

</div>

so i want to create an array with a single member of array which is variable  
i call j:int;  
so i do smoething like this:  
var j:int = 0;  
var ar:array = new array(j);  
trace(ar);  
and it appears as if array ar is blank =?  
than i have tried some testing and found out that if i try to push it it will work just fine…  
but why doesn’t it work the way it is, am I right it is a bug?
