Skip to main content
March 26, 2009
Question

making a button that will change alpha of different object

  • March 26, 2009
  • 1 reply
  • 605 views
I'm creating pages with text supported by wav files for training. on the bottom of the page is a progress bar.

I want to make a button that when clicked will permenantly raise the alpha of a movie clip (on a different layer) to 100%. (it is currently set to 0)

within the movie clip (hazpop) is a button that will turn the alpha to zero (click to close window)

so in theory (not as2) it should be:
on mousedown alpha.hazpop=100

I've been combing the forums for days and no-one is talking about alpha. any help is appreciated
thanks
This topic has been closed for replies.

1 reply

Ned Murphy
Legend
March 26, 2009
You should refer to the Flash help docs for object properties like alpha and the like. There's plenty about them in there. For your situation, the timeline code for the button (say it has an instance name of hazBtn) would be:

hazBtn.onRelease = function(){
hazpop._alpha = 100;
}

This assumes the button and the movieclip reside in the same timeline
March 26, 2009
Ahhh the Instance!! oh there's so much to learn, thank you for your help, it's always good to get strated in the right direction!
Ned Murphy
Legend
March 27, 2009
You're welcome