We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

panel button

mkumar0282
mkumar0282 asked
on
Medium Priority
1,453 Views
Last Modified: 2013-11-11
hello experts,

how can i create a button on flex panel so that on click of that panel is closed

thanks in advance
Comment
Watch Question

Commented:
Hide/Show you mean?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
	<mx:Panel id="p" x="203" y="248" width="250" height="200" layout="absolute">
		<mx:Label x="10" y="10" text="This is a panel"/>
	</mx:Panel>
	<mx:Button x="203" y="209" label="Hide/Show" click="p.visible = !p.visible"/>
	
</mx:Application>

Open in new window

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
zzynxSr. Software engineer
CERTIFIED EXPERT

Commented:
Do you mean a close button of a popup panel/dialog?

Like this one:
1) Surf to http://examples.adobe.com/flex3/componentexplorer/explorer.html
2) Expand the first node "Vsiual Components"
3) Expand the node "General Controls"
4) Select the leaf node "Alert"
5) On the right you have some examples. Click the buttons. The corresponding code is at the bottom.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.