Hi I have two scene. I want to pass variable from one page to another.
Here is the code block.
In scene1.lua :
local options =
{
effect = “fade”,
time = 400,
params =
{
myVar= “Hi”
}
}
local storyboard = require( “storyboard” )
storyboard.gotoScene( “scene2”, options )
In scene2.lua :
function scene:enterScene( event )
local scene1Data = event.params.myVar
print( scene1Data )
end
Now when I run my app and tries to go from scene1 to scene2, the page transition “fade” was not working and also I am not able to get params in scene2 page.
Please suggest… [import]uid: 154400 topic_id: 35194 reply_id: 335194[/import]