Flv counter

Hi there,
The basics of it are - I'm trying to come up with a way to
start/stop a timer when a cue point is hit. like a start stop on a
stopwatch. Its for a piece of race footage where the lap starts
some time through the flv.
Now more in depth - I want the timer to be a dynamic text box
that when you scrub back and forth on the flv playhead
the timer responds acordingly as if it were the flv timecode.
Now there are 2 ways I can see this going. First to write a large
lump of code and design a custom timer, or offset the flvs time in
actionscript so that when it hits the first cue point it has
reached 0 and the cue point would tell the alpha of the dynamic
text box to change from 0% to 100% (so it looks like it has started
on the cue point)..
Which is easier and how would I go about writting the action
script for it.
I know this is a big project, but im hoping that there is a
way to offset as I think this might be a quicker option.
Thanks in advance for anyone who would know how to tackle
this.

Are you using the FLVPlayback component? If so, I'd probably
use the offset approach you mentioned.
If you use the cuepoint to trigger the start of your timer,
consider that it will never happen if someone scrubs into the
'timer' range from outside.....so you may need to set it up as a
listener for the whole video in the playheadUpdate event.
If you use the cuepoint approach, once the cuepoint triggers,
you know the playheadTime from the cuepoint event data already (or
you can check it as playheadTime) and set this as your 'zero' time
and fade in your textfield or whatever. You may want the listener
even set up without the cuepoint... if they scrub over the cue
point and arrive in the "timer" range somewhere, the cuepoint never
fired and so the timer doesn't show. Or you could do it the same
way using the playheadUpdate and a check for proximity to the
'zero' time (which you have hard coded) to start the fade in.
Whether its set up by the cuepoint, or you set it up for the
whole video, you just need to set up a listener for playheadUpdate
event (change the playheadUpdateInterval if you want it to be more
frequent than 0.1 secs - its probably OK as is for what you want).
In the listener, first check that the playheadTime is within
the range that you want it to be visible. If its not then I'd make
the text field instantly not visible (you could fade it out if it
was close to the time when it would normally fade while "playing"
,but if its scrubbed out of the 'timer' range then probably you
want it to be instantly gone rather than fade...? ) .
If its in range, then you could check and see if the
textfields _visible property is false (which may be the case if it
was scrubbed into the middle of the timer range from outside ) and
if so make it true. And then assign it the value of the current
playheadTime minus the 'zero' playheadTime like you described.

