Determining when a JTable's model event is changed

Hello,
I have a JTable and I want a class I programmed to register to TableModelEvent events of the table model. The problem is that if the table model is changed, my class will not be registered to the events anymore. Is there a way to get notified whenever the table model is changed so I can register my class to the new model?
Thanks.

Swing related questions should be posted in the Swing forum.
Since you did post the question there, then you should be responding to that posting stating that you have an answer so people, like me, don't waste their time reading a question that has already been answered.

Similar Messages

  • When I transfer photos as events, they change their order from iPhoto on my Mac, how do I stop this?

    When I transfer photos as events, to my iPad they change their order from iPhoto on my Mac, how do I stop this?

    Thank you for your response.
    I am sorry I should have said Image Capture not Previews. The files end up as duplicates on my desktop or in Pictures. I was told by someone that the same thing happens in iPhoto as well as not being able to select which photos to save and that using Image Capture should be better.
    My iPhoto is version 8.1.2 and Image Capture is 6.0.1.
    Thanks
    Desmond

  • G/L determine when do the costing run

    Hi Experts,
    Could you pls tell me hwo the G/L account determined when the std price of material is changed during costing run?
    The inventory account should be from the OBYC-BSX. Then what about the offsetting G/L?
    Thanks
    Jimmy

    > hwo the G/L account determined when the std price of material is changed during costing run?
    PRD"  " or PRDPRA. I don't remember exactly which. Do the transaction and find it out yourself.
    You know, accounting entry only arises at the third step - releasing. (1.Costing, 2.marking, 3.releasing.)
    If you use CK40N, you have selection and BOM explosion before those, needless to say.
    Rgds, M

  • E-mail delay using "Event Data Change" in process chain

    Hi Experts.
    I can´t figure out why my process chain is taking so long to deliver a simple e-mail.
    The BEx Broadcast Configuration is working fine. When I run it manually, the e-mail comes instantly. But when I use process chain (Event Data Change), it takes hours to receive the e-mail. The option to run after the infoprovider data change is set for this configuration.
    Is there any additional configuration I have to check?
    All answers are welcome!
    Kind Regards,
    TP

    Hi Arvind. Thanks for your repply.
    I was already checking the SOST and also SCOT and RSBATCH to see if the jobs are running fine, and no problems so far.
    How can I check the IDOC´s?
    Thanks in advance.
    TP

  • Handling EDT issues when listening to model events with ModelViewPresenter

    I'm planning on using model-view-presenter (passive screen/humble dialog variant) http://martinfowler.com/eaaDev/PassiveScreen.html as the basis for my Swing application.
    view <-> presenter <-> model
    The view is very thin and dumb and only shows what presenter tells it to. Presenter listens to UI events from the view, updates the model based on them, listens to model update events, and reads view state and updates view state.
    I'm now searching for a good practise for handling EDT-threading problem. The model is inherently multithreaded in the sense that we have several threads running concurrently. They for example fetch data from different sources and update the model accordingly. An event is created, presenter listens to it and updates the view.
    There's also operations that the user initiates. Those start in EDT, presenter does some actions on the model and possibly updates the view state as a result. If the action is fast, the whole thing can be done in EDT. If the operation takes a long time, the processing needs to jump out of EDT at some point to not block the UI.
    When thinking about the events that are created from model due to some background thread, where should we jump back to EDT? There's options:
    a) jump to EDT when presenter updates the view
    view (EDT) <- presenter (either EDT or other thread) <- model (either EDT or other thread)
    b) jump to EDT when moving to presenter layer
    view (EDT) <- presenter (EDT) <- model (either EDT or other thread)
    a)
    - could be implemented by creating an AOP aspect for all View interfaces(?) The aspect would jump to EDT if not there yet always when any method of the interface is called
    - if one ModelEvent is received in non-EDT thread in Presenter, and 15 different View setters need to be called to update the view state, causes 15 separate SwingUtilities.invokeLater() calls...problem?
    - model events and eventlisteners are straight forward to implement. Presenter and model do not need to be aware of Swing (existence of event dispatch thread)
    - Presenter is multithreaded and presenter objects need to be implemented so that threading problems do not occur
    b)
    - could be implemented for example by creating special model EventListener implementations that jump back to EDT when event is received
    - model events and eventlisteners are not as straightforward to do as with a). Somewhere the events need to jump to EDT (event source or listener) and you cannot code just "simple plain" listeners and event sources
    - Presenter needs to be aware of Swing (existence of event dispatch thread and need to jump back to it when events come from model) at least in the sense that it uses the correct EventListener implementations
    - View interface could still check that thread = EDT when methods are called (using similar AOP) to ensure threading rules are not broken
    - Presenter can be single threaded (always in EDT) and presenter implementer does not need to worry as much about threading
    - note that above point requires that user-initiated long running operations, that can't be run in EDT, need to jump from EDT the model layer. If view initiates new non-EDT threads (for example using SwingWorker), Presenter still does have multiple threads running on it (although only "one way", from view to model) and needs to be made threadsafe. This is starting to sound bad, but even if Presenter is single threaded only "one way", it may still be easier to implement than presenter that is completely multithreaded?
    I think major point in deciding is the difficulty of creating thread safe Presenters. Thread safe code is notoriously difficult to implement and even things that seem trivial at first sight can cause big problems. I can't help thinking that since the application's core is already multithreaded by nature, how much more difficult can it be to make the Presenters thread safe as well? Presenters should be quite simple in any case, can receiving events from model and calling a few setters on the view cause threading problems?
    Note that this problem is not limited to programs where background threads update the data....any program where some long running operations are run outside of EDT, and may cause events that are listened to in some presenter, has to solve this issue.
    Any views or ideas?

    RickyT wrote:
    Hello Helpful Nokia Users,
    When I am using my BH 103 blue tooth stereo earphones to listen to music on my N900, the sound drops out for about half a second (or less) then the music sounds slower (like a record player that has been slowed down) for about 4 seconds, then goes back to normal. This sometimes happens on each song, one after the other, sometimes it is just @ random times.
    This NEVER happens when using plug in head phones or when I hook it up to my stereo.
    The BH 103 are about 2 years old.... would the battery be failing? Causing them to run out of power super quickly? My N95 8GB used to beep when the battery in the earphones was low, would the N900 be "pausing" instead?
    Are the BH 103 not compatiable with the N900.... even though Nokia store lists them as accessories. Would I be better off with a newer model of ear phones?
    Cheers for your help!
    i think its the battery issue .
    Reality is wrong....dreams are for real... 2pac .
    don't forget to hit that green kudos

  • TS3999 In the last week when changing text notes in outlook appointments or all day events, the changes appear on my pc screen, iphone & ipad but when I print the changes are not there, the old text prints that has been deleted

    In the last week when changing test notes in Outlook appointments or all day events, the changes appear on my PC,  Iphone & Ipad, but when I print my calendar they do not print.  I get the old text or deleted text from the printer copy of my calendar.  What is going on?

    Thanks Sig. The information is here: Anything useful stand out?
    Battery Information:
      Model Information:
      Serial Number:    9G1130CJVD3MA
      Manufacturer:    DP
      Device Name:    bq20z451
      Pack Lot Code:    0000
      PCB Lot Code:    0000
      Firmware Version:    0201
      Hardware Revision:    0002
      Cell Revision:    0158
      Charge Information:
      Charge Remaining (mAh):    5663
      Fully Charged:    Yes
      Charging:    No
      Full Charge Capacity (mAh):    5663
      Health Information:
      Cycle Count:    59
      Condition:    Normal
      Battery Installed:    Yes
      Amperage (mA):    261
      Voltage (mV):    12574
    System Power Settings:
      AC Power:
      System Sleep Timer (Minutes):    10
      Disk Sleep Timer (Minutes):    10
      Display Sleep Timer (Minutes):    10
      Wake on AC Change:    No
      Wake on Clamshell Open:    Yes
      Wake on LAN:    Yes
      Current Power Source:    Yes
      Display Sleep Uses Dim:    Yes
      Battery Power:
      System Sleep Timer (Minutes):    10
      Disk Sleep Timer (Minutes):    10
      Display Sleep Timer (Minutes):    2
      Wake on AC Change:    No
      Wake on Clamshell Open:    Yes
      Display Sleep Uses Dim:    Yes
      Reduce Brightness:    Yes
    Hardware Configuration:
      UPS Installed:    No
    AC Charger Information:
      Connected:    Yes
      ID:    0x0100
      Wattage (W):    60
      Revision:    0x0000
      Family:    0x00ba
      Serial Number:    0x00262704
      Charging:    No

  • Determine when a QT video has finished playing w/ javascript

    I need to determine when a video clip is finished playing so that I can trigger a function to perform other actions. I can find functions on how to monitor loading & that sort of stuff. But, I can't find a way to monitor when it's finished playing.
    The video clip will be loaded 100% first, then played without any controls (forced to play through), and then hopefully have a function to play it.
    I could always try to determine that if it's a 30 second clip that 30 seconds after it's loaded 100% to perform the action, but I'd rather just have something monitor when it's finished.
    Any suggestions?
    Thank you,
    scott

    Hi Tracy thanks for your reply!
    Yep sorry I know swfloader cant play video but what I have is
    actually a music video swf.
    Would you be able to give me a small example of how i can
    listen for that event please because I have tried listening for a
    'complete' event but it never gets fired?
    Many thanks
    Flexchief

  • Determining when an adjustment layer holds information.

    Is it possible using javascript to determine when an adjustment layer holds information? I'll go into some detail as to what I mean.
    I run a combination script/actions to set up a bunch of layers based on what I'm doing. Not all layers will get used in any given image. For example, when I'm retouching a model's photo, I run one that sets up a bunch of adjustment layers to enhance the color in the models eyes, or to change the color depending on what I'm doing. This sets up seven layers, each for a different color, then a few for highlights and/or catchlights. I may use between 0 and 3 of these layers. Each adjustment layer has an inverse mask (black) which I paint white in the areas I want to enhance.
    Now, is there an easy way to determine which of these masks are pure black and which have been painted onto? Also, is there an easy way to determine on an adjustment layer such as curves, levels, hue/saturation, etc. whether any adjustments have been made or if they are still in default? I'm guessing the best way would be to first check the mask to see if it's not all black and if it isn't, then check for adjustments.

    I was not really happy with the way I was testing for default settings. I was afraid that the simple replace text I was using might fail in some cases. It turns out that I was right. So here is a new set of functions. These I feel good about using.
    All of the functions need this CRC code.
      JavaScript source code        March 10, 2006
      Copyright (c) 2003-2006 Scandinavian Digital Systems AB
      Internet: http://www.digsys.se
      Freeware: The source code and its methods and algorithms may be
                used as desired without restrictions.
      CRC-32 (as it is in ZMODEM) in table form
      Copyright (C) 1986 Gary S. Brown. You may use this program, or
      code or tables extracted from it, as desired without restriction.
      Modified by Anders Danielsson, February 5, 1989 and March 10, 2006.
      This is also known as FCS-32 (as it is in PPP), described in
      RFC-1662 by William Allen Simpson, see RFC-1662 for references.
    var Crc32Tab = new Array( /* CRC polynomial 0xEDB88320 */
      C/C++ language:
      unsigned long Crc32Tab[] = {...};
    0x00000000,0x77073096,0xEE0E612C,0x990951BA,0x076DC419,0x706AF48F,0xE963A535,0x9E6495A3,
    0x0EDB8832,0x79DCB8A4,0xE0D5E91E,0x97D2D988,0x09B64C2B,0x7EB17CBD,0xE7B82D07,0x90BF1D91,
    0x1DB71064,0x6AB020F2,0xF3B97148,0x84BE41DE,0x1ADAD47D,0x6DDDE4EB,0xF4D4B551,0x83D385C7,
    0x136C9856,0x646BA8C0,0xFD62F97A,0x8A65C9EC,0x14015C4F,0x63066CD9,0xFA0F3D63,0x8D080DF5,
    0x3B6E20C8,0x4C69105E,0xD56041E4,0xA2677172,0x3C03E4D1,0x4B04D447,0xD20D85FD,0xA50AB56B,
    0x35B5A8FA,0x42B2986C,0xDBBBC9D6,0xACBCF940,0x32D86CE3,0x45DF5C75,0xDCD60DCF,0xABD13D59,
    0x26D930AC,0x51DE003A,0xC8D75180,0xBFD06116,0x21B4F4B5,0x56B3C423,0xCFBA9599,0xB8BDA50F,
    0x2802B89E,0x5F058808,0xC60CD9B2,0xB10BE924,0x2F6F7C87,0x58684C11,0xC1611DAB,0xB6662D3D,
    0x76DC4190,0x01DB7106,0x98D220BC,0xEFD5102A,0x71B18589,0x06B6B51F,0x9FBFE4A5,0xE8B8D433,
    0x7807C9A2,0x0F00F934,0x9609A88E,0xE10E9818,0x7F6A0DBB,0x086D3D2D,0x91646C97,0xE6635C01,
    0x6B6B51F4,0x1C6C6162,0x856530D8,0xF262004E,0x6C0695ED,0x1B01A57B,0x8208F4C1,0xF50FC457,
    0x65B0D9C6,0x12B7E950,0x8BBEB8EA,0xFCB9887C,0x62DD1DDF,0x15DA2D49,0x8CD37CF3,0xFBD44C65,
    0x4DB26158,0x3AB551CE,0xA3BC0074,0xD4BB30E2,0x4ADFA541,0x3DD895D7,0xA4D1C46D,0xD3D6F4FB,
    0x4369E96A,0x346ED9FC,0xAD678846,0xDA60B8D0,0x44042D73,0x33031DE5,0xAA0A4C5F,0xDD0D7CC9,
    0x5005713C,0x270241AA,0xBE0B1010,0xC90C2086,0x5768B525,0x206F85B3,0xB966D409,0xCE61E49F,
    0x5EDEF90E,0x29D9C998,0xB0D09822,0xC7D7A8B4,0x59B33D17,0x2EB40D81,0xB7BD5C3B,0xC0BA6CAD,
    0xEDB88320,0x9ABFB3B6,0x03B6E20C,0x74B1D29A,0xEAD54739,0x9DD277AF,0x04DB2615,0x73DC1683,
    0xE3630B12,0x94643B84,0x0D6D6A3E,0x7A6A5AA8,0xE40ECF0B,0x9309FF9D,0x0A00AE27,0x7D079EB1,
    0xF00F9344,0x8708A3D2,0x1E01F268,0x6906C2FE,0xF762575D,0x806567CB,0x196C3671,0x6E6B06E7,
    0xFED41B76,0x89D32BE0,0x10DA7A5A,0x67DD4ACC,0xF9B9DF6F,0x8EBEEFF9,0x17B7BE43,0x60B08ED5,
    0xD6D6A3E8,0xA1D1937E,0x38D8C2C4,0x4FDFF252,0xD1BB67F1,0xA6BC5767,0x3FB506DD,0x48B2364B,
    0xD80D2BDA,0xAF0A1B4C,0x36034AF6,0x41047A60,0xDF60EFC3,0xA867DF55,0x316E8EEF,0x4669BE79,
    0xCB61B38C,0xBC66831A,0x256FD2A0,0x5268E236,0xCC0C7795,0xBB0B4703,0x220216B9,0x5505262F,
    0xC5BA3BBE,0xB2BD0B28,0x2BB45A92,0x5CB36A04,0xC2D7FFA7,0xB5D0CF31,0x2CD99E8B,0x5BDEAE1D,
    0x9B64C2B0,0xEC63F226,0x756AA39C,0x026D930A,0x9C0906A9,0xEB0E363F,0x72076785,0x05005713,
    0x95BF4A82,0xE2B87A14,0x7BB12BAE,0x0CB61B38,0x92D28E9B,0xE5D5BE0D,0x7CDCEFB7,0x0BDBDF21,
    0x86D3D2D4,0xF1D4E242,0x68DDB3F8,0x1FDA836E,0x81BE16CD,0xF6B9265B,0x6FB077E1,0x18B74777,
    0x88085AE6,0xFF0F6A70,0x66063BCA,0x11010B5C,0x8F659EFF,0xF862AE69,0x616BFFD3,0x166CCF45,
    0xA00AE278,0xD70DD2EE,0x4E048354,0x3903B3C2,0xA7672661,0xD06016F7,0x4969474D,0x3E6E77DB,
    0xAED16A4A,0xD9D65ADC,0x40DF0B66,0x37D83BF0,0xA9BCAE53,0xDEBB9EC5,0x47B2CF7F,0x30B5FFE9,
    0xBDBDF21C,0xCABAC28A,0x53B39330,0x24B4A3A6,0xBAD03605,0xCDD70693,0x54DE5729,0x23D967BF,
    0xB3667A2E,0xC4614AB8,0x5D681B02,0x2A6F2B94,0xB40BBE37,0xC30C8EA1,0x5A05DF1B,0x2D02EF8D);
    function Crc32Add(crc,c)
      'crc' should be initialized to 0xFFFFFFFF and after the computation it should be
      complemented (inverted).
      CRC-32 is also known as FCS-32.
      If the FCS-32 is calculated over the data and over the complemented FCS-32, the
      result will always be 0xDEBB20E3 (without the complementation).
      return Crc32Tab[(crc^c)&0xFF]^((crc>>8)&0xFFFFFF);
      C/C++ language:
      inline unsigned long Crc32Add(unsigned long crc, unsigned char c)
        return Crc32Tab[(unsigned char)crc^c]^(crc>>8);
      Application functions that calculates CRC of a string
    function Crc32Str(str)
      var n;
      var len=str.length;
      var crc;
      crc=0xFFFFFFFF;
      for (n=0; n<len; n++)
        crc=Crc32Add(crc,str.charCodeAt(n));
      return crc^0xFFFFFFFF;
      Hex convert functions
    function Hex32(val)
      Convert value as 32-bit unsigned integer to 8 digit hexadecimal number prefixed with "0x".
      var n;
      var str1;
      var str2;
      n=val&0xFFFF;
      str1=n.toString(16).toUpperCase();
      while (str1.length<4)
        str1="0"+str1;
      n=(val>>>16)&0xFFFF;
      str2=n.toString(16).toUpperCase();
      while (str2.length<4)
        str2="0"+str2;
      return "0x"+str2+str1;
    isDefaultHueSatAdjustment();
    function isDefaultHueSatAdjustment(){
         if(app.activeDocument.activeLayer.kind != LayerKind.HUESATURATION ) return;
         var ref = new ActionReference();
         ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
         var desc = executeActionGet(ref).getList(stringIDToTypeID('adjustment')).getObjectValue(0);
         var rawData = desc.getData(stringIDToTypeID('legacyContentData'));
         var str = Hex32(Crc32Str(rawData));
         if( str == '0xB83ED6B1' ) return true;
         return false;
    isDefaultColorBalanceAdjustment();
    function isDefaultColorBalanceAdjustment(){
         if(app.activeDocument.activeLayer.kind != LayerKind.COLORBALANCE ) return;
         var ref = new ActionReference();
         ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
         var desc = executeActionGet(ref).getList(stringIDToTypeID('adjustment')).getObjectValue(0);
         var rawData = desc.getData(stringIDToTypeID('legacyContentData'));
         var str = Hex32(Crc32Str(rawData));
         if( str == '0x16CEAACC' ) return true;
         return false;
    isDefaultCurvesAdjustment();
    function isDefaultCurvesAdjustment(){
         if(app.activeDocument.activeLayer.kind !=  LayerKind.CURVES ) return;
         var ref = new ActionReference();
         ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
         var desc = executeActionGet(ref).getList(stringIDToTypeID('adjustment')).getObjectValue(0);
         var rawData = desc.getData(stringIDToTypeID('legacyContentData'));
         var str = Hex32(Crc32Str(rawData));
         if( str == '0xF5315AF8' ) return true;
         return false;
    isDefaultLevelsAdjustment();
    function isDefaultLevelsAdjustment(){
         if(app.activeDocument.activeLayer.kind != LayerKind.LEVELS ) return;
         var ref = new ActionReference();
         ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
         var desc = executeActionGet(ref).getList(stringIDToTypeID('adjustment')).getObjectValue(0);
         var rawData = desc.getData(stringIDToTypeID('legacyContentData'));
         var str = Hex32(Crc32Str(rawData));
         if( str == '0x02A5FFD5' ) return true;
         return false;
    isDefaultBWAdjustment();
    function isDefaultBWAdjustment(){
         if(app.activeDocument.activeLayer.kind != LayerKind.BLACKANDWHITE ) return;
         var ref = new ActionReference();
         ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
         var desc = executeActionGet(ref).getList(stringIDToTypeID('adjustment')).getObjectValue(0);
         var rawData = desc.getData(stringIDToTypeID('legacyContentData'));
         var str = Hex32(Crc32Str(rawData));
         if( str == '0x8BE5167D' ) return true;
         return false;

  • Determining when Loader is finished loading

    How can I determine when myLoader has finished loading all
    the thumbnail images loaded into it using XML. The
    contentLoaderInfo 'complete' event fires every time an image is
    loaded in. I need to know when all the images have completely
    finished loaded. Ultimately I need to trace the 'height' property
    of myLoader's parent container_mc. I keep getting '0' as a result.
    Thank you!

    What I would do - is build your array of elements (push) an
    element on the array for every Image you have to load. Then all of
    your Image Loader COMPLETE events should be directed at one
    function. This function should just increment a counter. In this
    function it should then say if counter >= array.length then all
    is loaded and we can resize the element(s) or find out their real
    dimensions.

  • Trouble finding way to determin when video is complete

    here's the url to this project:
    http://www.mespinach.com/picNpic/
    A video starts playing when project loads.  Button ONE  pauses the video and places a smaller video over the first video.  When this second video completes I would like it to be removed and the first video resumed.  As it's currently written I have to use button Two to accomplish this task.  If someone could show me ho to determin when video is complete then I won't need to use button Two.
    here's my code:
    import fl.controls.ComboBox;
    import fl.video.*;
    import flash.filters.*;
    var connection:NetConnection = new NetConnection();
    var connection1:NetConnection = new NetConnection();
    var stream:NetStream;
    var stream1:NetStream;
    var md_obj:Object = new Object();
    var md_obj1:Object = new Object();
    var dsObject:DropShadowFilter = new DropShadowFilter();
    var bvlObject:BevelFilter = new BevelFilter();
    var vidContainer:MovieClip = new MovieClip();
    var vid:Video = new Video(320,240);
    var vid1:Video = new Video(200,150);
    var one_btn:One = new One();
    var two_btn:Two = new Two();
    var three_btn:Three = new Three();
    one_btn.addEventListener(MouseEvent.CLICK, onOne);
    two_btn.addEventListener(MouseEvent.CLICK, onTwo);
    three_btn.addEventListener(MouseEvent.CLICK, onThree);
    function onOne(e:MouseEvent):void {
        vid1.x = vid.x + 100;
        vid1.y = vid.y + 100;
        vid1.width = vid.width - 100;
        vid1.height = vid.height - 100;
        vidContainer.addChild(vid1);
        stream.pause();
        stream1.play("BnBshortSnd.flv");
    //    stream1.addEventListener(Video.Complete, onComplete);
    function onComplete():void{
        trace("I'm here!!");
        stream1.close();
        vidContainer.removeChild(vid1);
        stream.resume();
    function onTwo(e:MouseEvent):void {
        stream1.close();
        vidContainer.removeChild(vid1);
        stream.resume();
    function onThree(e:MouseEvent):void {
    one_btn.x = stage.stageWidth * .75;
    one_btn.y = 50;
    two_btn.x = stage.stageWidth * .75;
    two_btn.y = 75;
    three_btn.x = stage.stageWidth * .75;
    three_btn.y = 100;
    one_btn.filters = [dsObject, bvlObject];
    two_btn.filters = [dsObject, bvlObject];
    three_btn.filters = [dsObject, bvlObject];
    addChild(one_btn);
    addChild(two_btn);
    addChild(three_btn);
    connection.connect(null);
    connection1.connect(null);
    stream = new NetStream(connection);
    stream1 = new NetStream(connection1);
    vid.attachNetStream(stream);
    vid1.attachNetStream(stream1);
    md_obj1.onMetaData = metaData;
    md_obj.onMetaData = metaData;
    stream.client = md_obj;
    stream1.client = md_obj1;
    stream.play("http://jimslounge.com/publicDomain/plan9FromOuterSpace.flv");
    vidContainer.x = 25;
    vidContainer.y = 25;
    addChild(vidContainer);
    vidContainer.addChild(vid);
        function metaData(info:Object):void {

    Yeah, I tried and it doesn't work.
    However, you could use polling to check the Netstream's current time against the duration you get in the metadata, and dispatch an event when appropriate. Something like this:
    import flash.display.Sprite;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.events.NetStatusEvent;
    import flash.media.Video;
    import flash.utils.setTimeout;
    import flash.events.*;
    import flash.utils.Timer;
    var nc:NetConnection = new NetConnection();
    var ns:NetStream;
    var duration:Number=0;
    var vid:Video = new Video(300,300);
    var obj:Object = new Object();
    var videoURL:String = "test.flv";
    nc.objectEncoding = 0;
    nc.addEventListener(NetStatusEvent.NET_STATUS, onNCStatus);
    nc.connect(null);
    addChild(vid);
    function onNCStatus(event:NetStatusEvent):void
    switch (event.info.code)
        case "NetConnection.Connect.Success":
         ns = new NetStream(nc);
         ns.play(videoURL);
         ns.client = this;
         startPoll();
         vid.attachNetStream(ns);
         break;
    var poll:Timer=null;
    function startPoll()
    if(poll==null){poll=new Timer(500);}
    poll.addEventListener(TimerEvent.TIMER, pollHandler);
    poll.start();
    function stopPoll()
    if(poll==null){return;}
    poll.stop();
    function pollHandler(event:TimerEvent)
    trace(ns.time, "of", duration);
    if(ns.time >= duration)
        stopPoll();
        dispatchEvent(new Event(Event.COMPLETE));
    function onMetaData(info:Object):void
    trace("metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate);
    // set the duration so we can check completion status
    duration=info.duration;

  • I can see the pics but when I click on the event itself a HUGE exclamation mark pops up and not my pic.

    OK..this forum help me locate my iPhoto so HOPEFULLY ya'll can help me w/ 1 another issue. When I open an event in iPhoto...I can see the pics but when I click on the event itself a HUGE exclamation mark pops up and not my pic. Its really weird that I can see the pic but cant open it. Hopefully we can correct this issue. Also, if anyone has the energy....pls tell me how I can export from my iphoto-I want to place all my pics on CDs or my external hard drive and when I try to export it says.."unable to export.." I dunno!
    Help PLZZZZZ!
    Lost again,
    Amanda 

    The two problems are related.
    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    And that's why you can't export as well.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Crashes when trying to open project/event

    I have been working on a large (very, very important) project for the last three months. I had an hour and 20 mins of footage over three camera angles to edit together. I have experienced continuous crashes throughout working on this, I would get about 20 mins workflow max before the whirling beachball appeared then would have to switch off and let rest for a couple of hours before the mac would even start back up. Coming to the very end of my edit as I was adding in the end credits and mp3 soundtrack to this, FCPX keep saying there was no more memory to save edits and to clear some space, I was running the project from my external hard drive that was full to the brim so I copied the project to the hard drive on the mac (which had nothing else on it at all) the project opened but with missing files throughout. Next for no reason at all FCPX unexpectedly quits on start up, I uninstall and reinstall, this does not solve problem. I hid the events and projects which enabled me to open FCPX.
    So now I can open FCPX with the event im working on showing in the events folder, but it shows up with missing files still and when I click on the event to open it, FCPX closes up showing the unexpectedly quit box.
    I have basic editing knowledge and very basic mac knowledge so I really dont know how to get out of this problem!
    I hope someone can please HELP!!!

    OK, go back to your original set up, with your Project and Events on the external drive.
    "Duplicate" the project (Project Library, highlight, right-click, "Duplicate") inside of FCP X, select the option to include all referenced Events. Then disconnect the external drive before launching FCP X.
    You may experience a degridation in performance running Projects and Events off of the internal drive, also.
    Even if you reinstall the app, that doesn't effect preferene files.  I'd download the free "Preferene Manager" from  Digital Rebellion (dot com) and trash the prefs.
    Also go into each Event and Project specific folder in the Finder, trash all Render files.

  • HT5129 I had photos from MobileMe organized into different events.  When iPhoto made a MobileMe event, it took all of those photos out of the other events and put them all together in the new "from MobileMe" event.  Is there any way to reverse this?

    I had photos from MobileMe organized into different events.  When iPhoto made a MobileMe event (when MobileMe ended), it took all of those photos out of the other events and put them all together in the new "from MobileMe" event.  Is there any way to reverse this?

    Only to load your backup from before downloading the MM photos
    LN

  • I have iPhoto 08 and have been happy with it. Don't want to upgrade. But suddenly, when I click on an event, instead of all the photos, I just get one- enlarged- and cannot move to the next one. The photo just jumps up or down.  How to solve?

    I have posted "submit" twice and keep getting requests to submit again.  Now being asked to write a summary! Here we go.  I have iPhoto 08 and am happy with it.  Don't want to upgrade. But suddenly when I click on an event, instead of getting all the photos, I just get a large version of one photo and cannot move on to the others.  The right arrow will not move it and the photo just jumps around.

    Note the slider bottom right of the iPhoto Window. Drag it left.

  • HT2513 I have a mac and an ipad.  when i create and ical event on my mac and then sync to my ipad, the event replicates;   however, when i create an ical event on my ipad and then sync, the ical event does not sync.

    Question:  I have a mac and an ipad.  when i create an ical event on my mac and then sync, the event transfers to my ipad. HOWEVER: when i create an ical event on my ipad and then sync, the event does not transfer.  what am i doing wrong???
    cadybill

    Greetings,
    Go to Apple > Software Update and install all available updates until no more are offered.
    On iPad go to Settings > General > Software Update and install any updates.
    Follow this article for issues with calendars: http://support.apple.com/kb/TS2481
    Hope that helps.

Maybe you are looking for

  • Error in Opening Posting Period in MM

    Dear Gurus, I am facign an error when i am opening a posting period in MM. In MMPV, when i open the Period and execute system displays the following error message: Client 300 Period Entered : 112009 Log ABEND MMPV_Date_Check Error Occured (See note 1

  • Sales tax for 2 plants &  paying at head office

    Hi, Experteese, _My client is having 3 plants in a single state as per the sales tax of indian govt consolidated payment will be done at head office or any of one office. how to do this in SAP._

  • Wipe iphone3

    I'd like to wipe my iphone3 and turn it into an ipod touch for my daughter?  Can someone tell me now to do this?

  • Net value in billing doc not matching as in sales order

    Hi, I have a scenario wherein the net value in billing document does not match as in the sales order for 2 item categories maintained in the sales order. The net value in sales order has one line item category as 10 and the other as 20 but the same i

  • For module pool

    Hiiiiiiiii friends i wanna discuss that i had created a module pool with tabstrip and calling 7 subscreens in that i had save button for that lets suppose 0001 is main screen 0002,0003,00034,0005,0006,0007,0008,0009 are subscreens that r called in mo