I can't get accurate playheadTime in flvplayback component.

I use flvplayback to play a 20 seconds flv video, but I can't get accurate playheadTime no matter how to set the attributes.
Here is my as3 codes.
import mx.video.*;
my_FLVPlybk.playheadUpdateInterval=10;
//my_FLVPlybk.seekBarInterval=100;
//FLVPlayback.seekBarScrubTolerance=100;
function the_play(eventObject:Object)
ta.text = my_FLVPlybk.playheadTime;     //  ta is a textarea.
function the_end(eventObject:Object)
ta.text = "video over";
my_FLVPlybk.addEventListener("playheadUpdate", the_play);
my_FLVPlybk.addEventListener("complete", the_end);
I drag seekbar to between 0 and 8 seconds, it always obliges to 8.333 .

It looks to me liek you are using an old FlvPlayBack componenet - from AS2. You should probably post in the AS2 forum. Otherwise, if you have Flash CS3/4/5, I'd recommend you use a newer component.
The "mx.video" code (the package) is what indicates this is a several-years-old component. With AS3, you should be working with the "fl.video" package.

Similar Messages

  • Can we get error message when a component is entered twice in BOM??

    Hi,
    I have a BOM with around 150 components.
    Can we get an error or warning message when ever a component is entered twice in the component list????
    Thanks for your views.
    Naveen.

    In addition to the above points about enhancement PCSD0005, here is some more information that you may find useful.
    - The enhancement is called when you press enter after inserting a component.
    - The component name is stored in field rc29p-idnrk
    - Your programmer should know if it is possible to transfer this name to a table where it can be retained. Then when you add the next component, the exit can check against the previously inserted components. With a lot of components, you may get performance problems doing this though....
    Exit is called here:
    SAPLCSDI     FORM     MATERIAL_PRUEFEN
    CALL FUNCTION 'EXIT_SAPLCSDI_006'
       call customer-function '006'
            exporting                                          "note 611155
                 i_rc29p  = rc29p                              "note 611155
            importing
                 msg_data = msg_tmp
                 t_msg_data = lt_msg                           "note 942798
            tables
                 mat_bom_allocation = mastb_tmp
            changing

  • Can't get window reference in used component

    Hi,
    I have a window which embeds a view of a used Z component. I am using the window as popup, that is, I am creating it as:
    lo_window = lo_window_manager->create_window(
                    window_name = 'USED_COMPONENT'
                    title       = l_title
                    button_kind = if_wd_window=>co_buttons_okcancel ).
      lo_window->open( ).
    Then, in the used component's WDDOINIT I am trying to register OK button to an action like:
    lo_view_api       = wd_this->wd_get_api( ).
      lo_window_ctlr    = lo_view_api->get_embedding_window_ctlr( ).
      lo_window         = lo_window_ctlr->get_window( ).
      IF lo_window IS BOUND.
        lo_window->subscribe_to_button_event(
                    button            = if_wd_window=>co_button_ok
                    action_view       = lo_view_api
                    action_name       = 'BUTTON_OK_PRESSED'
                    is_default_button = abap_true ).
      ENDIF.
    However, my lo_window reference remains initial, that is, the get_window method returns nothing. Everything else works good and even this works good if I have a window within the original WD component. But if I do it with used component, I can't get the window reference.
    Any ideas?
    Thanks!
    KR,
    Igor
    Edited by: Igor Barbaric on Jul 8, 2009 3:09 PM
    Note that these 2 code portions do NOT belong to the same method so the lo_window variable is not the same.

    I believe that the problem is the fact that the inner component WDDOINIT gets called before the component is actually embedded into the window.
    You would likely have to try a later event - like perhaps the WDDOINIT of the View. 
    I've personally taken a different approach in the past.  When I have had a component usage to emebed, I didn't create a static window for it. I used the create_window_for_cmp_usage API.
    DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_faculty_details( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
    DATA: l_ref_interfacecontroller TYPE REF TO ziwci_cs_course_faculty_dtl .
      l_ref_interfacecontroller =   wd_this->wd_cpifc_faculty_details( ).
      l_ref_interfacecontroller->external_initialization(
        faculty_id = item_faculty_id ).
      DATA: l_window_manager TYPE REF TO if_wd_window_manager,
            l_cmp_api        TYPE REF TO if_wd_component,
            l_window         TYPE REF TO if_wd_window.
      DATA: l_text_t01 TYPE string.
      l_text_t01 =
        wd_assist->if_wd_component_assistance~get_text( 'T01' ).
      l_cmp_api        = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
      l_window         = l_window_manager->create_window_for_cmp_usage(
                         interface_view_name    = 'W_POPUP_DTL'
                         component_usage_name   = 'FACULTY_DETAILS'
                         title                  = l_text_t01
                         message_display_mode   = if_wd_window=>co_msg_display_mode_selected ).
      l_window->open( ).
    Notice that I call an interface method (external_initialization) of my inner component. You could also call this method after the window_open and even pass a reference of the window object into the method.  This might be a workaround to your problem.

  • Can't get accurate count of messages in Mail

    I am trying to write a script that checks the number of message in a specific mailbox in Mail. It works swimmingly, except that when I move messages out of the 'watched' folder, the count continues to include these messages that are no longer in the mailbox. Worse still, if I move a message in and out, each time I move it in, another 'phantom' message is created that will be counted on the next script run.
    I have tried a repeating loop to count every message of the mailbox, and have tried flagging and unflagging, as well as moving a message in and out of the mailbox in the script, etc. to clear Mail's cache of these phantom messages, to no avail. Curiously, if I manually move a message into the mailbox from another mailbox just before running the script, the count is corrected. If the script performs this same action, however, the count is incorrect.
    The only cure seems to be either quitting Mail and re-launching it before counting (not a viable option, as this script runs periodically), or deleting all messages when they leave this folder (and emptying the trash!).
    Any advice? Is this just a Mail bug that I will have to live with?
    Let me know if it would help for me to post my code.
    Thanks!

    aprilsteele,
    You can add a two page pdf. Just right click on the pdf. aka (ctrl) click on it. What that does is open up a menu of options. First if it just displays an icon (ctrl) click and select (View in Place) and after you can see it (ctrl) click the pdf and select (Single Page Continuous) that way you will see both Pages or all pages in a single column.
    As for the web link once the PDF is downloaded to a computer those links will become active again. Although if you actually type in a web link in the email not in the PDF attached it will act the way you want. Might I recommend adding a signature with your name, email, and website that way it will be at the bottom of every email you send.
    Hope that helps.

  • Can't get photos on TV using component cable?

    Searched forum, and tried solution from http://discussions.apple.com/message.jspa?messageID=5564661#5564661
    It didn't work! I have a SONY HDTV with component video contection. SONY says I have it properly configured. I get ipod music, but picture is odd colors and multiple images that flicker across screen. I have loaded pictures at full resolution on ipod. Any suggestions?

    Got wrong cable from Apple.

  • Why I can not get the image file of component?

    Hello,
    I tried to get an image file from the component. After I run the code below, there is not any new file created. Could you tell me what's wrong with it?
    Rectangle d = this.getBounds();
    BufferedImage bi = new BufferedImage(d.width, d.height, BufferedImage.TYPE_INT_RGB);
    try {     
    ByteArrayOutputStream boutstream = new ByteArrayOutputStream();
    // save it to file
    FileOutputStream fimage = new FileOutputStream( new File( "image.png" ) );
    boutstream.writeTo(fimage);
    fimage.close();}
    catch (Exception ev){     
    System.err.println("error making jpeg image: " + ev);
    ev.printStackTrace();}

    BufferedImage bi = new BufferedImage(d.width,d.height, BufferedImage.TYPE_INT_RGB);Straight after the above line you need to put this line:
    d.paint(bi.getGraphics());
    This is what was suggested to me in this thread(http://forum.java.sun.com/thread.jsp?forum=57&thread=369379) anyway, and it worked for me!

  • Getting the name of the component

    How can I get the name of the component at run time. I'm trying to find out the name of components like JTextField. I've already tryed <component>.getName() but it returns null.
    Tks
    Roberto Garcia

    That must be because you didn't ever call the component's setName() method.
    Or what did you expect the "name" of the component to be?

  • Get code of the flash component - Help

    Dears,
    I have a .fla file, source code, of an application flash, but this file have only a component which was entered to flash by .mxp file.
    How can i get the code of this component until i can change in it ?
    Thank you dears in advance
    amt

    Hey,
    In your case i would contact Toshiba memory support. You can give them a call or write an e-mail, have a look on Toshiba memory page:
    http://www.toshiba-memory.com/en/service_support.html
    Have you created the password using U3T software? On the same Toshiba page there is a FAQ article how to remove U3T Launchpad software.

  • Can I get FIOS? Is the website checker accurate??

    When I enter my phone number into the "Can I get FIOS?" web page on Verizon's website to check if FIOS is available at my address, it tells me "Congratulations! Your location qualifies for our FIOS services."  Really????  We don't see the fiber optic cable on the pole line on our street.  When did Verizon install it?  If I call residential customer service can they verify that it has been installed on my street?  (FYI, my husband is a retired Verizon line man and he knows what to look for vis a vis the pole line on our street.)  It was definitely not buried, so if it was not aerially installed, it ain't there!
    Solved!
    Go to Solution.

    I would suggest double-checking by using the address search feature as well. Also, if you call customer service they should be able to tell you.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Switching between FLVPlayback component at their playheadTime

    Hi There,
    I hope someone can save me with this.
    I am currently on a project (AS3), where I have 2 frames, with videos (using the FLVPlayback component).
    and I want to switch from one video to the next video, however the catch is when i switch to the next video I want the new video to play at the previous video time.
    example:
    Video 1 plays,  10 sec later, you click a button to go and see the next video (in another frame) and that new Video starts 10 sec into it.
    This is the codes I been using so far:
    import fl.video.VideoEvent;
    import fl.video.MetadataEvent;
    video1.addEventListener(VideoEvent.PLAYHEAD_UPDATE, timer);
    function timer(e:VideoEvent):void {
        var newTime = video1.playheadTime;
    nextFrame_btn.addEventListener( MouseEvent.MOUSE_UP, nextFrame);
    function nextFrame (MouseEvent):void
                gotoAndStop(2);
          video2.playheadTime = newTime;
    This doesn't work and I do not know what I am doing wrong.
    many thanks if you can help.

    yes there is another layer with codes but that is for the buttons.. that can work throughout the flash (in all frames). Sorry I forgot about that. Those buttons are just basic home, end buttons. In the other layer is the switch code for the button I am trying to make.
    This button/code for some reason does not like being in the main code layer. So I added it in another layer, which seem to make it work. (The part where I want it to gotoAndStop in another frame.)
    var newTime:int;
    switch_btn.addEventListener(MouseEvent.MOUSE_UP, switch1);
    function switch1 (MouseEvent):void // Function to turn on 3D mode
                        newTime = video1.playheadTime;     
                        this.addEventListener(Event.RENDER,renderF);
    trace("stage:",stage);
                        stage.invalidate();     <= that use to be line 15 before the trace was added.
            gotoAndStop(2);  
                        trace (newTime);
    function renderF(e:Event):void{
      video1.seek(newTime);
    the other layer has this code:
    cha1_btn.addEventListener(MouseEvent.MOUSE_UP, cha1);
    chan2_btn.addEventListener(MouseEvent.MOUSE_UP, chan2);
    function cha1 (MouseEvent):void
              gotoAndStop(10);
    function chan2 (MouseEvent):void
              gotoAndStop(11);
    They are on seperate layers because the switch function is used in all the frames, but to gotoAndStop in different frames.
    aka this one: is in frame 10, which goes to frame 2
    and there will be another one in frame 2 to go to frame 10.
    then there is another in frame 11, which goes to frame 3
    and then the same for frame 3 to goto frame 11.
    so thats why there were in seperate layers, to be able to change that. (sorry if this is getting confusing)

  • How can I get a list of apps which are supported on ipod touch model ma623zo?

    How can I get a list of apps which are supported on ipod touch model ma623zo?
    It's about 6 years old I think.
    I have put the latest IOS on there (currently 3.1.3 (7E18)).
    I download apps from the app store but they often fail to launch. I assume they're incompatible.
    Is there a way to check which apps will work and which won't before I buy them?
    Thanks!

    I have no idea how my reply could be "misleading". I stated the exact situation: there are millions of apps in the iTunes Store, and providing a comprehensive, accurate list of which apps support which version(s) of iOS would be highly impractical. You can perhaps help with your search by going to AppShopper:
    http://appshopper.com/search/?search=iOS+3
    That will give you at least some starting points, but AppShopper is neither comprehensive nor completely accurate. I've found a number of apps listed there over the time the site has existed that either are no longer offered or which have been updated beyond the iOS version indicated. But it might help.
    Regards.

  • So when I installed the most recent updates for microsoft office 2011 for mac, my ical info disappeared.  Still have the info on my Office calendar but it's no longer on ical.  It's also been removed from my phone.  How can I get outlook to sync with ical

    When I installed the recent updates for Microsoft Office 2011 for Mac, my iCal calendar was wiped out, as was the calendar on my iPhone.  I'd rather use iCal than Office and was attempting to phase Office out altogether.  Now, all of my information is on the Office calendar but not iCal.  The iCloud version of my iCal calendar is not up to date.  In any event, I couldn't figure out how to send that info to the iCal on my mac or my phone.  How can I sync my Office calendar info to iCal?  If that's not possible, how can I get my Office calendar to sync with my iPhone?  All of my sync services are set up in iTunes and on my phone.  This happened to me once before and I spent hours on the phone with Apple and on the web trying to work it out.  I NEED MY CALENDAR!!!! PLEASE HELP!!!!!

    As that's not an Apple product, you may get more help by using Microsoft's Office for Mac forums:
    Office for Mac forums
    The other concern I have is that Office 2011 requires an Intel-based Mac and you posted in the older iMac (pre-Intel or "PPC") forums. If you have an Intel-based iMac (Apple menu > About this Mac..." will say "Intel" if you do) then I think you'll get faster and more accurate ansers to other questiosn in the Apple forums for newer iMacs here:
    iMac (Intel)

  • Undeletable e-mail in Mail - the latest! How can I get rid of it?

    Following my recent posts about an undeletable e-mail received as undeliverable mail (I never sent it in the first place so it's obviously coming from a virused address book) I now have 13 copies of an identical e-mail which won't go away. My Mac says they're junk, but they're in the inbox and when I move them manually, they leave the inbox but don't appear in the junk. Once I return to the inbox, there they are again - with one more copy. There is no visible body, just a header stating:
    "Subject: A hacker can access a public web site linked to an internal distributed file system and gain access to company and customer files."
    I recently went to a PC forum for help and when I copied and pasted the header onto their forum , a green link appeared under the words "web site" taking me to a site "zimki.com" with whom I have never dealt.
    How can I get rid of these self-generating e-mails?
    Incidentally this message is not on my server as web mail access was used to delete it, so it only appears on the Mac.

    Yes I did repost, as the original problem - a huge e-mail downloading - proved not to be the case so this is a more accurate description of the problem in the hope that I can get a more accurate solution.
    I used the edit/ cut solution (thank you!) which removed the e-mails from my inbox, but they're now back with a vengeance including about twenty copies of one entitled "fez" (a virus maybe?) - I now have two of every e-mail downloading; my Mac tells me this fez message is junk but now adds that "You need to take this account on-line to download this message" - except the download in progress wheel keeps going on, and on, and on....and the new messages in my inbox (I now have two or three variations on the original theme) won't go anywhere except by edit / cut.
    I'm tearing my hair out!!!
    I've just erased all the messages by webmail, 52 messages, so it appears my Mac is also no longer automatically erasing the messages on the server after download even though the box for this is ticked.

  • While upgrading Adobe Creative Suite CS4 ME into Adobe Creative Suite CS5.5 Design Premium, I get an error saying This serial number is not of a qualifying product, please try another. I used to be able to get a code from customer service but I can't get

    While upgrading Adobe Creative Suite CS4 ME into Adobe Creative Suite CS5.5 Design Premium, I get an error saying This serial number is not of a qualifying product, please try another. I used to be able to get a code from customer service but I can't get to the chat. Please advise!!!!

    MoeGhazal I reviewed your account and it looks like you have have upgraded from a CS4 volume license for Design Premium to a retail upgrade of Design Premium 5.5.
    I also show that you made two purchases of CS5.5 Design Premium but the second purchase was canceled.  Please make sure you are utilizing the serial number which ends in 7886.
    If you are using the correct serial number then it is likely the installer will not recognize your volume license CS4 serial number as being valid for an upgrade.  If you can contact our support team then you can be walked through an unlocking procedure to allow you to proceed with the installation.  You can contact our support team directly at Contact Customer Care.  You may want to try installing a web browser you have not previously utilized.  It is likely a toolbar or some other software application is affecting your ability to access chat support successfully.
    If you are still unable to reach our support team then please verify the information under your account is accurate.  If you can please then update this discussion after confirming this then I can request a member of our support team contact you directly.
    Again I would recommend reaching out directly if possible as it will be the most efficient method of resolving your current error.

  • How or where can I get information on what data and/or sites my data is downloaded from?

    My monthly cycle just turned over on 10/19. On 10/25 I  got notice that I had already downloaded 75% of my monthly allowance. I am having a hard time believing I have already downloaded 3GB of data. I want to see what was downloaded and where it came from. How can I get that information? Thanks to any and all who can enlighten me.

    SuzyQ wrote:
    What kind of phone do you have?  Instructions and menu items vary from device to device... but you should be able to go to Settings (on the phone), Data Use, and split out the mobile and the wifi data, and view which apps are using the data, and how much they are using.
    That's almost funny, since doing that on my phone shows at least one app using data during the current cycle that has been disabled for 2 years; since I purchased the phone.  I have NEVER used Zappos, and it has been disabled since the beginning, and yet it has used data during the current cycle?  Verizon needs to open it's books and allow customers to actually see WHAT data they are being charged for, NOT just the time (which is not accurate anyway) and amount.  Otherwise, there is no way to verify that we are being ripped off and overcharged for data.  Period.

Maybe you are looking for