Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to hide content in an FLVplayer 1

Status
Not open for further replies.

flvman69

Programmer
Jul 20, 2007
5
US
i need some help with the flash player ive created:

i made a button on my flash player that i would like to be able to use to hide and show the controls that i have on my player. ive tried making the controls non-opaque... ive tried making up commands... i guess im not all that flash savvy, so i require the expertice of more advanced users, like you! thanksss!!!


flvman69
 
Are your controls in a MC? If so, why not make a button that
Code:
button.onRelease = function (){
controlsMC._visible = false}
 
ok, so yeah, that worked, now when i press my button once, it makes the controls disappear. now all i need to do is to reverse the code and get them to reappear when the button is pressed again. the code is:
Code:
hideShow.onPress = function (){
	loader._visible = false;
	controlBack._visible = false;
	playButton._visible = false;
	rewindButton._visible = false;
}
hideShow is my button
loader,controlBack,playButton, and rewindButton are my controls.

im pretty sure that there is an easy answer to this, and my newbnes is preventing me from reaching it. thanks for all your help so far
 
ahhh, thank you very much Kenneth Kawamoto, your code worked just fine! you have saved me countless hours of research, haha!



thanks
flvman69
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top