How to make components appear and disappear dynamically.

So I admit I am from the HTML world and have been able to
dynamically control divs to make them visible and invisible, as
needed. How do you do that in Flex/Flash?
I have tried the "visible" attribute, but the component takes
up the same space when invisible leaving a big hole in the page --
very surprising. I have changed the height and width to zero (which
works) but have not been able to restore the size (since I want it
to be width=100% and it is expecting a number, not percentage.
So how do you implement hidden divs in Flex.
Thanks.
Mike

In Flex, there is a separation between "is this component
visible" vs. "does this component take screen space." Similar to
the difference in CSS between "mydiv.style.visibility = 'hidden'"
and "mydiv.style.display = 'none'".
In Flex:
// make it invisible
mything.visible = false;
// make it not take up space onscreen
mything.includeInLayout = false;

Similar Messages

  • How to make field visible and invisible dynamically in webdynpro ABAP

    Hi Experts,
    I am working on simple webdynpro application, in which I have two radio buttons and three fields.
    When I select second radio button second field should be invisible out of three and when I select first radio button the second field should be visible. ie I wanted this happen dynamically. I tried with using some methods but no output....
    Please help out.
    Thanks
    Basanagouda

    Hi Prabhu,
    I have two radio buttons ex: R1 and R2 and three Fields Ex: Vendor, User Name and Password.
    When I select R1 Vendor field should be Visible and when I select R2 Vendor field should be invisible.
    I created one attribute of type WDUI_VISIBILITY and binded in Visbility property of Vendor field.
    On action of R1 I am setting attribute value as Visible using Set_attribute method and On Action of R2 I am setting BLANK in Set_attribute method. But somehow I am unable get the solution......
    Thanks
    Basu

  • How to make Components Dragable

    How to make Components dragable and moveable?
    Is it posible?
    Thanks.

    There's no way currently to do that in Catalyst. Drag and drop functionality would have to be added over in Flash Builder after you export your project in FC.
    but you can of course "simulate" the D&D with a clever "On click, Play action sequence" interaction.
    Here some information on drag and drop in Flash Builder if you want to see how drag and drop is coded:
    http://www.adobe.com/devnet/flex/quickstart/adding_drag_and_drop/
    To simply drag objects around, you can use DragManager.doDrag():
    http://livedocs.adobe.com/flex/3/langref/mx/managers/DragManager.html# doDrag()
    Also, there's an interesting tutorial written by Krystal Higgins, showing how she simulated a drag and drop in Catalyst, which you might find useful:
    Simulated Drag and Drop in Flash Catalyst.
    Hope this helps,
    Chris

  • How can I use the button in one panel to control the other panel's appearing and disappearing?

    How can I use the button in one panel to control the other panel's
    appearing and disappearing? What I want is when I push the button on
    one button . another panel appears to display something and when I
    push it again, that the second panel disappears.

    > How can I use the button in one panel to control the other panel's
    > appearing and disappearing? What I want is when I push the button on
    > one button . another panel appears to display something and when I
    > push it again, that the second panel disappears.
    >
    You want to use a combination of three features, a button on the panel,
    code to notice value changes using either polling in a state machine of
    some sort or an event structure, and a VI Server property node to set
    the Visible property of the VI being opened and closed.
    The button exists on the controlling panel. The code to notice value
    changes is probably on the controlling panel's diagram, and this diagram
    sets the Visible property node of a VI class property node to FALSE or
    TRUE to show or
    hide the panel. To get the VI reference to wire to the
    property node, you probably want to use the Open VI Reference node with
    the VI name.
    Greg McKaskle

  • Under bookmarks the Organize bookmark option does not appear, new computer Firefox 4.0, and Windows 7, how to make it appear, thanks

    Under bookmarks the Organize bookmark option does not appear, new computer Firefox 4.0, and Windows 7, how to make it appear, thanks

    "Organize Bookmarks" has been renamed to "Show All Bookmarks" in the bookmarks menu.

  • "3265 du process" appears and disappears and occupies a lot of CPU System usage: what is that and how to remove that unknown process

    Opening the utility "activity monitor", I see a process that appears and disappears,  called 3265 "du" process. It occupies a lot of CPU % system (the red one in  the mac activity monitor utility). Anyone knows what's that and how can  I remove it?
    Probably the same issue of this discussion: https://discussions.apple.com/thread/1968751?start=0&tstart=0
    But no idea about how to solve it!

    BSD General Commands Manual
    du -- display disk usage statistics
    The du utility displays the file system block usage for each file argu-
         ment and for each directory in the file hierarchy rooted in each direc-
         tory argument.  If no file is specified, the block usage of the hierarchy
         rooted in the current directory is displayed.
    To see for yourself use Terminal program enter: man du
    press enter (to see the manual for "du")

  • When I use Siri, my screen goes blank and the apple logo appears and disappears. I've reset it, but problem still occurs. How can I fix this?

    When I use Siri, my screen goes blank and the apple logo appears and disappears. I've reset it, but problem still occurs. How can I fix this?

    Did you reset your iPad like this: Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart.

  • I found the operating system very confusing and hard to use. No tutorial. Manual and online help were outdated.  Tool bars, programs and documents randomly appeared and disappeared. Programs I installed completely disappeared. Anyone else experience this?

    I found the operating system very confusing and hard to use. No tutorial. Manual and online help were outdated.  Tool bars, programs and documents randomly appeared and disappeared. Programs I installed completely disappeared. Anyone else experience this?

    No need to apologize, Jim.  I think your rant was justified.  For years people have been telling me how easy the Mac was to use.  Imagine my frustration when I finally learned from friends and users that it takes weeks or months to make the transition from Windows to Mac.
    Still, I agree that I acted to too hastily when I returned my mini-mac to the store only three days after I bought it.
    I'm going to try again, this time with an iMac.  This time I'll keep it.  Since this thread is for the mini-Mac only, I'll probably be starting a new one for the iMac.
    Why did I decide to try again?  Well, I do like the faster speed and compact hardware of the Macs.  I also like the fact that I can install Windows and use that for my programs until I transition completely to Mac, IF I make the complete transition.
    Thank you all for your suggestions and advice.  I have paid attention to what you said.
    Andy

  • How to make the dblink and what is the use of this

    plz any body tell me "how to make the dblink and what is the use of this"
    sujit

    Do you understand how to make the Slider work using code to read its value?  You will need to look into that in order to do this.
    What you can do is have the yello rectangle be a movieclip that sits over the red rectangle and use the Slider to control the yellow rectangle's alpha property from 0 to 1.  That way the yellow will gradually fade as you slide.
    What you will then need  to do is figure out how to make the number of dots that appear reduce from 15 to 8 over the same range of the slider.  You need to use the fractional value from the slider to decide how many dots either appear or do not appear.
    You should not start new postings for the same topics that you arlready have postings for.  Doing so in the future might result in them being removed.

  • Dialog box appears and disappears before I can read it... what is it?

    I've been noticing a dialog box that appears and disappears in a fraction of a second, just enough to annoy me. It happens at random times, and have noticed it while working in various applications. I've checked Console and determined that this is the culprit. What is this!?
    5/12/12 2:18:57.550 PM Firewall: java is listening from ::ffff:0.0.0.0:0 proto=6

    Hmmm, are you running 10.6.8 or later & installed the Security updates?
    Java was an attack vector for FlashBack.
    Disable Java in your Browser settings, not JavaScript.
    http://support.apple.com/kb/HT5241?viewlocale=en_US
    http://support.google.com/chrome/bin/answer.py?hl=en-GB&answer=142064
    http://support.mozilla.org/en-US/kb/How%20to%20turn%20off%20Java%20applets
    Flashback - Detect and remove the uprising Mac OS X Trojan...
    http://www.mac-and-i.net/2012/04/flashback-detect-and-remove-uprising.html
    In order to avoid detection, the installer will first look for the presence of some antivirus tools and other utilities that might be present on a power user's system, which according to F-Secure include the following:
    /Library/Little Snitch
    /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
    /Applications/VirusBarrier X6.app
    /Applications/iAntiVirus/iAntiVirus.app
    /Applications/avast!.app
    /Applications/ClamXav.app
    /Applications/HTTPScoop.app
    /Applications/Packet Peeper.app
    If these tools are found, then the malware deletes itself in an attempt to prevent detection by those who have the means and capability to do so. Many malware programs use this behavior, as was seen in others such as the Tsunami malware bot.
    http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/
    http://x704.net/bbs/viewtopic.php?f=8&t=5844&p=70660#p70660
    The most current flashback removal instructions are F-Secure's Trojan-Downloader:OSX/Flashback.K.
    https://www.securelist.com/en/blog/208193454/Flashfake_Removal_Tool_and_online_c hecking_site
    More bad news...
    https://www.securelist.com/en/blog/208193467/SabPub_Mac_OS_X_Backdoor_Java_Explo its_Targeted_Attacks_and_Possible_APT_link

  • Why does the Apple logo appears and disappears when I'm the iphone 4?

    When I'm using iphone 4 the Apple logo appears and disappears and appears lock screen. What to do? It' s a bug or a hardware problem?

    Hi sarasalves,
    Welcome to the Support Communities!
    If the Apple logo is flashing on your iPhone 4, you may need to put the iPhone in recovery mode so that you can restore it.  The article below explains how:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    I hope this information helps ....
    - Judy

  • "3265 du process" appears and disappears and ***** a lot of CPU System usage: what is that?

    Opening activity monitor, I see a process that appears and disappears, called 3265 "du" process. It ***** a lot of CPU % system (the red one in the mac activity monitor utility). Anyone knows what's that and how can I remove it?
    probably it's the same issue of this discussion : https://discussions.apple.com/thread/1968751?start=0&tstart=0

    BSD General Commands Manual
    du -- display disk usage statistics
    The du utility displays the file system block usage for each file argu-
         ment and for each directory in the file hierarchy rooted in each direc-
         tory argument.  If no file is specified, the block usage of the hierarchy
         rooted in the current directory is displayed.
    To see for yourself use Terminal program enter: man du
    press enter (to see the manual for "du")

  • How to make arrows appear???

    Hey, I was wondering how to make arrows appear so I can point out what people did wrong in their softball swing and arm. Can you help me? Thanks.
    -Channing

    Hi Channing,
    searching the "usual suspects" I found:
    Stupendous - has some "highlighten" effects...
    and
    Geethreeoffers some "painting" (e.g. arrows) onto the video...
    I'm sure, searching at www.virtix.com and www.imovieplugins.com, you'll find more.....
    I don't profit from any recommendation or link, I'm a user, not a salesman.

  • Small windows appear and disappear quickly

    Hello,
    Too often when I'm using my MBP, small windows (dialog boxes) appear and disappear very quickly. I don't know what application generated them, and they usually disappear before I get a chance to read them. Is there a way for me to see what program generated these windows and what where they about? I assume it should be in one of the logs in Console, but I don't know which one.
    If it helps at all, the programs I most oten use are iTerm2, Chrome, and MacVim. Googling around didn't show any specific issues regarding these apps.
    Any help would be much appreciated.

    That sounds like Growl. Have a look here for how to manage it
    http://osxdaily.com/2010/05/17/disable-growl-notifications/
    Also, if the notifications are showing incoming emails, look in Mail.apps > Preferences.

  • Unable to see Inspection lot stock tab in UD??? how to make it appear?

    Hello Friends
    Some how i am getting three unexpected observation
    1. Inspection lot stock tab in UD is not there.....how to make it appear so that i can do the quantity posting can be done.
    For your information this is against good receipt & QA32 quantity to be posted is showing the qty correctly.....which means stk is in quality
    2. In MMBE transaction i am not able to view batch & qty posting
    3  In MB51 i can see the document details but qty is showing in unrestricted....which means stk in unrestricted which contractdory to my first statement.
    Kindly let me know
    1. How to make Inspection lot stock table available in UD
    2 Any clue for 2 & 3 point if possible.
    Thanks & Regards
    Swanand

    Thanks for reply
    But the problem is not of stock going to quality or not.....anyway i checked it and it's correct.
    Problem is i am not getting Inspection lot stock tab in UD.......here this inspection lot is created due to good receipt (inspeciton type 01)
    My query is not yet answered
    Thanks & Regards
    Swanand

Maybe you are looking for