Making a component invisible...

Hi,
I'm trying to make a component in my movie invisible using
the instance._visible = false ActionScript command. It's a button
that was converted to a symbol from a series of filled rectangles
and ovals. It will not go invisible although I can use the same
script on a simple, independent text-box and it works fine. Am I
missing something?
Thanks in advance - Jim.

Thanks for responding. It's working. But I still have some
minor questions.
1) When I put the code within the onMotionFinished function,
it doesn't work. But when I place it at the very beginning (before
the tweening), it works. Why is this?
2) Also, what is the difference between using:
this._visible = false; versus
this.red_mc.triggerBox_red_btn._visible = false; or just
red_mc.triggerBox_red_btn._visible = false;? The latter 2 do
not work. Why is this?
thanks you very much for your help.
Here's the modified snippet with the new code:

Similar Messages

  • Making a component half way transparent(not fully opaque or nuopaque)

    Is it possible to make a component (frame, panel etc) half way transparent, I know that its possible to make it fully transparent but i would like to know of a way to go half way, thanks.

    I saw something recently about making a JFrame transparent in another question. You need to use a third party package. Sorry, I don't remember the posting. If you try searching the forum you might find it again. You can use my id as one of the keywords.
    Otherwise for JComponents you need to do three things:
    a) make the component non-opaque
    b) set the background color of the component using a Color object that has an "alpha" value specified.
    c) however you can't just set the background since it won't automatically be painted, so you need to override the paintComponent() method of the component to paint the background yourself. Something like:
    g.setColor(getBackground());
    g.fillRect(0, 0, getWidth(), getHeight());
    super.paintComponent(g);Or instead of using a background with an alpha value I think you can use something like this to paint the background:
    Graphics2D g2 = (Graphics2D)g;
    AlphaComposite ac = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha);
    g2.setComposite(ac);
    g2.setPaint(getBackground());
    g2.fillRect(0, 0, getWidth(), getHeight());Don't know which approach is better.

  • Making a control invisible at runtime

    Hello,
    I wnat to write a control that is invisible at runtime - like the history component.
    How can a control recognize if it is in a design- or a runtimeenvironment?
    Regards,
    Nico

    Hi Nico,
    This is in the SDK release notes, you create a helper function like this in your component:
    * Returns true if this SWF is running in Xcelsius at design time, false if not.
    public static function isInCanvas():Boolean
         // TODO: remove this function when this gets exposed in the Xcelsius 2008 Component SDK API.
         var globalStyle:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global");
         if (Boolean(globalStyle.getStyle("inCanvas")) == true)
              return true;
         return false;
    Then you can use isInCanvas() to find out if the component is in Xcelsius at design-time or not.
    So in your case in the constructor you could do something like this:
    visible = ! isInCanvas();
    Regards
    Matt

  • How to resize JDialog after making some fields invisible?

    Hi,
    I have many fields in a JDialog box. And I am making some of them invisible (based on some logic).
    Even though I am using invisible, the dialog size is not resized automatically.
    I can see so much space and it is not good.
    Is there any way so that I can resize this dialog?
    Regards,
    Praveen

    Praveen_Kumar_Jayaram_1985 wrote:
    But I am not using any layout manager. It is free design. Is there any way to achieve my requirement without using layout manager?But this is what layout managers are made for. Why not use the correct tool for the job? Also, please do not cross-post questions in multiple forums. This will frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. For this reason, many volunteers here and at the other sites refuse to help repeat offenders.

  • Component Invisible at Canvas

    When I try to drag and drop a component in the canvas, the component is invisible is in the canvas, but is available at Object Browser. Kindly help me find  a solution.
    Regards
    Ranendra

    Hi
    select that component and right click and  select BRING TO FRONT
    the order in OBJECT BROWSER matter

  • Making a component to view my Own Map !!

    Dear all,
    I am developing a website with jsf and richfaces, but now, I'm in a state that I need to show a detailed map of my city to the user. I looked around to find a component that make it work, but I couldn't find one!
    Is there anyway to show my own detailed map (except google map) in a jsf component and what is it?!?
    or, if there is not one, how can I make a component that gives an image as input map, and makes available zooming in and out on the map, and selecting a point.
    my second question is, how can I visualize addressing??! I mean that, how can I let user to make an area selection on the map and I write the address with the user's selection ?
    please help me! a component for viewing my own map that is an image ?!?!

    Such a JSF component doesn't exist yet. Look at the Google map API and integrate it. Basically JSF components does nothing much else than taking some variables and outputting some plain vanilla HTML, so it shouldn't be that hard to put all the HTML/JS of the Google API together in a JSF component.

  • Conditionally making a field invisible.....

    XMLP Gurus,
    Some of the values in a column has dots(.). Conditionally i have to make it invisible.
    I tried replacing null value for a dot using decode function, but in this case the other column values are shifting themselves up by taking place of null values thus losing sync with other columns.
    After the decode statement i want the null value to remain null in sync with the other columns instead of replacing the null value with a value below it (shifting up)
    Thanks in advance.

    Hi venkat,
    Thanks for the reply.
    Originally the problem persisted with the null values in the column and it is getting shrinked when the statement goes to the second page.
    This template is already created and I need to modify it. There are six different columns in the template and each column has its own for each and END for each (similar grouping for all say G_XYZ).
    Say in the 5th column if the first row in the second page(continuation from first page) is null then it is shiftng itself up losing sync with the other columns.
    To over come this I used decode in the 5th column field. I replaced the null value with a dot. It is working fine now(shrinking problem is nailed) but the users dont like the dot in place of null value.
    I tried to make the dot invisble using:
    <?if:AMOUNT_DUE=''?><xsl:attribute xdofo:ctx="block" name="background-color">white</xsl:attribute><?end if?>
    But it is throwing error: " XML-22047: (Error) Invalid instantiation of 'Attribute' in 'Element' context." .
    It does not like ctx="block" and if I replace block with line or inline, it is working as expected.
    The solution I am looking for now is to avoid shrinking of null values at first place. If not then substitute this null with some value that is invisible (say invisible dot) and avoid shrinking.
    Any help is highly appreciated.
    Thanks.......

  • Flash 8: Making a component.

    It's really odd. When I test my scene (press ctrl+enter) and
    then go back to the "component inspector" the second I change a
    field and press "backspace" to delete a number in a textfield, it
    RESETS!! It's driving me crazy. Is this a bug in Flash8 or a bug in
    my code?

    Well, it wasn't simple to do because I had som many
    variables. But it was a simple solution. Sorry for not leaving a
    longer reply, but it was very late in the evening when I figured it
    out.
    1.) My code was just sloppy. I didn't use get/set on any of
    the variables I declared in my Class. Like this:
    //The better way...
    [Inspectable (type="Number" , defaultValue="myParticle" )]
    public function set $particleName($particleName:String){
    particleName = $particleName;
    }//end set
    public function get $particleName(){
    return particleName;
    }//end get
    //the way I had it...
    [Inspectable (type="Number" , defaultValue="myParticle" )]
    var public particleName:String;
    2.) The sliders I made were reseting but the textfields were
    ok with my code like this in the Component_UI:
    //textfiled something like this
    this.onLoad = function(){
    ParticleID.text = xch.$particleName;
    }//end onLoad
    //slider I made something like this
    RateSlider.onMouseUp = function(){
    sx = this.sliderButton._x;
    Rate.text = sx;
    xch.$genRate = sx;
    }//end function
    The problem was, when I reselected the component on the
    stage, it would reset. Actually just about anything I did would
    reset the darn things. So I decided to see if setting thier current
    position to value of the xch.$variable onLoad would do the job.
    Like this:
    this.onLoad = function(){
    Rate.text = xch.$genRate;
    RateSlider.sliderButton._x = xch.$genRate;
    }//end onLoad
    Yup, that worked. So I did the same for the rest of all my
    sliders in my Component_UI and things seem to be running smoothly
    now.
    Does that make sense. Someone else might be able to see what
    I did and explain it better.
    Take care! I hope that helps someone.

  • Making the request invisible in CUP 5.3

    Hello Everyone,
    we are using GRC 5.3 on SP 8.1 , We would like to make the Request type field unavilable in Request access Screen
    I cannot make invisble in End user Personlization  coz as Visiblie field (to be ste to YES or NO is greyed out) I presume as this was used in several  requests processed
    the request type is being used in intiators and CAD's .
    Any thoughts how to make this invisible form the request screen , any imput would be much appreciated
    Regards

    thanks you guys Julius , simona nd venky
    I cannot make it defualt quite yet because the fields are greyed out ! but howeer the issue is fixed in SP9
    Request reason and Request type in End user personalization shows as "NO" in field mandatory but when click on change, it shows "YES" in the mandatory field
    I will apply SP9  and hopefully i make it to default .
    thanks & Regards

  • Making the fields invisible or etc. at the item overview screen

    At the header data of the sales documents, there exist incoterms and payment terms. I want to make those invisible at the item overview screen (under Billing Document tab). I just want those data root from the header data, not from the item data. I don't want to enter data (about payment terms or incoterms) on the item overview screen.

    Thank you for your consideration but can you please explain step by step.
    Also to be more clear; the incoterm datas of the sales document's items come from the customer master data. Person can change or enter data about incoterms although there may exist different incoterm data at the header. That's why I want to hide or make unchangeable the incoterm field at the billing document tab of item data.
    Thanks in advance.

  • Making a button invisible with ActionSctript 3?

    I have one button instance that stretches across many frames, and I would like to make it invisible in some of the frames and visible in others. How do I do this with ActionScript 3?
    thanks

    Couldn't wait, eh!... kidding... btnName.visible = true;  btnName.visible = false;

  • Making a component focusable

    I made a class extending JPanel and I want it to be selectable/focusable. I've been looking through the source code of many other classes (like AbstractButton) that have this function, but I still don't really understand what I need to implement or code in my component. They implement quite much and I don't really know what to take. Anyone able to help me, maybe with an example class that implements the basic functions for selectability? Thanks in advance.

    1) Run the code as is. Focus toggles between the 2 components
    2) Remove the comment and retest. Focus now toggles between the 3 components.
    import java.awt.*;
    import javax.swing.*;
    public class FocusTest extends JFrame
         public FocusTest()
              JPanel panel = new JPanel();
    //          panel.setFocusable(true);
              getContentPane().add(panel);
              panel.add(new JCheckBox("One"));
              panel.add(new JCheckBox("Two"));
              getContentPane().add( panel );
         public static void main(String[] args)
              FocusTest frame = new FocusTest();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }

  • TabBar click , making a Component Visible to true and false

    Hi
    I have a Tabbar with 4 tabs on it Say One , Two , Three and Four .
    <mx:TabBar  id="viewTab" itemClick="switchView();">
    <mx:dataProvider>{VIEW_ARRAY}</mx:dataProvider>
    </mx:TabBar>
    public function switchView():void
    if(tabselected == Two)
    ToggleButtonBar.visible = true;
    if(tabselected == Three)
    ToggleButtonBar.visible = False;
    As you can see
    On clicking of Tab Two , i am showing a ToggleButtonBar Visible to false and on click of Tab Three i am making it visible to False .
    Now the problem is that again on click of Tab Two , this ToggleButtonbar is not visible again ??

    Can you post a complete test case in 20 lines or so?

  • ADF Faces: Making a component non-navigable. How?

    Hi,
    Is it possible to make an ADF Faces component non-navigable? Something like specifying
    tabindex="-1"in HTML.
    I need this most for buttons.
    Best regards,
    Bisser

    That's right. JSF produces such IDs. They are causing problems with JAAS login forms, so we should use plain JSPs for login, but for the rest of the tasks such IDs are okay.
    What I meant is that currenty the buttons are not rendered as
    <input type="button" ... />but as pictures embedded in hyperlinks (&lt;a>).
    It's possible, though not likely, that in some future version of ADF Faces some component will be rendered as an HTML element that doesn't support tab ordering (although I haven't really considered if there are such elements). Then the trick with manually setting the tabIndex of the parent HTML element won't work.
    Of course, I deeply appreciate the fact that you take the time to help us on this forum. In fact, I will go ahead and do just that -- I will dynamically set the tabIndex via JavaScript. I was simply wanting to make sure that I wasn't taking such a hack-like approach, if there was a better method.
    Thank you again.
    Best regards,
    Bisser

  • Making UI Elements invisible dynamically

    Hi,
    I have requirement where in i need to display selection parameters first and based on these get the data in the table.User has the option to  select one record and edit it.
    Please help me in accomplishing this.
    Regards,
    Kedar

    Create a view container for the select - options.
    Create a table under the select options and bind it to the search result node in the context.
    Create a context, say, UI_RENDER with 1..1 cardinality.
    Create an attribute, say, TBL_VISIBLE of type WDUI_VISIBLITY
    Bind this attribute to the VISIBLE property of the Search output table.
    onClick of search , check if result is returned, set TBL_VISIBLE = cl_wd_uielement=>e_visible-visible otherwise, set it to cl_wd_uielement=>e_visible-none.
    this will dynamically set the table invisible if the search didnot produce any result.
    Also in the do_init method of the view, set TBL_VISIBLE = cl_wd_uielement=>e_visible-none. so that initially only the selection nscreen can be seen.
    Hope this helps you.
    Regards,
    Reema.

Maybe you are looking for

  • Disk Utility won't Recognize HD after DiskWarrior Freeze

    Hello, Thanks for reading ... all advice and help is much appreciated. My Powerbook (G4 1.67 15" - OSX 10.4.11) experienced a system freeze. After a forced shut down and reboot all I was getting was the grey apple screen, but no loading wheel. I trie

  • Component not printed out?

    hi all, i'm relative new to java, and surprise surprise, i have a problem (strange uh?) well, i need to write out a "RoundRectangle", that is sensible to event mouseEntered and MouseClicked: i wrote my class (JComponet) and i tried it out with a JFra

  • Is there a script or API to automate upload of Videos to iTunes U?

    Is there a script or API similar to uploading to youtube where I can upload videos to my class on iTunes U? Thanks!

  • Applescript apps in mavericks:  tell application  not working

    Since upgrading to Mavericks applescript apps can not do a "tell  application xxx"  if "xxx" is not manually started. Once they are started manually ie NOT during login the communication works again.  Is this a new security issue in 10.9?

  • 7985 Video Phone Logo Background Replacement

    I need to place or replace select different our Company's Logo with the initial Cisco Logo to the Video Phone 7985, anyone to help me to know the Screen Size of 7985 and the corresponding Script.