MOUSE_OVER/MOUSE_OUT - txt.visible=true/false;

I have a small problem with MOUSE_OVER, MOUSE_OUT event. On this map(MovieClip) I have 3 points(buttons) and when you will put a mouse cursor over one of them, in a space on the left sites will appear an address (difrent for all of buttons).
1º I have buttons with instance names on the stage (qlu_btn, mad_btn, are_btn)
2º In my library I have my text(address) - I transformed it in a symbol (MovieClip) and I assigned the instance names (qlu_txt, mad_txt, are_txt) in proprties.
This is my AS3 for this movieClip for 1º of the buttons... but it doesn't works... Any idea where is a problem????
var mad_txt:MovieClip = new MovieClip;
addChild(mad_txt);
mad_txt.x = - 140.0;
mad_txt.y = - 65.0;
mad_txt.visible = false;
mad_btn.addEventListener(MouseEvent.MOUSE_OVER, gotoMadridOver);
mad_btn.addEventListener(MouseEvent.MOUSE_OUT, gotuMadridOut);
function gotoMadridOver(event:MouseEvent):void{
     mad_txt.visible = true;
function gotoMadridOut(event:MouseEvent):void{
     mad_txt.visible = false;

The code probably works but it's only an empty MovieClip, so you won't see it and won't be able to interact with it.  All that the following line does is create an empty MovieClip object named mad_txt.  It will have no relation to anything else you have done.
var mad_txt:MovieClip = new MovieClip;

Similar Messages

  • How to toggle visible true-false for FourColListBoxNodeWidget Column

    Hi,
    I need to know that whether there is a way by which I can toggle visibility of a column (GenericPanelWithBorderWidget) on click of a button.
    Which Interface can be used to do the same?
    The code for table and button is given below.
    Following is "fr" code for four column table:
    type FourColListBoxNodeWidget(kViewRsrcType) : PrimaryResourcePanelWidget(ClassID = kDNDTreeNodeWidgetBoss) {};
    resource FourColListBoxNodeWidget(kFourColListBoxElementRsrcID + index_enUS) {
              __FILE__, __LINE__,
              kFiveColListParentWidgetId, kPMRsrcID_None,          // WidgetId, RsrcId
              kBindLeft | kBindRight,                              // Frame binding
              Frame(5, 0, 525, 17),                              // Frame
              kTrue, kTrue,                                                  // Visible, Enabled
              "",                                                                                // Panel name
                        GenericPanelWithBorderWidget (
                                  0, kPMRsrcID_None,                    // WidgetId, RsrcId
                                  kBindNone,
                                  Frame(0,-2,106,17)           // Frame
                                  kTrue, kTrue,                              // Visible, Enabled
                                            ColListBoxTextWidget (
                                                      k5ListTW3ID, kPMRsrcID_None,                                                            // WidgetId, RsrcId
                                                      kBindLeft | kBindRight,                                                                                // Frame binding
                                                      Frame(4,3,104,17)                                                                                          // Frame
                                                      kTrue, kTrue, kAlignLeft,kEllipsizeEnd                                        // Visible, Enabled, Ellipsize style
                                            #if CSVER >= 4
                                                      kTrue, //Convert ampersands
                                            #endif
                                                      "",                                                                                                                                   // Initial text
                                                      0,                                                                                                                                   // Associated widget for focus
                                                      kTipsWindowFontId, //kPaletteWindowFontId,                              // default font
                                                      kTipsWindowFontId,//kPaletteWindowSystemScriptHiliteFontId,                                         // for highlight state.
    Similarly other 3 columns.
    Code for Expand Button
                   // Button Expand
                                                                DynamicIconButtonWidget (
                                                                          kExpandButtonWidgetID,                              // fWidgetId
                                                                          kExpandIconPNGIconRsrcID, kIBPluginPluginID,                    // fRsrcId, fRsrcPlugin
                                                                          kBindNone,//kBindLeft | kBindRight,                    // fFrameBinding
                                                                          Frame(450, 37,470,68 )                              // fFrame
                                                                          kTrue,                              // fVisible
                                                                          kTrue,                              // fEnabled
                                                                          //kIconRaisedLook,          // fStyles
                                                                          kADBEIconSuiteButtonType,
                                                                                              IID_IDYNAMICBUTTONOBSERVER,
    Regards,
    Yogesh Walke

    You can try the approach discussed in this post(assuming you are on 11.1.1.5 or higher ) - http://jobinesh.blogspot.com/2011/07/overriding-display-at-run-time.html

  • Restoring af:selectBooleanCheckbox value after setting visible=true

    Using JDev 11.1; I have a table that displays data from a model object, and one of the columns contains true/false values which we render in the table using an af:selectBooleanCheckbox. All works fine except that user is able to hide the table by expanding other components which sets visible=false on the bounding component for the table. If user elects to redisplay the table by reducing the other component zoom, then the table displays again but the selected check-marks/tags do not return.
    Thought initially it might've been because the query was being reissued on the table, but not so. More about the selected attribute on the af:selectBooleanCheckbox, which I have set to the default (false). So the value property is set to the table collection attribute as required to interface with the model, but I need to know what to set the selected attribute to. I can see that when the table is redisplayed, this default value of false is being sent through to the model which is discarding the values I want to retain.
    I've tried some EL in the selected property to set it to true/false based on what's in the table, but the problem with that is that it becomes essentially a read-only control. I need to find some way to disable the value assignment when making the table visible again. Any suggestions?
    Thanks,

    Andrefs,
    In ADF BC, one way we deal with this is by adding a transient Boolean attribute to the View Object with getters (translate 0/1 to false/true) and setters (vice-versa). Then, we bind the UI to the transient attribute. It's been so long since I've done EJB's, but could you take a similar approach?
    John

  • Control the render true/false after rollback in ValueChangeListener

    Hello
    I am using Jdeveloper 11.1.1.3.0 ADF BC.
    I have this problem:
    in my page I have some LOV that conrol the rendering true/false for other components,
    and we achieved this by a valuechangeLisntener method in a backing bean. and
    everything works well. However when we use the rollback the rendering does not work as expected.
    to clarify the problem, suppose we have LOV1(has two values 1,2) that control the rendering of
    LOV2, when the user selects 1 LOV2 will be rendered and when the user selects 2 LOV2 will be hidden
    now suppose that the default value of LOV1 is 2, so LOV2 is hidden, now the user change the value
    of LOV1 to 1 so the LOV2 will be rendered, now the user press rollBack the value of LOV1 will
    reset to 2 but the LOV2 is still rendered on the page. which is not true.
    initially I thought that I need to call the valueChangeListener method again after rollback,
    I found something like this in this thread:
    Dynamic ValuechangeListener Addition
    but this is for Jdeveloper 10g and that method is deprecated in 11g, as someone comments, and
    he mentioned that this is not the best practice. is there any working solution for this problem?
    can anyone help please

    Thank you LovettWB and Navaneeth for your suggestion, but unfortunately the problem is still exist.
    I will a snapshot for my code and my page definition.
    my page definition is:
    <af:selectOneRadio value="#{bindings.Citizen.inputValue}"
                                         label="#{bindings.Citizen.label}"
                                         required="#{bindings.Citizen.hints.mandatory}"
                                         shortDesc="#{bindings.Citizen.hints.tooltip}"
                                         id="citizen" autoSubmit="true"
                                         immediate="true"
                                         valueChangeListener="#{StudentInformationBean.showCountriesLOV}"
                                         binding="#{StudentInformationBean.citizenRadio}">
                        <f:selectItems value="#{bindings.Citizen.items}" id="si6"/>
                      </af:selectOneRadio>
    <af:selectOneChoice value="#{bindings.CountryOfCitizenship.inputValue}"
                                          label="#{bindings.CountryOfCitizenship.label}"
                                          required="#{bindings.citizenValue.inputValue=='غير كويتي'}"
                                          shortDesc="#{bindings.CountryOfCitizenship.hints.tooltip}"
                                          id="soc2"
                                          partialTriggers="citizen"
                                          binding="#{StudentInformationBean.countryOfCitizenship}"
                                          requiredMessageDetail="#{bundle.non_ku_country}"
                                          visible="#{bindings.citizenValue.inputValue=='0'}">
                        <f:selectItems value="#{bindings.CountryOfCitizenship.items}"
                                       id="si5"/>
                      </af:selectOneChoice>                      and my code is in the valueChangeLisitener is:
        public void showCountriesLOV(ValueChangeEvent valueChangeEvent) {
               // Add event code here...
               FacesContext context = FacesContext.getCurrentInstance();
               if(valueChangeEvent.getNewValue().toString().equals("0"))
                 System.out.println("the new citizen value is " + valueChangeEvent.getNewValue().toString());
               //  this.countryOfCitizenship.setRendered(false); 
                 this.countryOfCitizenship.setVisible(false);
                 this.countryOfCitizenship.setRequired(false);
                 context.renderResponse();            
               else
                 System.out.println("the new citizen value is " + valueChangeEvent.getNewValue().toString());
             //  this.countryOfCitizenship.setRendered(true);
                 this.countryOfCitizenship.setVisible(true);
                 this.countryOfCitizenship.setRequired(true);
                 context.renderResponse();
          public void rollBack(ActionEvent actionEvent) {
            // Add event code here...
            OperationBinding operationBinding = bindings.getOperationBinding("Rollback");
            System.out.println("perform the rollback");
            Object result = operationBinding.execute();
              AdfFacesContext adffacesctx = AdfFacesContext.getCurrentInstance();
            adffacesctx.addPartialTarget(this.citizenRadio);
            public void setRollBackButton(RichCommandButton rollBackButton) {
            this.rollBackButton = rollBackButton;
        public RichCommandButton getRollBackButton() {
            return rollBackButton;
         }any help or suggestion please.
    Edited by: M.Jabr on Feb 7, 2011 12:26 AM
    Edited by: M.Jabr on Feb 7, 2011 12:29 AM

  • Panel.visible=true doesn't seem to work when logged in.

    Hello,
    I’m tryin to make a flex application. When a user logs in there appears an extra panel. I’m trying to make this work with pnl.visible=false and when logged in pnl.visible=true. But somewhere there must be an error cause the panel is not seen, when logged in. On the base state you have a login button which shows the loginstate when clicked. There you can give username and pass and a button which starts the function checklogin(event). All the code in this function works, except the pnlmonbeheer.visible=true., because when you log in successful and you go back to the base state and you then go to the ‘statetoeristingelogd’ state, the panel is still not visible. Here the code:
    private function checklogin(evt:ResultEvent):void
                            if(evt.result.loginsuccess == "yes")
                            _user = this.username.text;
                            currentState = "";
                            this.lblwelkom.text="Welkom " + _user;
                            pnlmonbeheer.visible=true;
                            if(evt.result.loginsuccess == "no")
                            mx.controls.Alert.show("Invalid username/password");
    The other button on the base state leads you to the state ‘statetoeristingelogd’. The panel ‘pnlmonbeheer’ that I want to make visible is on this state and is set invisible because of visible=”false”.
    <mx:State name="statetoeristingelogd" basedOn="statetoerist">
                      <mx:RemoveChild target="{button3}"/>
                      <mx:AddChild relativeTo="{panel2}" position="lastChild">
                            <mx:Panel  visible="false" x="0" y="348" width="250" height="111" layout="absolute" title="Beheer Monumenten" borderColor="#DEE438" backgroundColor="#B9BBBC" backgroundAlpha="0.7" id="pnlmonbeheer">
                                 <mx:Button x="8" y="6" label="Toevoegen" width="115" click="showaddmon();"/>
                                 <mx:Button x="133" y="6" label="Updaten" click="showupdatemon();"/>
                                 <mx:Button x="8" y="39" label="Verwijderen" click="deleteRow();"/>
                            </mx:Panel>
                      </mx:AddChild>
    Somehow the panel stays invisible
    Can someone help me please, thank you in advance..
        

    hi,
    enterState="pnlmonbeheer.visible=true"
    add this event in your state as following
    <mx:State name="statetoeristingelogd" basedOn="statetoerist" enterState="pnlmonbeheer.visible=true"> 
    if pnlmonbeheer becomes visible then it means pnlmonbeheer dont have visibility from the function checklogin because it may be not added yet to the stage during the state change so you may set its visibiliy on enterState event
    regards
       ATIF

  • How can I display True/False in my dropdownlist as "Yes" and "No"?

    Hi All,
    I want to bind a dropdownlist to a boolean value (so it's either true or false).  I'm particularly interested in using two-way binding to when the user changes from "yes" to "no" the boolean value automatically changes from "true" to "false."  But, I want the user to see "yes" and "no" as the options, rather than "true" and "false".
    How can I display "yes" and "no" and still take advantage of binding?  Or can I not use binding in this circumstance?
      -Josh

    Solution 1:
    In order to display Yes/No for True/False, you may specify labelFunction for the dropdownList.
    In MXML:
    <s:DropDownList labelFunction="myLabelFunction" />
    In actionscript:
    private var arr:ArrayCollection = new ArrayCollection(["true","false"]);
                private function mylabelFunction(item:Object):String
                    if(item.toString() == "true")
                        return "yes";
                    else return "No";
    OR
    Solution2:
    may be u can try making an array collection like
    private var arr:ArrayCollection = new ArrayCollection([{label:"yes",value:"true"},{label:"no",value:"false"}]);
    and specify labelField for the dropdownList like
    <s:DropDownList labelField="label" dataProvider="{arr}" />

  • Sound stops when set flash obj visibility to false on IE

    How can I prevent sound from stopping on IE when I set a
    flash <object> visibility to false, through javascript ?
    i.e.: document.getElementById('flashObj').style.visibility =
    'false';
    All other web browsers behave normally (they just hide the
    player, sound, as the movie, is keep playing on...).
    Any ideas?

    "yduab" <[email protected]> wrote in message
    news:e7oua3$hsk$[email protected]..
    >I made a flash animation with a backgroung music loop and
    buttons. When a
    > button is clicked, a video file embeded in a swf plays
    in a movieclip on the
    > stage. Also, I set the background music volume to 0 as
    to listen to the video
    > sound. The problem is that when the background music
    volume is changed, the
    > video plays but the audio changes the same. I tried to
    stop the background
    > music, and then the video sound also stops!
    > Can someone help?
    > Here is my code:
    > _root.my_sound = new Sound();
    > _root.my_sound.attachSound("music.mp3");
    > _root.my_sound.start(0,1000);
    > }
    > _root.["bt_mc"].onPress = function(){
    > _root.my_sound.setVolume(0); // or
    _root.my_sound.stop();
    > _root.videoDisplay.loadMovie(this.videoclip);
    //_root.videoDisplay is the
    > target mc
    > }
    To have separate volume levels you have to attach the sound
    objects to different movieclips like this..
    _root.my_sound = new Sound(one_mc);
    The movieclip can be just an empty clip that you make with
    createEmptyMovieClip.
    tralfaz

  • TRUE/FALSE problem

    I got a wired situation with a VI I wrote.
    I have a case TRUE/FALSE structure, and first of all, the true-part is
    ALWAYS first executed. When this part is done, I execute the false-case,
    for message handling and so on.
    But in the true case, I generate some data I want to use as a source in
    the false case.
    So in true case the string is an indicator, but in the false case, that
    string is the source for displaying. Does anyone know how to solve this.
    This true/false case is part of a loop. So I tried with a SHIFT
    REGISTER, but that doesn't seem to work.
    Any tip is welcome !
    Thanks
    Kristof

    Sorry I posted my message so early, mayby because the sunshine that lights
    my mind, but I have found a solution myself. Just putting the value in a
    loop and in the false case, connect the previous shift-register-value with
    the next....
    Thanks anyway !
    Kristof Poppe wrote:
    > I got a wired situation with a VI I wrote.
    > I have a case TRUE/FALSE structure, and first of all, the true-part is
    > ALWAYS first executed. When this part is done, I execute the false-case,
    > for message handling and so on.
    > But in the true case, I generate some data I want to use as a source in
    > the false case.
    > So in true case the string is an indicator, but in the false case, that
    > string is the source for displaying. Does anyone know how to solve this.
    > This true/false case is part
    of a loop. So I tried with a SHIFT
    > REGISTER, but that doesn't seem to work.
    > Any tip is welcome !
    >
    > Thanks
    >
    > Kristof

  • 1. True/False

    I am busy with Photoshop Basic course. I have 2 True/False questions that I need help with. If answer is False, I need an explanation.
    1. True/False? If you want to move the selected pixels, rather than the selection marquee, you should drag with the Move tool, not a selection tool.
    2. True/False? Double-clicking a type layer's "T" thumbnail switches to the Horizontal Type tool and selects all of the text on that layer.
    Can you people help me, please?
    Thank you
    Monya

    first is totally true
    and in the second one double ckicking goes into text editing in general..
    if the text layer was written with horizontal type tool then double ckicking will make you go into that type of typing mode,
    if you created text layer with vertical tool, then doubleckicking the T will take you to vertycally typing mode

  • Question About Multiple Choice/True/False Answer Alignment

    When I insert a multiple choice or true/false question, The second response (answer B for either question type, is mis-aligned with it's radio button:
    The Master Slide for these questions looks like this:
    I can't figure out how to align the answer with its radio button.  Any ideas?
    I'm using CP 7.0.1.237 on Windows 7.

    This is indeed a very random issue. I have seen this in earlier versions of Captivate as well. I always create my template files from the blank theme, so I don't think it is specific to the theme.
    As for solutions, sometimes changing the quality of slide to high worked, other times just reopening Captivate worked. Here are some of the solutions I have found on these forums:
    1.  Create one more answer than I need (ie for a 4 answer question, create 5 answers) and then delete answer B.
    2.  Uninstalled/reinstalled my Captivate 6 software
    Sreekanth

  • Why I can't have other attempts to answer the True/False quiz in Adobe Captivate after 1st time?

    Why I can't have other attempts to answer the True/False Quizuiz in Adobe Captivate after I answer it incorrectly the first time?

    Thanks Lily! I already did that and tried other things too.
    Is it possible to chat so that I can explain it more?
    Thanks again.

  • HideEffect does not play when setting visible to false

    HY,
    If i set a fade effect on WindowedApplication on hideEffect when i put visible to false, the fade effect does not run anymore. I found this similar problem in the bug tracker: http://bugs.adobe.com/jira/browse/SDK-14615
    I use Flex builder 3 with the sdk 3.2.0, i don't understand why this bug is not resolved at this time.
    thanks for you help

    Hi,
    If you are in a country that permits redownloads, delete track and go to iTunes Store > purchased and redownload. http://support.apple.com/kb/HT2519
    Jim

  • Building a case structure with four boolean (true/false) inputs.

    I currently have two boolean inputs that I would like to use to select cases in a case structure. I would like to have four cases, each one dependent on the true/false condtions of the two booleans. If boolean 1 =true, then case 1 should be used, if boolean 2=true, then case 2 should be used, etc.
    What structure should I use to convert these boolean inputs into numeric cases?

    Or build them in to an array and "Search 1d Array".  If you are only looking for a single bool being true, this would be easier because your cases could be {0,1,2,3} instead of {1,2,4,8}

  • Sum, total, or count true false data vs using the insert summary

    Please, does someone have specific knowledge on how to count total instances of true or false data vs using the insert summary?
    We have data such as:
         Name          Formula1        Formula2
    Detail level     Bob Barker          True          False
    Detail level     Bob Barker          False          True
    Detail level     Bob Barker          True          False
    Detail level     Bob Barker          True          False
    Group level                    (value)          (value)
    Detail level     Drew Carey          True          True
    Detail level     Drew Carey          False          True     
    Detail level     Drew Carey          False          False
    Group level                    (value)          (value)
    I would like to group by person and run a total in the group level but count only the true data, not every instance.  The insert summary wants to sum all instances formula1 or formula2 whether they are true or false, so Bob Barker will have a value of 4 for formula1 and a value of 4 for formula2 if the insert summary is used.  Our goal is to show Bob having a value of 3 for formula1 and a value of 1 for formula2, only counting the true instances.
    I was unsucessful using the insert summary, running totals, and my  if, then, else formula statements. 
    Any ideas or suggestions?

    Instead of using true/false (which is actually returning a 1 or a 0), try using a formula like this...
    IF {TableName.FieldName} = true condition THEN 1
    Notice there is no ELSE condition, which means that if the formula evaluates to false the result will be a null value. Null values are not included in counts.
    HTH,
    Jason

  • CP6 - True/False Question Type SCORM Problem

    We discovered a problem with CP6 and the True/False question type.  The screen shot below is the log file of what is passed to the LMS.  The question was a True/False question type.  The correct answer was False.  I selected False and the assessment showed that I got the answer correct.  However, the data that is being passed to the LMS is incorrect.  CP6 is sending a 't' when you select False and an 'f' when you select True.
    Yes, you can get around this by using a Multiple Choice question type and limit the answers to 2 with True and False as the options, but we should not have to do that.
    Any suggestions?

    There is a long discussion on Jim Leichliter's blog (captivatedev) about this. The team considered this to be correct, Jim disagrees.
    http://captivatedev.com/2012/12/04/captivate-true-false-question-bug/
    Cannot help you further,
    Lilybiri

Maybe you are looking for

  • How to upgrade Exchange 2007 from Sp1 to SP3 RU13

    Hi everyone, I have a mail system Exchange 2007 SP1 CAS and HUB with 3 servers.  The mailboxes are on a Windows Server 2008 Failover Cluster.  Domain controllers are Windows Server 2003 SP2  I have to update the mail system with Service Pack 3 and RU

  • Aging 7 Buckets - By Collector Report does not take RTF template

    Hi All. There is standard Receivables Report (Aging 7 Buckets - By Collector Report). We needed to have output of this report in nice pdf format. we created a RTF template using XML publsher 10.1.3.2. When we run the report from applications, It does

  • N95 8gb BT Connection Problem With BMW 5 series

    Hello everyone, I hope someone could help me with this. I just got my N95 8 gb & I have tried to connect my phone to my BMW58610 BT but it seems like it constanly drop ny itself & then coneecting again & drop & connect. I do not know how to get this

  • D2G Gingerbread Update - Touchscreen Issue

    Hi all.  Ever since the 4.3.3 update, there is a portion of my touchscreen about 1/4" wide that won't respond.  With the phone upright it's on the right side, with the keyboard extended it's at the top. It's driving me nuts, because I can't tap icons

  • Navigating among user interfaces

    I want to ask how do we use HTML style hyperlinks in Swing to support navigation from one user interface to another within the same application. Please give some code sample if possible. Thanks.