Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9014655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:33:33+00:00 2026-06-16T03:33:33+00:00

i am having troubles changing an object alpha in a storyboard corona application. When

  • 0

i am having troubles changing an object alpha in a storyboard corona application.

When the page is loaded, the object has a default alpha of 0 (it is invisible).
Then, by clicking on a button, his alpha is set to 1 (it becomes visible).

If i leave the page, move to another storyboard page, and then get back, the object is still visible, even though i set his alpha back to 0 again with this code both in the function that gets me back to other pages:

local function gotoHomefun()
if objectname then
objectname.alpha = 0
end
storyboard.gotoScene( "home", "crossFade", 400 )
return true
end

and in the destroyScene event:

function scene:destroyScene( event )
local group = self.view
if objectname then
objectname.alpha = 0
objectname :removeSelf()    
objectname = nil
end
display.remove( group )
group = nil     
end

I really don’t know if im doing something wrong, or i found a bug.

Any help would be really appreciated! Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:33:34+00:00Added an answer on June 16, 2026 at 3:33 am

    Do you call the removeScene or purgeScene from other scene??

    if not then your scene won’t be removed unless it is a low memory situation. Try setting executing the current code in the exitScene event which gets called whenever the view is changed to new scene.

    Refer to this doc for the event specific detail –
    Storyboard Lifecycle Events

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some troubles with Flex with regards to changing controls on different viewstack
I am having trouble deleting rules from the stylesheet object due to ever changing
I am having trouble changing the color of a menu item (.category) on hover
I'm having trouble changing the font size of my TextInput tooltip. The text input
I'm having some trouble changing the colour and font on a TableView that I
I am having trouble with a slowly changing dimension type II selection. I am
I'm having trouble with a program, the program takes one word, and changing one
Having troubles here finding the right containers to represent a list of tasks on
Having troubles with items property of connected sortables. What I'm trying to do is
im having troubles with adding a class to the last option from foreach, its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.