Similar Messages

  • FLV Array question - final flv file looping

    So the first part of my question was kindly and quickly
    answered by Rothrock. But I've got a new question that has arisen.
    When I set these up as an array it's ignoring the settings in the
    parameter field for autorewind which is set to false and it's
    looping the last movie file in the array. Is there anyway to avoid
    this by adding a snippet of new code to this code below:
    import mx.controls.MediaDisplay;
    flvURL = new Array();
    flvURL[1] = "preroll_live.flv";
    flvURL[2] = "atlas.flv";
    flvURL[3] = "jones_outro.flv";
    counter = 1;
    my_FLVplybk.contentPath = flvURL[1];
    var listenerObject:Object = new Object();
    listenerObject.complete = function(eventObject:Object):Void {
    counter++;
    if (counter == flvURL) {
    counter = 1;
    my_FLVplybk.contentPath = flvURL[counter];
    my_FLVplybk.addEventListener("complete", listenerObject);
    Preferably I'd like to either:
    Have the movie reset to an array file of my choice but not
    auto play or just Stop the movie on the final frame.
    Any help here will be greatly appreciated.
    Many thanks!
    -Kjup

    Anyone have any ideas on this...let me know if you need more
    details.
    Thanks,
    Kjup

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • ORA-06533: Subscript beyond count.

    Hi ,
    I am getting an error ORA-06533: Subscript beyond count.
    I read a few post and tried extending the collections as suggested in various post but it doesnt seem to be helping.
    Can anyone suggest where i am going wrong. below is my piece of code.
      PROCEDURE validate_records ( p_retcode                 OUT VARCHAR2
                                 , p_errbuf                  OUT VARCHAR2
      IS
      g_ret_success                     CONSTANT  VARCHAR2(1)    := '0';
      g_ret_exception                   CONSTANT  VARCHAR2(1)    := '2';
      g_procedure                       VARCHAR2(30)             := g_validate_rec;
      l_batch_name                      ra_batch_sources_all.name%TYPE;
      l_supplier_payee_code             hz_cust_accounts_all.cust_account_id%TYPE;
      l_supplier_code                   hz_cust_accounts_all.cust_account_id%TYPE;
      l_term_name                       ra_terms.name%TYPE;
      l_term                            ra_terms.name%TYPE;
      l_receipt_method                  fnd_lookup_values.meaning%TYPE;
      l_func_seg                        fnd_flex_values_vl.attribute1%TYPE;
      l_tax_inc_flag                    fnd_flex_values_vl.attribute3%TYPE;
      l_set_of_books_id                 gl_ledgers.ledger_id%TYPE;
      l_cust_bill_to_add_ref            hz_cust_acct_sites.orig_system_reference%TYPE;
      l_cust_ship_to_add_ref            hz_cust_acct_sites.orig_system_reference%TYPE;
      l_costcenter                      fnd_flex_values_vl.attribute1%TYPE;
      l_company                         fnd_flex_values_vl.attribute2%TYPE;
      l_account                         fnd_flex_values_vl.attribute1%TYPE;
      l_function                        fnd_flex_values_vl.attribute2%TYPE;
      l_cust_trx_type_name              fnd_flex_values_vl.attribute4%TYPE;
      l_bill_sku                        fnd_flex_values_vl.attribute5%TYPE;
      l_ship_from                       fnd_flex_values_vl.attribute6%TYPE;
      l_inventory_id                    NUMBER;
      l_warehouse_id                    NUMBER;
      l_date                            DATE;
      l_date_term                       DATE;
      l_combination_check               VARCHAR2(10);
      l_location_ship                   VARCHAR2(10);
      l_location_bill                   VARCHAR2(10);
      l_line_type                       VARCHAR2(10);
      l_error_message                   VARCHAR2(4000);
      l_err_stage                       VARCHAR2(4000);
      l_return_status                   VARCHAR2(1);
      l_errbuf                          VARCHAR2(4000);
      l_retcode                         VARCHAR2(10);
      l_cnt                             NUMBER;
      l_update_tax                      VARCHAR2(1);
      l_error_count                     NUMBER;
      ex_dml_errors                     EXCEPTION;
      PRAGMA EXCEPTION_INIT(ex_dml_errors, -24381);
      CURSOR c_get_bill_data
          IS
      SELECT program_type
             , dc
             , CONCAT(supplier_code,'SMF') supplier_code1
             , CONCAT(substr(supplier_payee_code,0,4),'SMF')supplier_payee_code1
             , supplier_code
             , supplier_payee_code
             , line_type
             , payment_type
             , sfm_bill_number
             , due_date
             , ROUND(total_inv_recv_amt,2)  invoice_amount
             , record_status
             , ROWID
        FROM xxom_ar_sfs03_bill_info_stg
       WHERE record_status     = g_new_rec_status
         AND  conc_request_id  = fnd_global.conc_request_id;
      CURSOR c_new_rec_count
          IS
      SELECT COUNT(*)
        FROM xxom_ar_sfs03_bill_info_stg
       WHERE record_status      = g_new_rec_status
         AND conc_request_id    = fnd_global.conc_request_id;
    -- to fetch total invoice lines for an invoice
      CURSOR c_get_invoice_no(p_bill in varchar2)
          IS
      SELECT sfm_bill_number
        FROM xxom_ar_sfs03_bill_info_stg
       WHERE sfm_bill_number   = p_bill
         AND conc_request_id   = fnd_global.conc_request_id;
    -- to fetch total err lines for an invoice
      CURSOR c_get_err_line
          IS
      SELECT sfm_bill_number
        FROM xxom_ar_sfs03_bill_info_stg
       WHERE record_status    = 'E'
         AND conc_request_id  = fnd_global.conc_request_id;
      CURSOR c_batch_src_exist
          IS
      SELECT name
        FROM ra_batch_sources
       WHERE name                = g_batch_source_name
         AND batch_source_type   = 'FOREIGN'
         AND status              = 'A';
      CURSOR c_set_book_id_exist
          IS
      SELECT gl.ledger_id
        FROM gl_ledgers          gl
           , hr_operating_units  hru
       WHERE gl.ledger_id        = hru.set_of_books_id
         AND hru.organization_id = g_org_id
         AND gl.name             = g_ledger_name;
      CURSOR c_cust_num_exist( p_cust_no   IN hz_cust_accounts.orig_system_reference%TYPE
          IS
      SELECT cust_account_id 
        FROM hz_parties       HP 
           , hz_cust_accounts HCC 
       WHERE HP.party_id               = HCC.party_id 
         AND HP.status                 = 'A'
         AND HCC.status                = 'A'
         AND HCC.orig_system_reference LIKE p_cust_no;
        CURSOR c_cust_payee_exist( p_cust_no   IN hz_cust_accounts.attribute2%TYPE)
          IS
         SELECT cust_account_id 
        FROM hz_parties       HP 
           , hz_cust_accounts HCC 
       WHERE HP.party_id               = HCC.party_id 
         AND HP.status                 = 'A'
         AND HCC.status                = 'A'
         AND HCC.orig_system_reference = p_cust_no;
      CURSOR c_pgm_type_exist(p_pgm_type IN VARCHAR)
          IS
      SELECT FFVV.attribute1
           , FFVV.attribute2
           , FFVV.attribute3
           , FFVV.attribute4
           , FFVV.attribute5
           , FFVV.attribute6
       FROM fnd_flex_value_sets FFVS
          , fnd_flex_values_vl  FFVV
       WHERE flex_value_set_name    = g_pgm_valueset
         AND FFVV.flex_value_set_id = FFVS.flex_value_set_id
         AND FFVV.flex_value        = p_pgm_type
         AND enabled_flag           = 'Y'
         AND TRUNC(SYSDATE) BETWEEN NVL(start_date_active,TRUNC(SYSDATE))
                                AND NVL(end_date_active,TRUNC(SYSDATE));
      CURSOR c_validate_dc(p_dc IN fnd_flex_values_vl.flex_value%TYPE)
          IS 
      SELECT FFVV.attribute1
           , FFVV.attribute2
        FROM fnd_flex_value_sets FFVS
           , fnd_flex_values_vl  FFVV
       WHERE flex_value_set_name    = 'OM_LEGACY_DC'
         AND FFVV.flex_value_set_id = FFVS.flex_value_set_id
         AND FFVV.flex_value        = p_dc
         AND enabled_flag           = 'Y';
      CURSOR c_get_location( p_cust_id   IN hz_cust_accounts.cust_account_id%TYPE
                           , p_location_use  IN  VARCHAR2
          IS
      SELECT  HCAS.orig_system_reference
        FROM  hz_cust_acct_sites  HCAS
           ,  hz_cust_site_uses   HCSU
       WHERE  cust_account_id        = p_cust_id
         AND  HCAS.cust_acct_site_id = HCSU.cust_acct_site_id
         AND  HCAS.status            = 'A'
         AND  primary_flag           = 'Y'
         AND  HCSU.site_use_code     = p_location_use;
      CURSOR c_validate_line_type(p_line_type IN VARCHAR2)
          IS
      SELECT flv.lookup_code
        FROM fnd_lookup_values flv
       WHERE flv.lookup_type   = g_line_typ_lookup
         AND flv.lookup_code   = p_line_type
         AND flv.enabled_flag  = 'Y'
         AND TRUNC(SYSDATE) BETWEEN NVL(flv.start_date_active,TRUNC(SYSDATE))
                                AND NVL(flv.end_date_active,TRUNC(SYSDATE));
      CURSOR c_validate_receipt_type(p_receipt_method IN  VARCHAR2)
          IS
      SELECT flv.meaning
        FROM fnd_lookup_values flv
       WHERE flv.lookup_type   = g_receipt_lookup
         AND flv.lookup_code   = p_receipt_method
         AND flv.enabled_flag  = 'Y'
         AND TRUNC(SYSDATE) BETWEEN NVL(flv.start_date_active,TRUNC(SYSDATE))
                                AND NVL(flv.end_date_active,TRUNC(SYSDATE));
      CURSOR c_validate_term_name (p_term_name IN ra_terms.name%TYPE)
          IS
      SELECT name
        FROM ra_terms
       WHERE name = p_term_name
         AND TRUNC(SYSDATE) BETWEEN NVL(start_date_active,TRUNC(SYSDATE))
                                AND TRUNC(SYSDATE);
      CURSOR c_check_combination( p_attribute IN ra_customer_trx_all.attribute1%TYPE
          IS
      SELECT 1
        FROM ra_customer_trx_all
       WHERE attribute1         = p_attribute
         AND attribute_category = 'SFM';
      CURSOR c_get_inventory_item_id (p_org_code IN VARCHAR2
                                     ,p_item_description IN VARCHAR2)
        IS
      SELECT msi.inventory_item_id
           , msi.organization_id warehouse_id
        FROM mtl_system_items_b msi
           , hr_all_organization_units haou
           , org_organization_definitions ood
       WHERE  haou.organization_id  = msi.organization_id
         AND haou.organization_id   = ood.organization_id
         AND ood.disable_date IS NULL
         AND msi.enabled_flag       = 'Y'
         AND ood.organization_code  = p_org_code
         AND segment1               = p_item_description
         AND TRUNC(SYSDATE) BETWEEN NVL(msi.start_date_active,TRUNC(SYSDATE))
                                AND NVL(msi.end_date_active,TRUNC(SYSDATE));
      TYPE type_bill_dtl_update_tbl IS RECORD
        ledger_id                 gl_ledgers.ledger_id%TYPE                      
      , cust_ship_to_add_ref      hz_cust_acct_sites_all.orig_system_reference%TYPE
      , pay_term_name             ra_terms.name%TYPE
      , receipt_method            fnd_lookup_values.meaning%TYPE
      , cust_bill_to_add_ref      hz_cust_acct_sites_all.orig_system_reference%TYPE
      , company_seg               gl_code_combinations.segment1%TYPE
      , costcenter_seg            gl_code_combinations.segment2%TYPE
      , function_seg              gl_code_combinations.segment3%TYPE
      , account_seg               gl_code_combinations.segment4%TYPE
      , cust_trx_type             fnd_flex_values_vl.attribute4%TYPE
      , inventory_item_id         fnd_flex_values_vl.attribute5%TYPE
      , warehouse_id              fnd_flex_values_vl.attribute6%TYPE
      , tax_flag                  VARCHAR2(1)
      , invoice_amount            NUMBER
      , record_status             VARCHAR2(1)
      , error_message             VARCHAR2(1000)
      , row_id                    ROWID
      TYPE t_get_bill_data IS TABLE OF c_get_bill_data%ROWTYPE;
      l_get_bill_data t_get_bill_data:= t_get_bill_data() ;
      TYPE t_bill_dtl_update_tbl IS TABLE OF type_bill_dtl_update_tbl;-- INDEX BY BINARY_INTEGER;
      l_bill_dtl_update_rec t_bill_dtl_update_tbl:= t_bill_dtl_update_tbl() ;
      TYPE t_bill_no  IS TABLE OF c_get_invoice_no%ROWTYPE;
      l_bill_no t_bill_no;
      TYPE t_bill_err_lines  IS TABLE OF c_get_err_line%ROWTYPE;
      l_bill_err_lines t_bill_err_lines;
      BEGIN
      p_retcode                := g_ret_success;
      p_errbuf                 := NULL;
      g_procedure              := g_validate_rec;
      l_set_of_books_id        := NULL;
      l_cnt                    := 1;
      OPEN c_new_rec_count;
      FETCH c_new_rec_count INTO g_new_rec_count;
      CLOSE c_new_rec_count;
      OPEN c_get_bill_data;
      FETCH c_get_bill_data BULK COLLECT INTO l_get_bill_data;
      CLOSE c_get_bill_data;
      FOR i IN 1..l_get_bill_data.COUNT LOOP
       FND_FILE.PUT_LINE (FND_FILE.LOG,'count'||i);
      l_get_bill_data.EXTEND;
      l_return_status          := NULL;
      l_batch_name             := NULL;
      l_supplier_code          := NULL;
      l_supplier_payee_code    := NULL;
      l_cust_bill_to_add_ref   := NULL;
      l_cust_ship_to_add_ref   := NULL;
      l_line_type              := NULL;
      l_combination_check      := NULL;
      l_term_name              := NULL;
      l_receipt_method         := NULL;
      l_tax_inc_flag           := NULL;
      l_update_tax             := NULL;
      l_date_term              := NULL;
      l_date                   := NULL;
      l_term                   := NULL;
      l_cust_trx_type_name     := NULL;
      l_bill_sku               := NULL;
      l_ship_from              := NULL;
      l_inventory_id           := NULL;
      l_warehouse_id           := NULL;
      l_location_ship          := 'SHIP_TO';
      l_location_bill          := 'BILL_TO';
      l_err_stage              := NULL;
      l_error_message          := NULL;
      l_costcenter             := NULL;
      l_company                := NULL;
      l_account                := NULL; 
      l_function               := NULL;
      -- Validation for set_of_books and org_id
      l_err_stage := 'Validation for Set_of_books_id and org_id .' ;
      IF (g_ledger_name IS NOT NULL) AND (g_org_id IS NOT NULL) THEN
        OPEN c_set_book_id_exist;
        FETCH c_set_book_id_exist into l_set_of_books_id;
        CLOSE c_set_book_id_exist;
        IF l_set_of_books_id IS NULL THEN
          p_errbuf        := 'Please check the setup for set_of_books name'||g_ledger_name;
          p_retcode       := g_ret_exception;
          xxom_int_common.post_record_msg( p_message  => 'Please check the setup for set_of_books name :'||g_ledger_name
                                         , p_severity => xxom_int_common.c_level_error
        END IF;--set of books
      ELSE
        p_errbuf        := 'Please check the setup for set_of_books name'||g_ledger_name||'and org_id '||g_org_id||'cannot be null';
        p_retcode       := g_ret_exception;
        xxom_int_common.post_record_msg( p_message  => 'Please check the setup for set_of_books name'||g_ledger_name||'and org_id '||g_org_id||'cannot be null'
                                       , p_severity => xxom_int_common.c_level_error
      END IF;--Validation for set_of_books and org_id
      --Validation for batch name
      l_err_stage := 'Validation for batch name.' ;
      IF g_batch_source_name IS NOT NULL THEN
        OPEN c_batch_src_exist;
        FETCH c_batch_src_exist INTO l_batch_name ;
        CLOSE c_batch_src_exist;
        IF l_batch_name IS NULL THEN
          p_errbuf        := 'Please check the setup for batch_source_name'||g_batch_source_name;
          p_retcode       := g_ret_exception;
          xxom_int_common.post_record_msg( p_message  => 'Please check the setup for batch_source_name'||g_batch_source_name
                                         , p_severity => xxom_int_common.c_level_error
        END IF;
      END IF ;--l_get_bill_data(i).batch_source_name IS NOT NULL
      --Validation for supplier code
      l_err_stage := 'Validation for Supplier Code.';
      IF l_get_bill_data(i).supplier_code IS NOT NULL THEN
        OPEN c_cust_num_exist( p_cust_no => l_get_bill_data(i).supplier_code1
        FETCH c_cust_num_exist INTO l_supplier_code;
        CLOSE c_cust_num_exist;
        IF l_supplier_code IS NULL THEN
          l_error_message := l_error_message||'Supplier Code ('||l_get_bill_data(i).supplier_code||' ) is not valid.';
          xxom_int_common.post_record_msg( p_message  => 'Supplier Code is not valid : '||l_get_bill_data(i).supplier_code||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                         , p_severity => xxom_int_common.c_level_warning
        ELSE
          OPEN c_get_location( p_cust_id      => l_supplier_code
                             , p_location_use => l_location_ship);
          FETCH c_get_location INTO l_cust_ship_to_add_ref;
          CLOSE c_get_location;
          IF l_cust_ship_to_add_ref IS NULL THEN
            l_error_message := l_error_message||'Customer ship to location is null.';
            xxom_int_common.post_record_msg( p_message  => 'Customer ship to location is null. '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                           , p_severity => xxom_int_common.c_level_warning
          END IF;
        END IF ;
      END IF;-- l_get_bill_data(i).supplier_code IS NOT NULL
      --Validation for Supplier payee code
      l_err_stage := 'Validation for Supplier payee code.';
      IF l_get_bill_data(i).supplier_payee_code IS NOT NULL THEN
        OPEN c_cust_payee_exist ( p_cust_no => l_get_bill_data(i).supplier_payee_code1);
        FETCH c_cust_payee_exist INTO l_supplier_payee_code;
        CLOSE c_cust_payee_exist;
        IF l_supplier_payee_code IS NULL THEN
          l_error_message := l_error_message||'Supplier Payee Code ('||l_get_bill_data(i).supplier_payee_code||' ) is not valid.';
          xxom_int_common.post_record_msg( p_message  => 'Supplier Payee Code is not valid: '||l_get_bill_data(i).supplier_payee_code||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                         , p_severity => xxom_int_common.c_level_warning
        ELSE
          OPEN c_get_location( p_cust_id      => l_supplier_payee_code
                             , p_location_use => l_location_bill);
          FETCH c_get_location INTO l_cust_bill_to_add_ref;
          CLOSE c_get_location;
          IF l_cust_bill_to_add_ref IS NULL THEN
            l_error_message := l_error_message||'Customer bill to location is null.';
            xxom_int_common.post_record_msg( p_message  => 'Customer bill to location is null. '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                           , p_severity => xxom_int_common.c_level_warning
          END IF;
        END IF;
      ELSE
        l_error_message := l_error_message ||' Supplier Payee code is null';
        xxom_int_common.post_record_msg( p_message  => 'Supplier Payee code is null. '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                       , p_severity => xxom_int_common.c_level_warning
      END IF ;--supplier_payee_code IS NOT NULL
      --Validation for DC
      l_err_stage := 'Validation for DC.';
      IF l_get_bill_data(i).dc IS NOT NULL THEN
        OPEN c_validate_dc(p_dc => l_get_bill_data(i).dc);
        FETCH c_validate_dc INTO l_costcenter
                               , l_company;
        CLOSE c_validate_dc;
        IF l_costcenter IS NULL THEN
          l_error_message := l_error_message||'DC ('||l_get_bill_data(i).dc||' ) is not valid.';
          xxom_int_common.post_record_msg( p_message  => 'DC is not valid : '||l_get_bill_data(i).dc||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                         , p_severity => xxom_int_common.c_level_warning
        END IF;
      ELSE
        l_error_message := l_error_message||'DC is null';
        xxom_int_common.post_record_msg( p_message  => 'DC is null. '||l_get_bill_data(i).dc||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                       , p_severity => xxom_int_common.c_level_warning
      END IF;
      --Validation for program type
      l_err_stage := 'Validation for program type.';
      IF l_get_bill_data(i).program_type IS NOT NULL THEN
        OPEN c_pgm_type_exist(p_pgm_type => l_get_bill_data(i).program_type);
        FETCH c_pgm_type_exist INTO l_account
                                  , l_function
                                  , l_tax_inc_flag
                                  , l_cust_trx_type_name
                                  , l_bill_sku
                                  , l_ship_from;
        CLOSE c_pgm_type_exist;
      --to fetch warehouse_id and inventory_id
        OPEN c_get_inventory_item_id(p_org_code => l_ship_from
                                    ,p_item_description =>l_bill_sku  );                       
        FETCH c_get_inventory_item_id INTO l_inventory_id
                                          ,l_warehouse_id; 
        CLOSE c_get_inventory_item_id;
        IF l_tax_inc_flag IS NULL THEN
          l_error_message := l_error_message||'Program type ('||l_get_bill_data(i).program_type||' ) is not valid.';
          xxom_int_common.post_record_msg( p_message  => 'Program type is not valid : '||l_get_bill_data(i).program_type||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                         , p_severity => xxom_int_common.c_level_warning
        ELSIF l_tax_inc_flag ='No' THEN
          l_update_tax   := 'N';
        ELSE
          l_update_tax   := 'Y';
        END IF;
      ELSE
        l_error_message := l_error_message||'Program type is null';
        xxom_int_common.post_record_msg( p_message  => 'Program type is null. '||l_get_bill_data(i).program_type||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                       , p_severity => xxom_int_common.c_level_warning
      END IF; --IF l_get_bill_data.program_type IS NOT NULL
      --Validation for Line type
      l_err_stage := 'Validation for Line type.'; 
      IF l_get_bill_data(i).line_type IS NOT NULL THEN
        OPEN c_validate_line_type(p_line_type => l_get_bill_data(i).line_type);
        FETCH c_validate_line_type INTO l_line_type;
        CLOSE c_validate_line_type;
        IF l_line_type IS NULL THEN
          l_error_message := l_error_message||'Line type ('||l_get_bill_data(i).line_type||' ) is not valid.';
          xxom_int_common.post_record_msg( p_message  => 'Line type is not valid : '||l_get_bill_data(i).line_type||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                         , p_severity => xxom_int_common.c_level_warning
        END IF;
      ELSE
        l_error_message := l_error_message ||' Line type is null';
        xxom_int_common.post_record_msg( p_message  => 'Line type is null '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                       , p_severity => xxom_int_common.c_level_warning
      END IF;--l_get_bill_data(i).line_type IS NOT NULL
      --Validation for Payment Type
      l_err_stage := 'Validation for Payment Type.';
      IF l_get_bill_data(i).payment_type IS NOT NULL AND l_get_bill_data(i).payment_type IN ('D') THEN
      debug_print('Receipt'||i||l_get_bill_data(i).payment_type);
        OPEN c_validate_receipt_type(p_receipt_method => l_get_bill_data(i).payment_type);
        FETCH c_validate_receipt_type INTO l_receipt_method;
        CLOSE c_validate_receipt_type;
        IF l_receipt_method IS NULL THEN
          l_error_message := l_error_message||'Payment type ('||l_get_bill_data(i).payment_type||' ) is not valid.';
          xxom_int_common.post_record_msg( p_message  => 'Payment type is not valid : '||l_get_bill_data(i).payment_type||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                         , p_severity => xxom_int_common.c_level_warning
        END IF ;
      END IF;--l_get_bill_data(i).payment_type NOT NULL
      --Validation for term name
      IF l_get_bill_data(i).due_date IS NOT NULL THEN
        IF l_get_bill_data(i).due_date <= 0 THEN
          l_term_name:='IMMEDIATE';
        ELSIF l_get_bill_data(i).due_date BETWEEN 1 AND 30 THEN
          l_term_name:='NET30';
        ELSIF l_get_bill_data(i).due_date BETWEEN 31 AND 60 THEN
          l_term_name:='NET60';
        ELSIF l_get_bill_data(i).due_date BETWEEN 61 AND 90 THEN
          l_term_name:='NET90';
        ELSIF l_get_bill_data(i).due_date BETWEEN 91 AND 120 THEN
          l_term_name:='NET120';
        ELSIF l_get_bill_data(i).due_date BETWEEN 121 AND 150 THEN
          l_term_name:='NET150';
        ELSIF l_get_bill_data(i).due_date BETWEEN 151 AND 180 THEN
          l_term_name:='NET180';
        ELSIF l_get_bill_data(i).due_date BETWEEN 181 AND 210 THEN
          l_term_name:='NET210';
        ELSIF l_get_bill_data(i).due_date BETWEEN 211 AND 240 THEN
          l_term_name:='NET240';
        ELSE
          l_term_name:='NET365';
        END IF;  
        IF l_term_name IS NOT NULL THEN
          OPEN c_validate_term_name(p_term_name =>l_term_name);
          FETCH c_validate_term_name INTO l_term;
          CLOSE c_validate_term_name;
          IF l_term IS NULL THEN
            l_error_message := l_error_message ||'The term name is not a valid term';
            xxom_int_common.post_record_msg( p_message  => 'The term name is not a valid term '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                           , p_severity => xxom_int_common.c_level_warning
          END IF;
        END IF;--l_term_name IS NOT NULL THEN 
      ELSE
        l_error_message := l_error_message ||'The data provided for term name is null';
        xxom_int_common.post_record_msg( p_message  => 'The data provided for term name is null '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                       , p_severity => xxom_int_common.c_level_warning
      END IF; --l_get_bill_data(i).due_date IS NOT NULL */
      --Validation for unique interface_line_context and interface_line_attribute1 combination AND Amount
    IF l_get_bill_data(i).invoice_amount IS NOT NULL THEN
        OPEN c_check_combination( p_attribute=> l_get_bill_data(i).sfm_bill_number
        FETCH c_check_combination INTO l_combination_check;
        CLOSE c_check_combination;
        IF l_combination_check IS NOT NULL THEN
          l_error_message := l_error_message||'The interface_line_context and interface_header_attribute1 combination ('||l_get_bill_data(i).sfm_bill_number||' and '|| ' SFM' ||' ) already exist .Please provide different combination';
          xxom_int_common.post_record_msg( p_message  => 'The interface_line_context and interface_header_attribute1 combination already exist .Please provide different combination ' ||l_get_bill_data(i).sfm_bill_number ||' and '||'SFM'
                                         , p_severity => xxom_int_common.c_level_warning
        END IF;
      ELSE
        l_error_message := l_error_message||'Amount cannot be null';
        xxom_int_common.post_record_msg( p_message  => 'Amount cannot be null '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
                                       , p_severity => xxom_int_common.c_level_warning
      END IF; --l_get_bill_data(i).total_inv_recv_amt IS NOT NULL 
      /* end of validation*/
      l_bill_dtl_update_rec.EXTEND;
      l_bill_dtl_update_rec(l_cnt).ledger_id              := l_set_of_books_id;
      l_bill_dtl_update_rec(l_cnt).cust_ship_to_add_ref   := l_cust_ship_to_add_ref;
      l_bill_dtl_update_rec(l_cnt).cust_bill_to_add_ref   := l_cust_bill_to_add_ref;
      l_bill_dtl_update_rec(l_cnt).receipt_method         := l_receipt_method;
      l_bill_dtl_update_rec(l_cnt).company_seg            := l_company;
      l_bill_dtl_update_rec(l_cnt).account_seg            := l_account;
      l_bill_dtl_update_rec(l_cnt).costcenter_seg         := l_costcenter;
      l_bill_dtl_update_rec(l_cnt).function_seg           := l_function;
      l_bill_dtl_update_rec(l_cnt).tax_flag               := l_update_tax;
      l_bill_dtl_update_rec(l_cnt).pay_term_name          := l_term;       
      l_bill_dtl_update_rec(l_cnt).cust_trx_type          := l_cust_trx_type_name;
      l_bill_dtl_update_rec(l_cnt).inventory_item_id      := l_inventory_id;
      l_bill_dtl_update_rec(l_cnt).warehouse_id           := l_warehouse_id;
      l_bill_dtl_update_rec(l_cnt).invoice_amount         := l_get_bill_data(i).invoice_amount;
      l_bill_dtl_update_rec(l_cnt).row_id                 := l_get_bill_data(i).rowid;
      IF l_error_message IS NULL THEN
        l_bill_dtl_update_rec(l_cnt).record_status           := g_valid_status;
        l_bill_dtl_update_rec(l_cnt).error_message           := NULL;
      ELSE
        l_bill_dtl_update_rec(l_cnt).record_status           := g_err_status;
        l_bill_dtl_update_rec(l_cnt).error_message           := l_error_message;
      END IF;
      l_cnt := l_cnt + 1;
      END LOOP;
      FORALL i in 1..l_bill_dtl_update_rec.COUNT SAVE EXCEPTIONS
      UPDATE xxom_ar_sfs03_bill_info_stg
         SET cust_bill_to_add_ref      = l_bill_dtl_update_rec(i).cust_bill_to_add_ref
           , cust_ship_to_add_ref      = l_bill_dtl_update_rec(i).cust_ship_to_add_ref
           , term_name                 = l_bill_dtl_update_rec(i).pay_term_name
           , receipt_method            = l_bill_dtl_update_rec(i).receipt_method
           , set_of_books_id           = l_bill_dtl_update_rec(i).ledger_id
           , company_seg               = l_bill_dtl_update_rec(i).company_seg
           , account_seg               = l_bill_dtl_update_rec(i).account_seg
           , costcenter_seg            = l_bill_dtl_update_rec(i).costcenter_seg
           , function_seg              = l_bill_dtl_update_rec(i).function_seg
           , cust_trx_type             = l_bill_dtl_update_rec(i).cust_trx_type  
           , inventory_item_id         = l_bill_dtl_update_rec(i).inventory_item_id
           , warehouse_id              = l_bill_dtl_update_rec(i).warehouse_id
           , tax_flag                  = l_bill_dtl_update_rec(i).tax_flag
           , total_inv_recv_amt        = l_bill_dtl_update_rec(i).invoice_amount
           , record_status             = l_bill_dtl_update_rec(i).record_status
           , error_message             = l_bill_dtl_update_rec(i).error_message
           , conc_request_id           = fnd_global.conc_request_id
           , last_update_date          = SYSDATE
           , last_updated_by           = FND_GLOBAL.USER_ID
       WHERE ROWID = l_bill_dtl_update_rec(i).row_id;
      COMMIT;
      -- Submitting the invoice_error procedure at end of validate procedure.
      debug_print('Submitting the invoice_error procedure at end of validate_records procedure. ');
      --reject all line of an invoice with a single error line
      OPEN c_get_err_line;
      FETCH c_get_err_line BULK COLLECT INTO  l_bill_err_lines;
      CLOSE c_get_err_line;
      FOR i IN 1..l_bill_err_lines.COUNT LOOP
    OPEN c_get_invoice_no(p_bill =>l_bill_err_lines(i).sfm_bill_number );
    FETCH c_get_invoice_no BULK COLLECT INTO  l_bill_no;
    CLOSE c_get_invoice_no;
      FOR j IN 1..l_bill_no.COUNT LOOP
      UPDATE xxom_ar_sfs03_bill_info_stg
         SET error_message    = NULL
           , record_status    ='E'
           , last_update_date = SYSDATE
       WHERE record_status    = 'V'
         AND sfm_bill_number = l_bill_no(i).sfm_bill_number;
      COMMIT;
    END LOOP;
    END LOOP;
      EXCEPTION
        WHEN ex_dml_errors THEN
        l_error_count := SQL%BULK_EXCEPTIONS.count;
        FOR i IN 1 .. l_error_count LOOP
         l_error_message := l_error_message||SQLERRM(-SQL%BULK_EXCEPTIONS(i).ERROR_CODE);
        END LOOP;--OR i IN 1 .. l_error_count LOOP
        WHEN OTHERS THEN
          IF c_get_bill_data%ISOPEN THEN
            CLOSE c_get_bill_data;
          END IF;
        IF c_batch_src_exist%ISOPEN THEN
          CLOSE c_batch_src_exist;
        END IF;
        IF c_set_book_id_exist%ISOPEN THEN
         CLOSE c_set_book_id_exist;
        END IF;
        IF c_get_location%ISOPEN THEN
          CLOSE c_get_location;
        END IF;
        IF c_validate_line_type%ISOPEN THEN
         CLOSE c_validate_line_type;
        END IF;
        IF c_validate_receipt_type%ISOPEN THEN
         CLOSE c_validate_receipt_type;
        END IF;
        IF c_check_combination%ISOPEN THEN
         CLOSE c_check_combination;
        END IF;
        IF c_validate_receipt_type%ISOPEN THEN
         CLOSE c_validate_receipt_type;
        END IF;
        IF c_pgm_type_exist%ISOPEN THEN
         CLOSE c_pgm_type_exist;
        END IF;
        IF c_validate_term_name%ISOPEN THEN
         CLOSE c_validate_term_name;
        END IF;
        IF c_new_rec_count%ISOPEN THEN
         CLOSE c_new_rec_count;
        END IF;
        IF c_cust_payee_exist%ISOPEN THEN
         CLOSE c_cust_payee_exist;
        END IF;
        IF c_get_invoice_no%ISOPEN THEN
         CLOSE c_get_invoice_no;
        END IF;
        IF c_get_err_line%ISOPEN THEN
          CLOSE c_get_err_line;
        END IF;
      p_retcode := g_ret_exception;
      p_errbuf  := 'The Error at XXOM_SFS_03_BILL_INFO_PKG.validate_records ' || l_err_stage|| '-'|| SUBSTR ( SQLERRM ,1,240 );
      END validate_records;
    Thanks in advance.

    Another version
    SET SERVEROUTPUT ON
    DECLARE
       TYPE empno_nt IS TABLE OF VARCHAR2 (40);
       l_empno_nt   empno_nt;
    BEGIN
       l_empno_nt := empno_nt ('Suri');
       dbms_output.put_line(l_empno_nt(1));
    END;
    Enhanced version:
    DECLARE
       TYPE empno_nt IS TABLE OF VARCHAR2 (40);
       l_empno_nt   empno_nt;
    BEGIN
       l_empno_nt := empno_nt ('Suri', 'Test','Ranit');
       FOR rec IN l_empno_nt.FIRST .. l_empno_nt.LAST
       LOOP
          DBMS_OUTPUT.put_line (l_empno_nt (rec));
       END LOOP;
    END;
    Simplified version :
    select * from table( sys.odcivarchar2list('Suri','Test','Ranit') ) ;
    Cheers,
    Manik.
    Message was edited by: Manik

  • Microphone sound recording,saving,playing flv file is saved but not working

    Please help me,
              While recording the flv is saved inside applications/stream/samples/audio.flv. But it is not working properly.
    Mycode
    stop();   
          var count:Number          = 0;
          var timestamp:Date    = new Date();
          var nc:NetConnection       = new NetConnection();
          nc.connect("rtmp://localhost/audiotest/samples");
          var ns:NetStream          = new NetStream(nc);
            ns.setBufferTime(2);
          var mic:Microphone    = Microphone.get();
          mic.setRate(22);
          ns.attachAudio(mic);
          ns.onStatus = function($info:Object):Void
              trace($info.code);
          // record the audio to the stream
          function recordAudio():Void
              var fileName:String = String(timestamp.getTime() + (count++));
           ns.publish(fileName, "record");
          // stop the recording of audio to the stream
          function stopRecordingAudio():Void
              ns.publish(false);
          // plays back the audio that was recorded
          function playRecordedAudio():Void
              ns.play(currentFileName);
          // record button
          recordBtn_mc.onRelease = function():Void
              recordAudio();
          // stop button
          stopBtn_mc.onRelease = function():Void
              stopRecordingAudio();
          // play button
          playBtn_mc.onRelease = function():Void
              playRecordedAudio();

    Try changing the fileName:String to a simpler string name like "myAudio"....then try playing it.....if it works doing that....then the issue is with you converting that date variable to a string.......and if thats the problem try converting the value with   .toString() seperately and adding

  • Query FLV video length?

    Hello,
    I am currently stuck with the following problem...
    I have a table with 3 fields; id, description, and filename,
    in a table named videos. All videos are in flv format. I do not
    have info of the video length in database, and I have too many
    videos to enter the data manually into a new field. I want to
    retrieve the length of the flv videos when i output the videos as a
    list like such:
    ID Description Filename length of video
    1 machinery video machine.flv 9:20min
    2 quary video quarry.flv 3:20min
    So i am assuming MYSQL wont do it... can coldfusion parse the
    video file to determine its length so i can output that?
    If not... how can I get around this problem?

    There's a PERL solution at
    http://search.cpan.org/~clotho/FLV-Info-0.17/lib/FLV/Info.pm.
    You would have to install PERL You could probably access this via
    CFEXECUTE, or even add additional PERL code and produce something
    like a tab delimited datafile which would be consumed by
    ColdFusion.
    Also take a look at FLVMDI (FLV Meta Data Injector)
    http://www.buraks.com/flvmdi/
    along with CFEXECUTE. This would create copies of the files,
    inject the metadata into the copy and then with the xml switch,
    create an xml file as well which could then be used to read the
    information you're looking for.
    There is also a commercial product ($175) that will batch
    extract metadata
    Metadata Miner Catalogue PRO software
    http://www.download3000.com/download-count-home-3541.html

  • How To Define What Counts As A "Movie"?

    In Spotlight you have these different categories for results:
    - Applications
    - Images
    - Music
    - Movies
    - Documents
    My question is, how do you DEFINE what counts as a Movie? I have a lot of .flv Flash Videos, which Spotlight is categorising as Documents. But they're not documents, they're videos. So how do I get Spotlight to include all .flv files in the Movies category??

    Hi,
    I think this should be fulfilled via Profit Center Accounting. You can make each project as Profit Center. Afterwords, you can fetch Balance Sheet and Profit and Loss Account separately by profit centers.
    Regards,
    Jigar

  • Skin counter not working

    Hello
    I am trying to modify one of the Adobe provided flv skins, but when I do the counter is disabled.  Even if I just copy the fla and export the swf skin, without making any modifications, the counter is disabled.  Do I need to add code to make it work?
    Thanks
    Dave

    We need some more information in order to help you.
    What version number of Aperture and of your operation system?
    How are you "doing" skin smoothing?  What do you expect to happen?  How is this different from what does happen?  How are verifying that it is isn't working correctly?
    Has it ever worked in the past?
    Can you post a screen-shot illustration any of the above?
    Do you have any other trouble with Aperture?  With any other programs?
    Do other Aperture Quick Brushes work?
    Have you tried any troouble-shooting?  Have you re-started Aperture?  Have your re-started your system?
    Post back with this information and I'm sure some of the many helpful people here will provide some direction and tips.

  • Latest Update of Premiere Pro CC no longer supports FLV

    Why? Where's the wisdom in having an editing program that no longer supports FLV and SWF? I was editing on a project for a client using a FLV video file and had invested over 20 hours. I did an update and when I returned to the timeline I was unable to use my video file. It was no longer supported. Now, I was on a very tight deadline and was only half way through the job, and to find out I could not continue the job was very very frustrating. It took me over 3 hours, of valuable time I could have been editing, to deal with Adobe Tech to resolve this. It was very stressful. The only solution was that my FLV file needed to be put through After Effects, which would have rendered the work I had done, over 20 hours, useless, then would have added more time to my job to re-re-render and re-edit. With only a limited time remaining before I needed to submit the completed edit to my client, this was not a solution. So, my question is, why? Perhaps it is time to jump ship and move over to Final Cut. I can not trust Adobe. This is my job, I rely on my camera and my computer/editing platform in order to perform my job and if I can not count on either of these, then I need to find something more reliable. How was this resolved? I had to allow an Adobe Tech remote access to my computer, where they un-installed Premiere and went back to the Adobe site and re-loaded my previous version of Premiere Pro. I am thankful it was resolved, but concerned about the future reliability of Adobe.

    Adobe - in their infinite wisdom - decided earlier that DVD and Blu-Ray are dead. There are no clients asking for DVD or BRD anymore, at least as far as Adobe can discern. Maybe they also decided FLV is dead, but forgot to send out an obituary.
    The only solution is to go back to a previous version where it is still supported, like CS6, where you also have Encore.

  • Can't detect when my netstream FLV stops.

    I want to detect when my FLV stops and jump to another video. How can I do this? My current code is:
    The first video plays fine, but it just stops when it is done.
    // Setting up my netstream and playing my video
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
    var vid:Video = new Video(320, 240);
    this.addChild(vid);
    vid.attachNetStream(ns);
    ns.play("video0.flv");
    ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    // This is what I thought I had to do to detect the stop
    function netStatusHandler(event:NetStatusEvent):void {
        switch(event) {
          case "NetStream.Play.Complete":
             ns.close();
             ns.play("video2.flv");
    // Handles Async errors by ignoring them
    function asyncErrorHandler(event:AsyncErrorEvent):void {
        // Ignore
    Thanks!

    Ok, so I made the changes and now it seems the movie merely freezes when finished playing. My code that is for clicking hot spots
    and playing videos works though. I do also have some trouble with the movies either playing only a second or two, then stopping, as
    well, or still hearing some of the sound form the previous video. Before I had used the (ns.time == oldTime) to determine if the video
    had stopped or not, but it seems to get me into trouble. Any advice?
    Thanks for the help so far.
    My code
    gotoAndStop(1);
    // Loading Text File into Array
    var textFile:URLRequest = new URLRequest("info.txt");
    var textLoader:URLLoader = new URLLoader();
    textLoader.load(textFile);
    var inputArray:Array = new Array();
    var videoArray:Array = new Array();
    textLoader.addEventListener(Event.COMPLETE, loadComplete);
    var i:int = 0;
    var j:int;
    var currentSize:int = 0;
    var currentVideo:int = 0;
    addEventListener(Event.ENTER_FRAME,onEnterFrame);
    var oldTime:Number = -1;
    stage.addEventListener(MouseEvent.CLICK,mouseClick);
    var currentNumber:int = 0;
    var counter:int;
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
    ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    var vid:Video = new Video(320, 240);
    this.addChild(vid);
    vid.attachNetStream(ns);
    ns.play("video0.flv");
    function onEnterFrame(event:Event) {
        //if (ns.time == oldTime) {
            //if (videoArray[currentVideo].length <= 2) {
                //ns.close();
                //gotoAndStop(2);
            //else
                //newVideo(videoArray[currentVideo][1]);
        //oldTime = ns.time;
    function mouseClick(event:MouseEvent) {
        if (videoArray[currentVideo].length > 2) {
            for (i = 2; i < videoArray[currentVideo].length; i+=5) {
                if (mouseX >= videoArray[currentVideo][i+1] && mouseX <= videoArray[currentVideo][i+2] &&
                    mouseY >= videoArray[currentVideo][i+3] && mouseY <= videoArray[currentVideo][i+4]) {
                        newVideo(videoArray[currentVideo][i]);
    function asyncErrorHandler(event:AsyncErrorEvent):void {
        // Ignore
    function loadComplete(event:Event):void {
        textLoader.removeEventListener(Event.COMPLETE, loadComplete);
        var tempString:String = textLoader.data;
        inputArray = tempString.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s+/);
        while (i < inputArray.length) {
            videoArray[currentNumber] = new Array();
            currentSize = inputArray[i];
            counter = 0;
            for (j = i; j < (i + currentSize); j++) {
                videoArray[currentNumber][counter] = inputArray[j];
                counter++;
            i = j;
            currentNumber++;
        inputArray = null;
    function netStatusHandler(event:NetStatusEvent):void {
        switch(event.info.code) {
          case "NetStream.Play.Complete":
             ns.play("video2.flv");
             break;
    function newVideo(newTarget:int) {
            //ns.close();
            ns.play("video" + newTarget + ".flv");
            currentVideo = newTarget;

  • FLV player, displaying duration and time

    Hello,
    I am in need of some help!
    I have a FLV player that uses the netstream method to call in
    external flv files. I'd like the flv player to identify how long
    the specified flv file is, in minutes, and display it in a text
    field. I would also like the time elapsed to be dispayed, when the
    video is actually being played.
    How would i go about getting this functionality to work?
    I will post my code up if you guys want to see it but for the
    time being i'd just like some advice.
    I hope someone can help!
    Regards
    EGR103

    Hi Guys! Yes, I'm sure you can do it in Flash ...
    You can display a
    clock displaying
    timeof day. There is all kinds of information about this at
    Edmund Mullen's site, located at:
    http://ed.mullen.home.comcast.net/fclock.html
    If you want a SWF you can insert into a Captivate movie that
    displays elapsed time, I have a diferent suggestion. First,
    understand that elapsed time (ET) can be a tricky bugger, becuase
    it is probably not "straight-ahead" elapsed time. If your Captivate
    movies have any interactivity, you may or may not want those
    "pauses" counted in elapsed time metering. You need something
    special, and as Rick said, that animal don't live here ...
    Contact Paul Dehurst (fellow community expert) and ask if
    Paul will build you something like this. He may be too busy, or
    just not interested in extra work right now, but if he does it for
    you, he'll do a good job. Expect to pay him a negotiated fee - it
    will be reasonable. Paul can be reached right here, or at his
    web-site at:
    http://www.raisingaimee.co.uk/
    Click the link to: "
    Contact Paul:"
    Second idea, if Paul can't be convinced to help you out ...
    call RentaCoder. You can reach them at:
    http://www.rentacoder.com/RentACoder/default.asp
    Seriously, these folks might be the most underappreciated
    people on the net. In just a few minutes at their site, you can
    find a programmer in almost any software language - often close to
    your physical location. No, I haven't personally used them, but a
    company I contracted with recently had a need for a special Flash
    tool, and contacted a Flash coder through "rentacoder" - and were
    very pleased. Good luck!

  • Releasing license after user stops viewing FLV

    I'm running FMS2, profile 1, that has 150 concurrent users.
    Here's my question: once a user stops watching the streaming FLV
    (and it doesn't loop), does that release a license for the next
    user? Or does the user have to leave the web page? In other words,
    when does the license get released for the next user?

    HI,
    The liscence use limit counts towards connections not
    streams.
    ie when the user connects/disconnects not when they
    play/publish/close a stream.
    this can happen when they leave the webpage or when you close
    the connection to fms.

  • Captivate 4, FLVs and Moodle

    Hey folks,
    I know this has been discussed in a couple of other discussions, but even after following all the advice, I am going insane and have wasted 10 hours and counting...
    The issue is that I am producing SCORM actvities for Moodle:
    1. Creating an activity in Captivate 4 - no probs
    2. Importing as an activity into Moodle - no probs
    3. Playing in Moodle - no probs except for the FLVs do not show up. No error message, just a blank screen where the video should be
    I have tried all of the following, and it has not helped:
    - Used relative paths, in fact, kept the videos in the same folder as the swf for safety (ie, in Captivate, the path is just "video.flv").
    - Tried absolute paths as well as paths to a server URL
    - ensured no special characters in video name
    - ensured meta data present in video
    - set the MIME type on the server
    - confirmed that all file uploaded and unzipped successfully
    - Tried it with Moodle filters enabled and disabled
    For additional sanity:
    - submitted to SCORM Test Track - I can see the video there
    - played the swf directly from my server - I can see the video there
    Argghhhh! Any ideas?
    Thanks, Chris

    I can appreciate that not being able to get your FLVs working after spending so much time is very frustrating.
    My suggestion for debugging this is to try and see what path the server is looking at when trying to find and serve up the FLV video.  You could try downloading Charles (http://www.charlesproxy.com/download/) and use this to try and view the actual file path of the request for the FLV when called.  If the file path is correct, then your issue may be related to security permissions.
    Have you set up a replica Moodle TEST environment on your own development machine?  Does the same package and FLV work when you test via Localhost?  If it does, then my bet would be some restriction in the setup of your production Moodle server or the web server it's running on, or permissions on the folder where the FLVs are being served from.

  • Can you make FLV type controls on a animation sequence

    Hi All,
    Another newbie question. If I am making a flash animation sequence (no video) is it possible to make complex controls similar to a FLV skin. I was able to make a toggle button to pause and play timeline and sound but wanted more features; go back, start over and maybe a progress bar with timing show length or just a time counter of your swf and you current place in the timeline. I thought this would be easy but I'v been searching and can't find any answers, so is it possible? Client is  looking to replicate or something like this link or better.
    http://www.2minuteexplainer.com/portfolio-of-2-Minute-Explainers.html?p=inq_search
    What do you think this was done in? I working in Flasch CS3 with AS3
    Thank you for any help.

    TweenLite/Max with TimelineLite/Max has just what you're looking for. Go over to greensock.com and
    check out the example.

  • Conversion of QUICKTIME to flv

    Hi,
    I'm building an application where a quicktime file will be uploaded to the server.On the server i need to convert it into flv which i'll be using for streaming.Can someone please guide me about how to convert a quicktime file to flv in java?
    Thanks in advance...

    sh0ckbyt3 wrote:
    Not necessary to get snappy, (though I've done my share of snapping at others too) Normally, I am very polite and understanding. However...
    Copy the link provided by you, click on the link to "get FFMPEG", read the first paragraph. "FFmpeg is developed under Linux"... 1 copy, 1 paste, 1 mousepress. 3 keypresses total. 5 if you count "CTRL+" each time...And that's assuming the OP doesn't recognize configure / make are Linux commands, at which point he could have saved himself from the mouse click and the reading...
    Literally, it took the OP more keypresses to say "I need something that will work in Linux" than it would have taken to find out that it works in Linux... Literally...more work.
    Asking questions based on unfamiliarity will get a polite response from captfoss. Asking questions based on pure stupidity will get you a sarcastic but useful answer. Asking questions based on pure and utter laziness will get you snapped at.

Maybe you are looking for