Question: how can I pass a value from `a.lua` to `b.lua`?

let us say that in my `a.lua` i have this code of variable.

```
local value = "Hello WOrld!"
director:changeScene ("b")

```

my problem is that how can i pass `value` from `a.lua` to `b.lua`?

thanks in advance....

Answer: 
Assign the value to the global table (`_G`), like this:

```
_G.value = "Hello WOrld"

```

In another script, you can then do this:

```
value = _G.value

```
using director API we transfer a value to another lua file is easy. and it send data in table or array type

below code is usefull..

**from a.lua file**

```
data="hellow"
director:changeScene({data},"levelroom")

```

**from b.lua file**

```
module(...,package.seeall)
new=function(params)
   localGroup=display.newGroup()
   data=params.data
   print(data)         --output:hellow
   return localGroup 
end

```