Component Event

Flex Flash Builder 4 - SDK 4.0 - Windows
Short Version Question:  What is the "state" of a child within a ViewStack after it has been created but while it is not currently the selectedChild? Is there an event dispatched when that child becomes the selectedChild other than the change event on the ViewStack itself.  One would think the show() event would do this,  but apparently if a component is not the selected, that does not mean it is hidden (not visible).
The problem here is that I want to call a function within the child components of the viewstack every time they are selected.  The first time the child is selected, I can use the creationComplete event.  But every time after that, I can't find an event that dispatches "Hey, I am now the selectedChild!".  If I use the change event on the ViewStack, that will work everytime after the first time, but causes an error the first time because the child has not completed creating yet when the function is called.
I have gotten around this before by creating a boolean variable for each child set to true after creation, then checking that var before sending the function call, but that seems really convoluted, and there just must be an easier way that I am missing.
Thanks
James S.

Set the ViewStack.creationPolicy = "all". This will force creation all of the members of the stack rather than creating them on-demand (selection). Then listen for the ViewStack.change event.

Similar Messages

  • Error 1046: Type was not found or was not a compile-time constant: Component Event.

    Hi Everyone..
    I am getting an Error 1046: Type was not found or was not a compile-time constant: Component Event.
    The ComponentEvent class has been imported,and also the event handling code is there. I am not sure what else is wrong, hope somebody can advise me. Thanks. The code is below, the point where the error occurs as indicated by the compiler has been highlighted.
    package 
    import flash.display.Sprite;
    import flash.media.Camera;
    import flash.media.Microphone;
    import flash.media.Video;
    import fl.controls.TextArea;
    import fl.controls.Button;
    import fl.controls.TextInput;
    import flash.events.SyncEvent;
    import flash.events.MouseEvent;
    import flash.events.FocusEvent;
    import flash.net.SharedObject;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.events.NetStatusEvent;
    import flash.events.FocusEvent;
    import flash.events.ComponentEvent;
    public class VideoChat extends Sprite
      private var button:Button;
      private var text_so:SharedObject; 
      private var textArea:TextArea;
      private var textInput:TextInput;
      private var chatName:TextInput; 
      private var nc:NetConnection;
      private var nsOut:NetStream;
      private var nsIn:NetStream;
      private var rtmpNow:String;
      private var msg:Boolean; 
      private var cam:Camera;
      private var mic:Microphone;
      private var vid:Video;
      public function VideoChat ()
       //Set up UI
       textArea = new TextArea();
       textArea.setSize(500,280);
       textArea.move(20,54);
       addChild(textArea);
       textInput = new TextInput();
       textInput.setSize(500,24);
       textInput.move(20,340);
       textInput.addEventListener(ComponentEvent.ENTER,checkKey);
       addChild(textInput);
       button = new Button();
       button.width=50;
       button.label="Send";
       button.move(20,370);
       button.addEventListener(MouseEvent.CLICK, sendMsg);
       addChild(button);
       chatName = new TextInput;
       chatName.setSize (100,24);
       chatName.move (80,370);
       chatName.text="<Enter Name>";
       chatName.addEventListener (FocusEvent.FOCUS_IN, cleanName);
       addChild(chatName); 
       //Connect
       rtmpNow="rtmp:/VideoChat ";  
       nc=new NetConnection;
       nc.connect (rtmpNow);
       nc.addEventListener(NetStatusEvent.NET_STATUS,doSO);
       cam = Camera.getCamera();
       mic=Microphone.getMicrophone();
       //Camera Settings
       cam.setKeyFrameInterval(15);
       cam.setMode (240, 180, 15, false);
       cam.setMotionLevel(35,3000);
       cam.setQuality(40000 / 8,0);
       //Microphone Settings
       mic.gain = 85;
       mic.rate=11;
       mic.setSilenceLevel (25,1000);
       mic.setUseEchoSuppression (true);
       //Video Setup
       vid=new Video(cam.width, cam.height);
       addChild (vid);
       vid.x=10, vid.y=20;  
       //Attach local video and camera
       vid.attachCamera(cam);  
      private function doSO(e:NetStatusEvent):void
       good=e.info.code == "NetConnection.Connect.Success";
       if(good)
        //Set up shared object
        text_so=SharedObject.getRemote("test", nc.uri, false);
        text_so.connect (nc);
        text_so.addEventListener(SyncEvent.SYNC, checkSO);
      private function checkSO(e:SyncEvent):void
       for (var chung:uint; change<e.changeList.length; chng++)
        switch(e.chageList[chng].code)
         case "clear":
          break;
         case "success":
          break;
         case "change":
          textArea.appendText (text_so.data.msg + "\n");
          break;
      private function cleanName(e:FocusEvent): void
       chatName.text="";
      private function sendMsg(e:MouseEvent):void
       noName=(chatName.text=="<Enter Name>" || chatName.text=="");
       if (noName)
         textArea.appendText("You must enter your name \n");
       else
        text_so.setProperty("msg", chatName.text +": " + textInput.text);
        textArea.appendText (chatName.text +": "+textInput.text +"\n");
        textInput.text="";
      private function checkKey (e:ComponentEvent):void
       noName=(chatName.text=="<Enter Name>" || chatName.text=="");
       if (noName)
         textArea.appendText("You must enter your name \n");
       else
        text_so.setProperty("msg", chatName.text +": " + textInput.text);
        textArea.appendText (chatName.text +": "+textInput.text +"\n");
        textInput.text="";
      //Create NetStream instances
      private function checkConnect  (e:NetStatusEvent):void
       msg=e.info.code == "NetConnection.Connect.Success";
       if(msg)
        nsOut=new NetStream(nc);
        nsIn=new NetStream(nc);
        //NetStream
        nsOut.attachAudio(mic);
        nsOut.attachCamera(cam);
        nsOut.publish("camstream");
        nsIn.play("camstream");

    Hi Guys...
    I have found out what is wrong. I was importing the wrong package the correct one should have been:
    import fl.events.ComponentEvent;
    instead of
    import flash.events.ComponentEvent;
    I hope this is helpful for anyone caught in a simillar situation as me...Thanks..

  • Flash 8 asset Xtra update - component event workaround

    Sorry to post so much about this. Lots of us are having major
    headaches because after the Flash 8 asset Xtra update Flash
    component events in Director don't behave as they once did.
    BUT I've discovered you can use a combination of
    addEventListener() and setCallback() to respond to events, at least
    with the button component. Fortunately this works with the new
    Shockwave player too. It’s a little convoluted, but at least
    clicking a button makes stuff happen now.
    It’s easier to let you look at it yourself than try to
    explain it, I’m getting brain dead from experimenting with
    this all evening. Click
    HERE
    to download the zip file.
    Please look through the code and see if you can come up with
    anything else to add. Hopefully smarter folks than me will be able
    to work more of this out. It doesn’t seem like we’re
    getting any help from Adobe on this. I posted a question on Tom
    Higgins’ blog today and got an auto response saying
    he’s on vacation until April 24 and won’t be checking
    email. He’s usually good about communicating with developers
    about Director, so with luck he’ll be able to help out.
    Optimally they’ll fix the durn thing. If you have time please
    post anything you discover regarding components after installing
    the new asset Xtra.

    I had a look at your file, and I noticed:
    function buttonClick(me,passedObj)
    // unfortunately this don't work
    for (var objProps in passedObj)
    ember("infoText").text += objProps;
    two things:
    First, I think what you're trying (getting info on the object
    properties) might only work in lingo.
    on buttonClick(me,passedObj,eventObj)
    --put a break point in here, and inspect the objects
    member("infoText").text = "label property: " &
    eventObj.target.label
    member("infoText").text = member("infoText").text &
    RETURN & "toggle property: " & eventObj.target.toggle
    end
    Second, I was playing with this, and discovered through the
    function's (undocumented) arguments array that the third argument
    is the event object which is another place to test for variables.
    An event object has a 'type' property (in this case "click"), and a
    'target' property which is the button. Hope this helps!

  • Custom AS3 Component / Event Definition for MXML Tag

    Custom AS3 Component / Event Definition for MXML Tag
    Exposing custom event in custom MXML tag.
    I have made an AS3 custom component named,
    'CustomListComponent'.
    Is a list type component extending UIComponent.
    When an item is clicked (selected) I generate a custom event
    named, 'selChange'
    I want the user to be able to use this tag, define a handler
    on the MXML tag.
    I tried using metadata like [Event("selChange")] in the
    component AS3 file with no luck.
    Any help / examples to expose a custom event from an AS3
    custom component to the MXML tag for the end user/developer would
    help significantly.
    Anyone? Thank you.

    Well, That did not take long.
    My mistake, Typo type.
    [Event(nane="selChange", type="flash.events.Event")]
    That is: naNe not naMe :(
    Thank you all for your time and responses.
    I WILL check my code more closely next time I post a
    question.
    P.S.: @VarioPegged : My code is big and not needed now. If
    you would like it anyway just message me. TY

  • Tree component event action

    Hello
    There's a page which contains the following 3 components: Input textfield, Button, Tree
    I made the following settings of them:
    I set the "event action" at the tree node, and so did I at the button properties.
    When I click on the button, the action runs and set the value of the Input textfield:
    �this.i_textField1.setValue("something");� - the Input textfield display it as it should.
    When I click on the tree node and the event action runs (it can be tracked in debug mode) which runs �this.i_textField1.setValue('something');�, but the textfield doesn't display it.
    Any suggestions?
    Thanks

    The root problem is that the tree node component always behaves as though it had an immediate property set to "true". You'll get the same behavior from button or hyperlink or any other action component is you set immediate="true". The text field submitted values are not cleared, and so the text field redisplays them instead of the value that is set in code or obtained by evaluating the binding on the session bean.
    There is a work-around. There is a page bean method, erase(), which will clear all submitted values. Call this before you set the new values, e.g.:
        public String treeNode1_action() {
            this.erase();
         textField2.setValue("Tree Node");
            staticText2.setValue("Tree Node");
         getSessionBean1().setTemp("Tree Node");
            return null;
    [/code
    // Gregory                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • UIX choice component event handling

    Hi, I am using UIX in JDEV 10G. My page has a few dependent uix choice components on it. The first choice populates the second choice box and so on. I am using primaryClientActions to handle firing the event of populating the choice box. Below is the EventHandler for the fired event. I have a viewObject and AppModule. I set the where clause on the viewobject with the parameters from the previous choice selection. My question is: How do I get my query results back to my UIX choice component. I thought if I called executequery() it would update the view Objects query and update my page, but I think I am missing a step.
    public static EventResult fminstEventHandler(BajaContext context,Page page,PageEvent event) throws Throwable
    result = new EventResult();
    fmInst = event.getParameter("FmName");
    DeptAppModuleImpl dam = new DeptAppModuleImpl();
    ViewObject deptView = dam.getDeptView1();
    deptView.setWhereClause("where inst ='" + fmInstNum +"' and dept != '*****' and guide_yr ='"+guideyr +"' union select 'ALL', '0' from dual");
    deptView.executeQuery();
    return result; //result is nothing right now.
    Thanks for your help.
    McKell

    Sure. Thanks for responding to my question. Below is the UIX file:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el"
    xmlns:myTemplate="CourseTransferTemplate">
    <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="CrsTranTemplate.uit"/>
    </templates>
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document xlmns="http://xmlns.oracle.com/uix/ui">
    <metaContainer>
    <!-- Set the page title -->
    <head title="Course Transfer Search"/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <!-- <formParameter name="event"/> -->
    <myTemplate:CourseTransferTemplate selectedTab="0"
    title="Course Transfer Search"
    xmlns:myTemplate="CourseTransferTemplate">
    <contents>
    <rawText
    text="<p>Welcome to the Utah System of Higher Education (USHE) Course Transfer Guide on the Web!
    <p>The USHE Course Transfer Guide provides course-by-course articulation and transfer information. It shows how a course at the institution you are transferring from (the 'from' school) articulates with a course at the institution to which you plan to transfer (the 'to' school). The USHE Course Transfer Guide has been developed by the Utah Transfer Articulation Committee and the ">
    <contents>
    <link text="Utah System of Higher Education"
    destination="http://www.utahsbr.edu"/>
    <rawText text="(USHE). It is updated every year by participating institutions and a new guide is published in the fall.<p>"/>
    </contents>
    </rawText>
    <!-- GuideYR -->
    <rawText text="Guide Year ">
    <contents>
    <choice model="${data.TransferGuideUIModel.GuideYr2}" name="GuideYr2" prompt="GuideYr2" >
    <primaryClientAction>
    <firePartialAction event="guideyrEvent"
    formSubmitted="true"
    />
    </primaryClientAction>
    <contents childData="${data.TransferGuideUIModel.GuideYr2.displayData}">
    <option model="${uix.current}" text="${uix.current.prompt}"
    value="${uix.current.prompt}" />
    </contents>
    </choice>
    </contents>
    </rawText>
    <!-- FmName -->
    <rawText text="From Institution ">
    <contents>
    <choice model="${data.TransferGuideUIModel.Name}"
    name="FmName" prompt="FmName">
    <primaryClientAction>
    <firePartialAction event="FmInstEvent"
    formSubmitted="true"
    targets="Department"/>
    </primaryClientAction>
    <contents
    childData="${data.TransferGuideUIModel.Name.displayData}">
    <option model="${uix.current}"
    text="${uix.current.prompt}"
    value="${uix.current.prompt}"/>
    </contents>
    </choice>
    </contents>
    </rawText>
    <!-- Dept -->
    <rawText text="From Department ">
    <contents>
    <choice model="${data.TransferGuideUIModel.Dept}" name="Dept" prompt="Dept">
    <primaryClientAction>
    <firePartialAction event="DepartmentEvent"
    formSubmitted="true"
    targets="Course"/>
    </primaryClientAction>
    <contents childData="${data.TransferGuideUIModel.Dept.displayData}">
    <option model="${uix.current}"/>
    </contents>
    </choice>
    </contents>
    </rawText>
    <!-- Crs -->
    <rawText text="From Course ">
    <contents>
    <choice id="Course" name="Crs" nodeID="Course">
    <primaryClientAction>
    <firePartialAction event="CourseEvent"
    formSubmitted="true"
    />
    </primaryClientAction>
    </choice>
    </contents>
    </rawText>
    <!-- ToName -->
    <rawText text="To Institution ">
    <contents>
    <choice model="${data.TransferGuideUIModel.Name}"
    name="ToName" prompt="ToName">
    <primaryClientAction>
    <firePartialAction event="ToInstEvent"
    formSubmitted="true"
    />
    </primaryClientAction>
    <contents
    childData="${data.TransferGuideUIModel.Name.displayData}">
    <option model="${uix.current}"
    text="${uix.current.prompt}"
    value="${uix.current.prompt}"/>
    </contents>
    </choice>
    </contents>
    </rawText>
    <button text="Find Articulations"/>
    <rawText text="<p>Choose the academic year you want to search for articulations. Then choose the institution you are transferring from. After you make your selection, a list of departments will be created for you to choose from. Once you choose your department, a list of courses will be created for you to refine your selection. You will then choose which institution you would like to transfer to (you may choose all institutions) and click on 'find articulations'. "/>
    </contents>
    <tabs/>
    <pageButtons/>
    <globalButtons/>
    <pageHeader/>
    <start/>
    <end/>
    <about/>
    <copyright/>
    <privacy/>
    <corporateBranding/>
    <productBranding/>
    </myTemplate:CourseTransferTemplate>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    <event name="*" source="FmName">
    <method class="mypackage1.EventHandlers" method="fminstEventHandler"/>
    </event>
    <event name="*" source="Department">
    <method class="mypackage1.EventHandlers" method="deptEventHandler"/>
    </event>
    <event name="*" source="GuideYr2">
    <method class="mypackage1.EventHandlers" method="guideyrEventHandler"/>
    </event>
    <event name="*" source="Course">
    <method class="mypackage1.EventHandlers" method="courseEventHandler"/>
    </event>
    <event name="*" source="ToName">
    <method class="mypackage1.EventHandlers" method="toinstEventHandler"/>
    </event>
    </handlers>
    </page>
    HERE IS THE EVENT HANDLER:
    public static EventResult fminstEventHandler(BajaContext context,Page page,PageEvent event) throws Throwable
    try
    con = new DBConnection();
    catch (SQLException e)
    System.out.println(e);
    fmInst = event.getParameter("FmName");
    ResultSet rset = con.query(namesql); //Here con connects to my database and preforms a query.
    while(rset.next())
    fmInstNum = rset.getString(1);
    System.out.println(fmInstNum);
    //DeptAppModule and DeptView are an Application Module and View Object I created from the JDeveloper wizards
    DeptAppModuleImpl dam = new DeptAppModuleImpl();
    ViewObject DeptView = dam.getDeptView1();
    DeptView.setWhereClause("where inst ='" + fmInstNum +"' and dept != '*****' and guide_yr ='"+guideyr +"' union select 'ALL', '0' from dual");
    DeptView.executeQuery();
    //This is where I don't know how to return the result from the query back to the uix choice component named "Dept"
    return new EventResult(page);
    Thanks you so much for your assistance. I might be approaching this completely wrong. I am new to JDeveloper and the UIX framework. Thank you again.
    McKell

  • Sink Composite Component Event in Parent Page

    Hi All,
    I have a conceptual mind-block around the use of a JSF 2.0 composite component with a parent page. I understand how to implement an ActionListener (and others) for a composite component's action but how is this wired-up for the parental page to consume? For example, I want my login composite component to perform authentication and when complete, inform the parent page's backing bean through the ActionListener to do some UI initialization work. The key here is the login component would say, "Hey, I'm done and the user is good. Your turn."
    Thanks in advance for the assistance.
    Peace.
    Chris
    Edited by: user10773481 on Oct 26, 2010 8:43 PM

    Thanks for the feedback. However, online examples (i.e. http://www.ibm.com/developerworks/java/library/j-jsf2fu3/index.html) show actionlisteners performing the work versus a composite component action doing the work THEN informing parents that work is complete. It is the later scenario I am trying to implement. Are you suggesting using System or Application level events to notify the parent of the completion of a unit of work? Thanks again.
    Edited by: user10773481 on Oct 27, 2010 9:06 PM

  • How to raise a component event via script

    Hi all i have a DateField in wich a set the text with the text property, and i would like to raise the CalendarLayoutChangeEvent event programmatically via the scripts code.
    How can i do that?
    Thanks.

    Ok, i did it, but this is my code:
    dispatchEvent(new Event(CalendarLayoutChangeEvent.CHANGE));
    i tried also with:
    data.dispatchEvent(new Event(CalendarLayoutChangeEvent.CHANGE));
    where data is my DateField component, but it did not work.
    Can you help me to find the right code?.
    Thanks.
    Skylander.

  • Button Component Event Listeners

    We have begun developing a component based eLearning
    template, One of our developers (who isn't component friendly)
    wants to add mouse over events to the Button component (I think
    they are just being difficult). I don't see where this can be done,
    but I hate to say no. Any suggestions? Even a definite yes or no
    will help.
    We are working on Flash 8, and are currently limited to
    developing for player 6 ( I know, it sucks).

    rritchey, the rollOver event does not work. Your earlier
    solution works in the standard button component, only the rollover
    state breaks, the the down and up states still work. In my custom
    button all states break. So I consider this a half fix.
    dzedward, thanks for the definite nyet. Otherwise I would
    obsess over this thing even though it is something we plan not to
    do, I just want to be sure before I say can't and won't.
    Thanks y'all.

  • FLVPlayBack component events

    I was just trying to get events back from my flv component and is seems this is not as accessible as I thought it should be.
    I was thinking I could do something like this:
    flvComponent.addEventListener(FLVPlayback.PLAYING, playingState);
    But that does not seem to be possible? Is that true?
    I am now doing it like this, but this seems a bit convoluted, compared to what I thought it could be.
    flvComponent.addEventListener(VideoEvent.STATE_CHANGE, videoStateChange);
    private function videoStateChange(e:VideoEvent):void
                   switch(e.state)
                        case "buffering":
                             break;
                        case "connectionError":
                             break;
                        case "disconnected":
                             break;
    Is there a way to do it like I have it in the first line?
    Thanks a lot for any help!!!

    I am not well-addressed in video matters, but when I look thru the events of the FLVPlayBack component I don't see a PLAYING event associated with it.  I do see a VideoEvent.PLAYING_STATE_ENTERED  event and a variety of others that indicate various statuses being initiated.  Have you tried that event using the approach you want to take?  If you look thru the help docs you should find the complete set of them tabulated.

  • Firing component event PROGRAMATICALLY

    If I have a event that does some work in it's event code adn then I want another component to fire the event of the first component, how can I do this? For instance I have a slider that does some stuff when it is moved, but I also have a spinner that is essentially hooked to the slider (when either move the other does too) but that is merely a setValue() call on each, but when the spinner is changed I want to fire the sliders event, is this possible?

    My point is not how to detect spinner changes, adding listeners and catchign events is simple, I am interested in how to fire another components event programatically, so a cascade effect or a plain old way to make a button press occur with a line or two of code.

  • Tree component events

    Given there is no tree component in Flash CS3, I used the following tutorial http://developer.yahoo.com/flash/astra-flash/tree/ and managed to populate the tree from an xml file.  However I am now finding it difficult to perform certain actions such as:
    - adding/deleting items from the tree
    - save tree back to xml format
    - copy child nodes from one tree to another
    Can someone help me please, as I've been going round in circles this whole day without success

    try making changes to the underlying data itself (ie the xml) rather than the tree
    look at the inherited public methods here: http://developer.yahoo.com/flash/astra-flash/classreference/com/yahoo/astra/fl/controls/Tr ee.html#methodSummary

  • Trappin JSF component events

    We are recording the events raised by html elements on the IE browser through the IWebBrowser2 and IHtmlelement interfaces.
    However,we needed a similar mechanism for trapping the events raised by the JSF elements on the page.
    What is the way to achieve this - either through javascript or COM interfaces.
    Any pointers would be very helpful.
    Thanks in advance.

    jsf components has valuechangelistener.. you can use it for trapping events

  • Overlapping component event trigger problem

    I create a layeredpane, two levels there...top level with a jlabel with image...bottom level is a jbutton...i need to put the jlabel just above the button. these all done..both the button and jlabel have actionlistener associate with them...now the problem is, once i click the jlabel, both actionlistener will receive the actionevent and trigger some function....how do i make the button's listener do not response to the click when i click the label above it....thanks....

    well, this is the code snippets
    JLayeredPane layeredPane=new JLayeredPane();
         JPanel buttonPanel=createButtonPanel();
         Insets insets=layeredPane.getInsets();
         buttonPanel.setBounds(insets.left, insets.top, 800, 50);
         layeredPane.add(buttonPanel,new Integer(10));
         JLabel triangle=new JLabel(createIcon("icons/triangle2.png",9,10));
         triangle.setBounds(insets.left+525, 0, 9, 10);
            triangle.addActionListener(new labelAction());
         layeredPane.add(triangle,new Integer(20));
         return layeredPane;

  • Using activex component in openGL app:  mouse event issues.....

    i'm trying to get the Flash ActiveX control to work in an
    OpenGL app. so far i've managed to get the bitmap data and map it
    to a texture succesfully. but i'm having problems getting the mouse
    interaction to work.
    i get an hWnd from IShockWaveFlash's IOleWindow. when i send
    mouse messages to it, the mouse is interpreted correctly by
    actionscript (for example, i have a custom mouse cursor tracking
    _xmouse, _ymouse which works fine).
    however, buttons do not behave correctly. rollover is
    erratic, and only in rare circumstances can i get a button's
    onPress handler to fire.
    am i sending the mouse events in correctly? any ideas of any
    other way to send them in?

    Thank you for you mail,
    After I read this article
    http://digital.ni.com/public.nsf/3efedde4322fef198​62567740067f3cc/610540bb3ea4ebdd862568960055e498?O​penDocument
    I realized that ActiveX events are not supported on CVI 5.01 at all since
    its introduced as a new feature of CVI 5.5
    "Azucena" wrote:
    >Daniel,>>Have you tried the function CA_RegisterEventCallback function?
    (I am using>CVI 5.5)>>This function is used by the functions generated by
    the Automation>Controller Instrument Driver Wizard.>It is not intended to
    be used directly.>>It basically registers a callback for an ActiveX Automation
    server object>event.>To register the callback, you must specify the CAObjHandle
    of the server>object from which you want to receive events.>>W
    ith CVI 5.5,
    there is an example for IE with Active X under the>samples/activeX directory.>>Hope
    this helps,>>Azucena>>"Daniel Bentolila" wrote in message>news:[email protected]..>>>>
    Has anybody tried to capture an ActiveX component event in a CVI>application>>
    ?>>>> for example I've created a new instance of the Internet Explorer>application>>
    from the CVI , using the ActiveX Automation controler I choosed the>Microsoft>>
    internet controls then I selected IWebBrowser2 and the IWebBrowserEvents2>>
    classes and generated the fp file for the CVI.>> Under the the IWebBrowserEvents2
    I see there are events fucntion for>example>> OnQuit, and I wanted my CVI
    app. to attach the quit event when the user>closes>> the IE window.>> Now
    at this point I expected to find some mechanism that let me to install>>
    some callback function where I can put my customised code to the quit>event,>>
    somehow I have to tell the IE to call my function whenever the OnQuit>callback>>
    fun
    ction is attached and I don't know how to do this.>>

Maybe you are looking for