Loading and Unloading lua files

I am trying to load by tapping a button once and then unloading it by tapping the button for a second time.
So far I have been able to load the file but have no idea how to unload it with the second tap.

Any help would be great, I am a Corona beginner!
menuButn = display.newImage( “NewImages/menuButton.png”, 25, 25)

function openMenuBar (event, self)
local openList = require(“menuBar”)
end

menuButn:addEventListener(“tap”, openMenuBar)
[import]uid: 155889 topic_id: 31309 reply_id: 331309[/import]

Why not load the menuBar at the beginning and then either hide it with the .isVisible property or the .alpha property (better if you want to fade in/out). Then you’re button just has to toggle visibility as opposed to trying to load and run the menu bar and freeing it up over and over again, [import]uid: 19626 topic_id: 31309 reply_id: 125128[/import]

Why not load the menuBar at the beginning and then either hide it with the .isVisible property or the .alpha property (better if you want to fade in/out). Then you’re button just has to toggle visibility as opposed to trying to load and run the menu bar and freeing it up over and over again, [import]uid: 19626 topic_id: 31309 reply_id: 125128[/import]