# Get array from function

**URL:** <https://forum.kirupa.com/t/get-array-from-function/216191>\
**Category:** flash\
**Created:** [February 14, 2007, 11:38am UTC](https://forum.kirupa.com/t/get-array-from-function/216191 "2007-02-14T11:38:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frette](https://avatars.discourse-cdn.com/v4/letter/f/b5a626/32.png) [@frette](https://forum.kirupa.com/u/frette)\
**Post date:** [February 14, 2007, 11:38am UTC](https://forum.kirupa.com/t/get-array-from-function/216191/1 "2007-02-14T11:38:22Z")

</div>

Hi!  
It was a relly long time since i worked with flash. And back then i sure wasn’t any pro :P.

But anyway, I wondering if theres a way to “export” an array in a function.  
So you can access array data from anywhere in the flash.  
I tried with [COLOR=RoyalBlue]\_global[COLOR=Black].myArray but didnt work!

//thanks in advanced.

Edit: Got it, was rather simple. guess it was that you must declare new array not within function.  
[/COLOR][/COLOR]
