How to select / change object from another composer scene in Corona SDK Lua -


scene a: (creating global object)

someline = display.newline( 0,100, screenw,100 ) someline:setstrokecolor( 0, 0, 0 ) 

scene b: (changing public object)

someline:setstrokecolor( 1, 1, 1 ) 

changing object scene in scene b in example above, not work. idea how object without weird workarounds?

thank much! :)

the mistake using globals in scene:create, that's why change in example didn't work. moving change command scene:show started working.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -