Storyboard -> Composer

Hi All,

So in storyboard i used purgeOnSceneChange

But in the Composer API documentation this is not listed

http://docs.coronalabs.com/daily/api/library/composer/index.html

But using a google search it does exist!

http://docs.coronalabs.com/daily/api/library/composer/purgeOnSceneChange.html

Any reason for this i.e. Corona wishes to discourage it’s usage?

T.

Hi @ToeKnee,

This function has been replaced in Composer with “recycleOnSceneChange()”:

http://docs.coronalabs.com/daily/api/library/composer/recycleOnSceneChange.html

The document you found must be some leftover remnant. I’ll remove it.

Best regards,

Brent

Thanks for the answer Brent.

just 1 Q relating to this.

Where is the best place (code Optimisation) to place this call within the Composer scenes?

I placed purge…. just within the create scene

[lua]

– Called when the scene’s view does not exist:

function scene:createScene( event )


-------------       ----------------            ------------      ----------------

storyboard.purgeOnSceneChange = true

-------------       ----------------            ------------      ----------------


        local group = self.view

[/lua]

T.

Hi @ToeKnee,

This function has been replaced in Composer with “recycleOnSceneChange()”:

http://docs.coronalabs.com/daily/api/library/composer/recycleOnSceneChange.html

The document you found must be some leftover remnant. I’ll remove it.

Best regards,

Brent

Thanks for the answer Brent.

just 1 Q relating to this.

Where is the best place (code Optimisation) to place this call within the Composer scenes?

I placed purge…. just within the create scene

[lua]

– Called when the scene’s view does not exist:

function scene:createScene( event )


-------------       ----------------            ------------      ----------------

storyboard.purgeOnSceneChange = true

-------------       ----------------            ------------      ----------------


        local group = self.view

[/lua]

T.