# Unsual behaviour

**URL:** <https://forum.kirupa.com/t/unsual-behaviour/259697>\
**Category:** flash\
**Created:** [May 7, 2008, 10:19pm UTC](https://forum.kirupa.com/t/unsual-behaviour/259697 "2008-05-07T22:19:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [May 7, 2008, 10:19pm UTC](https://forum.kirupa.com/t/unsual-behaviour/259697/1 "2008-05-07T22:19:51Z")

</div>

Is it possible that you can access a static variable or object without defining the method as public static this is what I mean

private var sprite:Sprite;

public static function returnSprite():Sprite  
{  
return sprite  
}

When I put this code inside a class that is implementing singleton design pattern it give me an error if I define the function as public static…

I dont know whether I am making any sense here
