PercentLoaded returns negative value

Hi there,
I use some javascript on the website I'm working on to check if a swf file is loaded. I use the PercentLoaded method like explained here How should I judge that the flash has been loaded completed
It works well except that sometimes the file loads until 50-70% and then PercentLoaded starts to return negative values. This seems to only happen with really large swf files, usually bigger than 30MB.
Is there a reason to that? Is it a known issue? Is there a workaround?
Thanks!

Hello!
We have the same issue.
In our case the swf that is returning a negative value is 20Mb.
Any solution/workaround?
Thanks!

Similar Messages

  • [svn:fx-3.x] 18471: bug fix for 2749575 The API -- mx.messaging.messages. MessagePerformanceUtils; associated attributes/ properties like totalTime are returning negative values

    Revision: 18471
    Revision: 18471
    Author:   [email protected]
    Date:     2010-11-05 10:22:11 -0700 (Fri, 05 Nov 2010)
    Log Message:
    bug fix for 2749575 The API -- mx.messaging.messages.MessagePerformanceUtils; associated attributes/properties like totalTime are returning negative values
    Change adding set method for receive time to avoid it override the value set by detecting it is an OUT infoType
    BlazeDS checkintests pass
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/messages/MessagePerformanc eInfo.as

    Dear Pallavi,
    Very useful post!
    I am looking for similar accelerators for
    Software Inventory Accelerator
    Hardware Inventory Accelerator
    Interfaces Inventory
    Customization Assessment Accelerator
    Sizing Tool
    Which helps us to come up with the relevant Bill of Matetials for every area mentioned above, and the ones which I dont know...
    Request help on such accelerators... Any clues?
    Any reply, help is highly appreciated.
    Regards
    Manish Madhav

  • FPGA returning negative values

    Hello,
     I have a question regarding an FPGA program,
    the following attachments show the files and configuration I have been working on. When the laser light falls on the detector , the ADC converts to its values and gives me the output. And it returns positive values.
    Everything was working fine and now it seems the opposite. When light falls on the detector it returns negative values and when there is less/no light, I get positive values.
    I have no idea. why this is happening. Please advise.
    PS : I can provide the program if necessary.
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]
    Attachments:
    configuration.ppt ‏123 KB

    What changed when this started happening?  Did you modify your experiment at all?
    In my opinion the most likely situation is that the positive and negative analog inputs got swapped - is that possible?  Are the wires somewhere that someone could have bumped them, and then plugged them back in to make it look like nothing happened but reversed them?

  • FileInputStream.read returning negative values

    I'm trying to read binary data from a file and convert it to decimal. If I use a hex editor, through one section, I'll see the values as they actually are. Using read() on a FileInputStream object seems to randomly create negative values which are sometimes correct if I use Math.abs(), and sometimes theyre not. I don't have a clue what's going on and it's getting frustrating, as FileInputStream.read() supposedly returns an integer between 0 ane 255, which is what I'm expecting.
    Thanks for the help!

    Are you doing something like this...
    byte value = in.read();
    int useIt = value;If the value is being stored in a byte and then cast to an int, the sign bit will be extended and it will become negative. This is because a java byte is actualy +/- 127.
    To solve it, you do this..
    int useIt = value & 0xff;or never store it as a byte in the first place.
    This is what you have to do when reading bytes out of byte arrays...
    int useIt = byteArray[index] & 0xff;

  • Select returns negative values for unsigned datatypes in MySQL DB

    Hi, I have a table in a MySQL database where some fields are declared as "unsigned".
    Example:
    CREATE TABLE countries (
    Country_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
    Number SMALLINT UNSIGNED NOT NULL
    My problem is when inside a .xsql file, I try to do a select:
    <xsql:query>
    select Number from countries where Country_id="15"
    </xsql:query>
    If inside the Database, Number always goes from 0 to 65535 (UNSIGNED SMALLINT),
    the resulting XML of that query will always show negative values if Number is
    bigger than 32767 (so it ignores the "UNSIGNED").
    Have you seen something like this before? Do you kwno what I'm doing wrong or what
    can I do to retrieve the values unsigned?
    Thanks a lot!
    David

    hi muneer
    >
    We are facing a strange issue in our R12.1.3 Ebiz instance (DB 11.2.0.1) - Solaris Sparc 64 bit - 2 node (1 node Apps, 1 node DB).
    Some of the purchase orders are having a negative purchase order number.
    SQL> select segment1 from PO_HEADERS_ALL where segment1 < '0';
    SEGMENT1
    -7951814
    -8960847please see
    Error: Purchase Order Creation Could Not Be Initiated, But PO Was Created With Negative PO Number And No Distributions [ID 789464.1]     To Bottom     
    PO Creation Process Failed In Sourcing And Creates Document With Negative Numbers [ID 1479616.1]
    Purchase Order Receipt FAQ (P4312) [ID 1306869.1]
    How it could happen. Any suggestions please !looks like a bug
    Can a Purchase Order (PO) Be Created With Negative Quantity or Price? [ID 241389.1]
    AppsMasti
    Sharing is caring

  • AvailableSize() from FileConnection returns negative values

    Hello, when I call availableSize() from the internal memory (using a FileConnection object) I get the correct value, but when the same is asked from the memory stick I get negative values, is this a known issue?, is there a nice workarround for this?
    The phone is a SE Satio, the available size of the memory stick is 3775MB (the phone says), but availableSize() gives -336461824
    Thanks.

    That is so correct..., thanks.

  • Inventory Management Negative Values

    Hello Experts -
    I'm working on an inventory management report and we're in BI 7.0.
    In the report, the valuated stock quantity is a non-cumulative key figure with inflow as receipt stock qty and outflow as issue stock qty.
    In my transformation, I'm taking care of the process keys and multiplying by -1 when the keys are 100, 101, 104, 105, 106, 110. I'm doing that for qty as well as for $ figures.
    But when I look into valuated stock qty in my report, I'm seeing negative values for movement type 602 which is a return. Earlier this was a positive value.
    For movement type 601 which is a sales, I'm seeing positive values which used to be a negative value.
    Basically, the figures got reversed even though I'm multiplying by -1 only on one set of process keys such as 100, 101, 104, 105, 106, 110.
    Is it ok to have negative figures when dealing with movement types?
    Any help would be greatly appreciated.
    As always, points will be granted.
    Thanks!

    Hi,
    Check these threads.
    Negative Val Stock
    Inventory Report with negative stock
    Regards.

  • Crystal reports V8.5 Chart legend adding up incorrectly - when using negative values

    Post Author: dawnyanne
    CA Forum: Crystal Reports
    Hi
    if anyone can help me I would be extremely grateful!
    I have a pie chart with a legend. There are just two values that are showing but one of the values is a negative value and the total of the legend is adding up incorrectly. Here is how it is showing at the moment
    Cash                 -0.71
    Uk Equities     100.71
    Total              101.42
    here is how it should be
    Cash               -0.71
    UK Equities   100.71
    Total             100.00
    I can set the chart amounts to be percentage - but then it comes out as only one decimal place and I need two.
    Any help would be very much appreciated!
    kind regards
    Dawnyanne

    Hi Ryan
    The search string 'crystal net 40' (search box in top right corner, returns this KBA:
    2105208 - ER - CR .NET SDK has a Section limit set to 104 and subreport limit of 40
    SP 13 for "SAP Crystal Reports, Developer Version for Visual Studio .NET" can be downloaded here:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow me on Twitter

  • Negative Values

    Hi
    Can we use Negative values in BLOB and CLOB.
    Please help me
    Thanks
    Ramesh

    user9077483 wrote:
    Can we use Negative values in BLOB and CLOB.CLOB stores character data and BLOB stores binary data. So all you could is to store string representation of a number (negative, zero or positive) in a CLOB and binary representation of a number (negative, zero or positive) in a BLOB. Question is why would you do that? Anyway, number to clob conversion is done automaticallly (implicitly), while you would need to use something like utl_raw package to convert number to blob:
    SQL> create table tbl(b blob,c clob)
      2  /
    Table created.
    SQL> insert into tbl values(-1,-1)
      2  /
    insert into tbl values(-1,-1)
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected BLOB got NUMBER
    SQL> insert into tbl values(utl_raw.cast_from_number(-1),-1) -- this stores number as blob and as clob
      2  /
    1 row created.
    SQL> select * from tbl
      2  /
    SP2-0678: Column or attribute type can not be displayed by SQL*Plus
    SQL> select c from tbl -- this returns clob, not a number
      2  /
    C
    -1
    SQL> select utl_raw.cast_to_number(b),to_number(c) from tbl -- this returns both blob and clob converted back to number
      2  /
    UTL_RAW.CAST_TO_NUMBER(B) TO_NUMBER(C)
                           -1           -1
    SQL> But again, even though you could (at a relatively large cost of associated conversions and storage expenses) I do not see any reason to store numbers as blob/clob.
    SY.

  • Negative values on customer consignment stock

    Hello,
    Is it possible to have negative values on customer consignment stock?
    i.e. the same material is sent to a customer, as consignment stock
    (special stock W), from different plants. If the material is not used
    by the customer (then it has not been billed, as it is on consignment),
    the customer can return all that stock to only one plant. This means
    that the overall stock for that material on customer consignment will
    be cero, but the standard SAP does not allow to return to one plant
    more quantity than what it was originally sent from that plant.
    Is there a possible workaround to this situation?
    Thank you.

    maybe that you sold more pieces than you had, and the material master allows negative stock on the plant/storage location.
    pls. reward points if helpful
    regards
    Roberto

  • Convert positive to negative value in cells?

    Hi,
    Can't seem to find this anywhere and Mr Google is starting to refer me to Excel pages, so thought I'd try here - pretty simple, I just want to convert a set of positive values to negative. Is that possible?
    Thanks,
    osu

    If your values are stored in cells of column B, in an other column, say, column C
    in cell C2, enter the formula :
    =ABS(B2)
    then apply Fill Down
    If you don't want to use an auxiliary column, use an AppleScript like this one.
    --[SCRIPT cellstoabs]
    Enregistrer le script en tant que Script : cellstoabs.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner un bloc de cellules.
    Aller au menu Scripts , choisir Numbers puis choisir cellstoabs
    Le script remplace sur place les valeurs négatives par leur valeur absolue.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    Sous 10.6.x,
    aller dans le panneau "Général" du dialogue Préférences de l'Éditeur Applescript
    puis cocher la case "Afficher le menu des scripts dans la barre des menus".
    --=====
    Save the script as a Script: cellstoabs.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a range of cells.
    Go to the Scripts Menu, choose Numbers, then choose "cellstoabs"
    The script replace the negative values by there ABSolute value.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/10/21
    --=====
    property liste_valeurs : {}
    --=====
    on run
    local dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2, liste_valeurs, c, cc, r, une_valeur
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    if rowNum2 = rowNum1 then set rowNum2 to count of rows
    set my liste_valeurs to value of cells rowNum1 thru rowNum2 of columns colNum1 thru colNum2
    repeat with c from colNum1 to colNum2
    tell column c
    set cc to c + 1 - colNum1
    repeat with r from rowNum1 to rowNum2
    set une_valeur to item (r + 1 - rowNum1) of item cc of my liste_valeurs
    if une_valeur < 0 then set value of cell r to -une_valeur
    end repeat
    end tell
    end repeat
    end tell
    set my liste_valeurs to {}
    end run
    --=====
    set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
    on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
    tell application "Numbers"
    set d_Name to name of document d_Name (* useful if we passed a number *)
    tell document d_Name
    set s_Name to name of sheet s_Name (* useful if we passed a number *)
    tell sheet s_Name
    set t_Name to name of table t_Name (* useful if we passed a number *)
    end tell -- sheet
    end tell -- document
    end tell -- Numbers
    if r_Name contains ":" then
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
    end if
    else
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    end if -- r_Name contains…
    return {row_Num1, col_Num1, row_Num2, col_Num2}
    end getCellsAddresses
    --=====
    set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
    apply to named row or named column !
    on decipher(d, s, t, n)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
    return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    on decoupe(t, d)
    local oTIDs, l
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to oTIDs
    return l
    end decoupe
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) jeudi 21 octobre 2010 09:38:59

  • When JNI_CreateJavaVM throws negative value

    when JNI_CreateJavaVM return value is negative value, does it mean
    already jvm exits.
    i try to grab the jvm using getjvms, the command returns zero code but the number of jvms is 0.
    thanks in advance
    gvkk

    the code is , i am able to successfully compile(1 warning about the exit command)and linking also successfull.when i execute it returns -1 value (JNI_ERR).this code is from forum.i have tried with the code listed in JNI specs it throws the same error.
    thanks for your time in advance
    #include <jni.h>
    main() {
    JavaVMOption options[3];
    JavaVMInitArgs vm_args;
    JavaVM *jvm;
    JNIEnv *env;
    long result;
    jmethodID mid;
    jclass cls;
    jobjectArray args;
    jstring jstr;
    options[0].optionString = "-Djava.class.path=.";
    options[1].optionString = "-Djava.compiler=NONE";
    options[2].optionString = "-verbose:jni";
    vm_args.version = JNI_VERSION_1_2;
    vm_args.options = options;
    vm_args.nOptions = 2;
    vm_args.ignoreUnrecognized = JNI_FALSE;
    /* Create the Java VM */
    result = JNI_CreateJavaVM(&jvm,(void **)&env, &vm_args);
    printf("JVM created\n");
    if(result == JNI_ERR ) {
    printf("Error invoking the JVM");
    exit (-1);
    cls = (*env)->FindClass(env, "Prog");
    if (cls == 0) {
    fprintf(stderr, "Can't find Prog class\n");
    exit(1);
    mid = (*env)->GetStaticMethodID(env,
    cls, "main", "([Ljava/lang/String;)V");
    if (mid == 0) {
    fprintf(stderr, "Can't find Prog.main\n");
    exit(1);
    jstr = (*env)->NewStringUTF(env, " from C!");
    if (jstr == 0) {
    fprintf(stderr, "Out of memory\n");
    exit(1);
    args = (*env)->NewObjectArray(env, 1,
    (*env)->FindClass
    (env, "java/lang/String"), jstr);
    if (args == 0) {
    fprintf(stderr, "Out of memory\n");
    exit(1);
    (*env)->CallStaticVoidMethod(env, cls, mid, args);
    (*jvm)->DestroyJavaVM(jvm);

  • Cubeset to only return positive values?

    Yet another cube formula question... In Excel 2010, no powerpivot or olap pivottable extensions, this is a pure Excel project.
    I am building various cubeset, cubemember, and cubevalue formulas to validate an ETL process.
    Question:
    I need to create a cubeset that only returns the members of a cube that have positive values for a specific measure. This cubeset will then be one of several cubesets that gets fed into a cubevalue formula that would otherwise exceed the 255 char limit.
    I can create a cubeset for the overall measure:
    =CUBESET("MyCube","[Measures].[RetailPrice]")
    but haven't found the right syntax for limiting results to only those that have positive values, I think it would be something like:
    =CUBESET("MyCube","FILTER[Measures].[RetailPrice],[Measures].[RetailPrice]>0")
    This syntax actually doesn't return an error, so maybe it is valid syntax... but when I wrap it in a simple cubevalue statement,
    =CUBEVALUE("MyCube", A2)       where A2 is the Cubeset above, or if I also add date range and other filters,
    I get a #Value error, indicating that "the tuple is invalid" per
    http://office.microsoft.com/en-in/excel-help/cubevalue-function-HA010342391.aspx?CTT=5&origin=HA010342384
    I'm still a newbie with the cubeformula syntax and MDX, so I appreciate any suggestions!

    Hi Rohit-
    The cube has a net value of 1220 for the measure I'm trying to calculate (when I don't filter on > or < zero).
    I tried my formula both ways (looking for just positive, and just negative values) and while both work in the standalone cubeset formula, neither return a value when I use it in a cubevalue formula.
    My suspicion, other than a syntax error, is that this may have something to do with me trying to filter on the measure value(s), instead of a dimension- which I think must be possible, but again maybe not with this syntax.
    Let's assume that we had a total of 1280 in retail price, but due to a few returns, we have a few records that show value of -60. If we were looking at profitability, the 1220 is what matters. If we are looking at "dollars exchanged" as a variable expense
    driver of some other measure, then we'd actually want the absolute value of retail price (1280+60 = 1340). I hadn't been able to get the MDX ABS to work, so this was my attempt to grab the positive and negative numbers separately, and then add them to get
    the equivalent of ABS.
    In this case, slicers aren't a desirable option due to how the report is being constructed (I've used slicers in other reports with cubeformulas, but with Excel 2010 I have to have an extra pivot table to get the slicer value, which then has to get fed into my
    cubeform and I'm back at step 1, getting it to work in the cubeformula syntax)
    Thanks!

  • Set Negative values in red color

    Hi, i want to set the negative values in the table in the red color.I have created the table dynamically.So i have created a context node called "ColorData" and in that i created a context attribute "grossSemantic". I have set the type of this attribute as "com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor" .And i have written the below code.
    But there is no effect at all. Where am i going wrong? Please suggest.
    String color = "ColorData";
    IPrivate<ViewName>.IColorDataNode colorNode = wdContext.nodeColorData();
    IPrivate<ViewName>.IColorDataElement colorElem = colorNode.createColorDataElement();
    for(int flag = 0; flag < wdContext.node<BapiNodeName>.size(); flag++){
    IPrivate<ViewName>.I<BapiNodeElement> tableElem = bapiNode.get<BapiElement>(flag);
    if(tableElem.get<ColumnName()>.signum() == -1){
    editor.bindDesign(color "." "grossSemantic");
    colorElem.setGrossSemantic(WDTextViewSemanticColor.NEGATIVE);
    column.setTableCellEditor(editor);
    Regards,
    Padmalatha.K

    Say the table data source is named "Rows".
    Add a calculated context attribute "color" of type TextViewSemanticColor to node "Rows" (or an 1:1 subnode if needed).
    Bind the table cell editor (TextView) property "semanticColor" to attribute "color".
    Implement calculated attribute as
    WDTextViewSemanticColor getRowsColor(..., IRowsElement element)
      return element.getSign() == -1 : WDTextViewSemanticColor.NEGATIVE : WDTextViewSemanticColor.STANDARD; 
    Armin

  • Negative values in textfield

    Hello,
    I would like to know if it's possible to check the value of a textfield when it is used for numeric values.
    I have a form and it should not be possible to enter negative values in the textfields...
    Regards,
    Sofie

    Hi Sofie,
    Yes you can make a Validation process where you use the to_number function. Something like this:
    declare
    l_num number;
    begin
    l_num := to_number(:MY_ITEM);
    return true;
    exception
    when others then
    return false;
    end;
    Regards Pete

Maybe you are looking for