Check if file loaded ok with loadMovieNum? AS2

Hi All,
is there a way to capture the Error loading message as a boolean when loading an external file (AS2)?
I wanted to make a decision based on the success for loadMovieNum.
The scenario is that I have a file that I am loading with loadMovieNum and all is working successfully.
The circumstance I wish to cover is if the file is missing for any reason, I want to load a placeholder movie.
I have looked at onLoad and onClipEvent(load) but these appear to only be for movieclips and not external files.
Any guidance would be appreciated.  Thank you.
Best Regards
Chris

Thanks Kglad.
do I need to pass the external file into a movie clip to reference?
I was using:
mc = folder+this.fileName;
loadMovieNum(mc, 2);
which worked but couldn't test success.
I've tried:
    var loadListener:Object = new Object();
    mc = folder+this.fileName;
    MovieClipLoader.loadClip(mc);
    loadListener.onLoadError = function(mc:MovieClip, errorCode:String,[httpStatus:Number]) {
       trace("Couldn't find file"};
I can see I'm having trouble with MC not being a movieclip name but a vairable, and it's produced errors stating that the value isn't a static attribute.
Any suggestions?
Best Regards
Chris

Similar Messages

  • Flat File loading Initialize with out Data transfer is disabled in BI 7.0

    Hi experts,
              When loading through flat file in BI 7.0 for Info Package Level Initialization Delta Process with data Transfer is coming by default,but when i want to select Initialization Delta Process without Data transfer is disabled. (in the creation of Data Source (flat file) in the Extraction Tab Delta Process is changed to FIL1 Delta Data (Delta Images).
    please provide me Solution.
    regards
    Subba reddy.

    Hi Shubha,
    For flat file load please go throught he following link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/03450525ee517be10000000a1553f6/frameset.htm
    This will help.
    Regards,
    Mahesh

  • Executing flat  file loading map with parameter

    Hi
    The requirement here is to design a map that will :
    - read a parameterised file from a pre-defined directory and load the data into a pre-defined table.
    I want to be able a pass the file name ( eg. customers_060309.dat ) to the executing process .
    The problem I am having is in connection with figuring out how to parameterised physical file names ( eg. customers_010109.dat)
    which are held under source file modules .
    regards
    azaman

    Hi
    There are a couple of posts here you will find useful for some of this;
    http://blogs.oracle.com/warehousebuilder/2007/07/process_flow_execute_a_map_for_all_files_in_a_directory.html
    http://blogs.oracle.com/warehousebuilder/2007/07/process_flow_execute_a_map_for.html
    Cheers
    David

  • Currency checks during file load process

    Hello All,
    I am uploading CSV file using BSP I have problem with currency , What I am doing is each line from the file is split into a corresponding variable. For example: variable a contains '12,000' if a comma exists as in this example the variable a will contain '12' and not '12000' the additional '000' will then be moved to the next variable making the data corrupt.
    Any body can help me.
    Thanks,
    Regards,
    Venkat

    Hi Venkat,
    This is a problem of having the comma ',' as both column separator AND decimal separator.
    What kind of FM do you use to upload the data ?
    The best way would be to either change the column separator (using the TAB is usually efficient) or change the decimal separator (beware of regional properties).
    Best regards,
    Guillaume

  • File Load Frequency with Web Apps

              I have noticed the following behavior with WebLogic 6SP2 on windows:
              Reload files (such as jsp or html) if the file has been modified would not work
              for web applications except the default application.
              I tried both without specifying any in the web.xml and specifying explicitly (weblogic.jsp.pageCheckSeconds).
              Both have no effect on the web applications.
              Is this a known bug or something i am missing. Any suggestions are appreciated.
              Sam
              

    this is a known issue in 6.0
              Already fixed in 6.1 (in beta now)
              Sam He wrote:
              > I have noticed the following behavior with WebLogic 6SP2 on windows:
              >
              > Reload files (such as jsp or html) if the file has been modified would not work
              > for web applications except the default application.
              >
              > I tried both without specifying any in the web.xml and specifying explicitly (weblogic.jsp.pageCheckSeconds).
              > Both have no effect on the web applications.
              >
              > Is this a known bug or something i am missing. Any suggestions are appreciated.
              >
              > Sam
              

  • How to check progress of loaded content with Flash Remoting?

    Is there a way to monitor the loading progress (percent progress bar  style) when using Flex/Flash Remoting?
    Thanks!
    Enrique.

    Hi,
    Use 2 FileStream objects in async mode (openAsync). One to
    read and another to write. When you read in async mode, you get
    progress events. When they fire, you can read bytesAvailable
    amounts of data and write that to the output filestream.
    The output filestream can listen for output_progress events
    to ensure that new data can be written to it or not.

  • Can I load AS3 swf in AS2 file

    I have downloaded a xmlphotoalbum (www.xmlphotoalbum.com) which is in AS3 and uses lots of external classes and functions,
    I am trying to load it withing a AS2 movie but it's not running and it is not giving me any errors.
    how can I make this run?
    would you please download the xmlphotoalbum and try it?
    I am not using an AS3 file to load the xmlphotoalbum because I don't know how to handel AS3 and load external swf files and play then and then unload them.
    I have tried using the get ulr and addchild() fucntions. but since I am not experienced it AS3 it's bit confusing for me and also I dont know how to control the playback of the loaded swf files.
    I am doing all this for a CD presentation, not a a web site.

    Hi there
    You are probably wanting help with Flash.
    Although this forum says "FlashHelp", what it is for is an output type from a product called RoboHelp.
    Click here to visit the Flash community
    Cheers... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • SQL*Loader problem with direct path load

    Hi all,
    Its on Oracle 9.2
    I have a sqlldr control file which has couple of columns like,
    my_column_1 ,
    my_column_2 "decode(:my_column_1,'ONE','AAA','TWO','BBB', :my_column_1)"
    The table I am loading to is in user X and I am running the load from
    user Y. Everything works fine with conventional path load (not direct
    path) as grants are made for the table to user Y.
    When I load the data with same control file with direct path, I get an
    error ,
    01031 - insufficient privileges
    Is this anything to do with the syntex I have used in the control file
    or its a privilege issue. If its a privilege issue which privilege is
    that ?
    I did following tests,
    1) Load is run with conventional path load, from user Y and the decode
    statement is in control file - Load works
    2) Load is run with direct path load, from user Y and decode statement
    is in control file - Load fails with above mentioned error
    3) Load is run with direct path load, from user Y and decode IS REMOVED
    from the control file - Load works (!!!)
    What can be the conclusion? Way out ?
    Thanks and Regards

    You need to grant
    grant lock any table to userY;
    For more information see MetaLink Note 1082550.6

  • Loading images with file:// on Linux and Windows

    Hi,
    i've found (maybe) a bug. In my application i load some files from the temp dir. In Linux from /tmp, in Windows from C:\Temp.
    If i use
    file://<TempDir><file>(results in)
    file:///tmp/myfile
    and
    file://C:\Temp\myfileit works in Linux but not in Windows.
    If i use
    file:/<TempDir><file>(results in)
    file://tmp/myfile
    and
    file:/C:\Temp\myfileit works in Windows but not in Linux..
    Is there a "clean" solution without manually check which operating system is used (e.g. some config to set)?
    Thanks in advance
    Edited by: toxiccrack on Sep 25, 2009 1:41 AM

    Thank you Tunde for looking at my issues!
    The file size is not an issue here. We tested with empty files or files with smaller than 1KB sizes. They all showed problem. The frequency of file transfer shouldn't be a problem either. Through some user interaction on front panel, a couple of files will be transferred. That's basically how often the file transfer occurs.
    Interestingly enough, I replaced the copy.vi with a subvi I created using DOS command with System Exec.vi and the issue of copying files went away. My co-worker tested on both XP machine and Windows 7 machine. The DOS command worked fine thru Lavview's System Exec.vi. I think I can take that as a work-around if we can't figured out why copy.vi wouldn't work. Still, it would be nice to know why it doesn't work.
    Now I'm still facing some issues with the usage of Check If File or Folder exist.vi. Sometimes it can detect the existing files and sometimes it doesn't.
    Thanks very much! 

  • How to check the file size before loading it to the context

    Hello,
    I have an application to upload a file and write it to the server using the FileUpload UI and IWDResource Interface.
    I would like to limit the size of the file the user is uploading to, say, 2MB.
    The problem is that the current API doesn't allow me to check the file size before I store it in IWDResource. The API available for IWDResource:
    IWDResource resource = ...
    InputStream stream = resource.read(false);
    size = stream.available();
    Is working on the file only AFTER storing it in the context and the server's memory. This way, if a user decides to upload 1GB file for example, he can easily crash the server.
    I am already familiar with <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71">this</a> arcticle but it doesn't answer this question as well, all it does is calculating the file size only after storing it in the context.
    Any ideas...?
    Roy

    Hi Ram,
    Have you activated your Objects ?
    You need to activate your objects in order to see them in RWB.
    Thanks & Regards,
    Varun Joshi

  • Simple file loader with cffile

    Hello;
    I'm trying to make a basic file loader for my web site. I've written the file upload, and it works. I'll attach that code. I was wondering if someone could help me over this small hurdle I need to get past... let me explain.
    I have an admin section in my web site. This file loader is to add new thumbnail images to a db record and show it on the front end. There is an option to either edit and existing record, or add a new record.
    When you get to the editor, I'm putting in a link for a pop up window that has this file loader in it. What I want to do it after you load this file, I need it to be able to close the window and add it to the editor section so the file name can be loaded into the database.
    Is this possible and kind of simple? I realize nothing is too simple doing this kind of programming, I'm just trying to find a decent solution that works. Maybe there is a tutorial out there for this kind of thing? Or maybe someone can help me with a couple lines of code so I can take it from there?
    This is my file loader:
    <cfset UploadFolder="c:\Inetpub\wwwroot\website\img\babies">
    <cfif IsDefined("Form.UploadFile") AND Form.UploadFile NEQ "">
    <cffile
         action="upload"
            filefield="UploadFile"
            destination="#UploadFolder#"
            nameconflict="overwrite"
            >
    File uploaded successfully!
        <br />
        Uploaded file: <cfoutput>#cffile.ClientFile#</cfoutput>
    <cfelse>
    Select a file first!       
    </cfif>
    <form name="UploadForm" method="post" enctype="multipart/form-data" action="">
    <input type="file" name="UploadFile">
        <input type="submit"  name="submit" value="Upload"/>
    </form>
    I can also post the db code for the page I'm loading it into if need be. I would have to refresh the page I believe to get the info from the pop up to the parent window that spawned it. I have a script for that:
    <a href="javascript:opener.top.location=('/test/edit-record.cfm');" onclick= "javascript:window.close();">close window</a>
    can anyone help me make this work properly? OR point me in a direction of a tutorial for a simple file loader of this type?
    thank you.

    I was wondering if Ajax would be a good solution. Can you tell me this
    ? I have a file loader I use all the time, but on this server, it's not working properly. Can you look at my code and possibly tell me why? I
    know this is a lot of code I'm pasting, but it is pretty strait forward. It doesn't thrown an error, it just doesn't load the file
    at all.
    I would rather use this, I have it all written:
    <!--- form submitted --->
    <!--- set file uploading vars --->
    <cfparam name="fileuploaded" type="boolean" default="false">
    <cfparam name="uploadedfile" default="">
    <cfset pathToFile = "c:\Inetpub\wwwroot\website\img\babies">
    <!--- --->
    <cfif len(trim(form.MYFile))>
    <!--- if a file has been selected --->
    <!--- try uploading new file --->
    <cftry>
    <cffile Action="upload" filefield="MYFile" accept="image/gif,
    image/jpg, image/jpeg, image/pjpeg"
    destination="#pathToFile#" nameconflict="MAKEUNIQUE">
    <cfset fileuploaded = true>
    <cfset uploadedfile = cffile.serverfile>
    <cfcatch type="any">
    <!--- if upload did not suceed, reset file uploading vars --->
    <cfset fileuploaded = false>
    <cfset uploadedfile = "">
    <!--- this can be further enhanced by setting some var to hold error
    message and return it to user --->
    </cfcatch>
    </cftry>
    </cfif>
    <cfif form.id gt 0><!--- we are updating an existing record --->
    <!--- if new file upload was successful and the feature has an image
    associated with it - delete old image --->
    <cfif fileuploaded is true AND len(trim(form.oldimage))>
    <cfif FileExists(pathToFile & form.oldimage)>
    <cffile action="delete" file="#pathToFile & form.oldimage#">
    </cfif>
    </cfif>
    <cfquery datasource="#APPLICATION.dataSource#">
    UPDATE baby_port
    SET
    baby_port.dob=<cfqueryparam cfsqltype="CF_SQL_DATE" value="#form.edit1#">,
    baby_port.Fname=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.Name#">,
    baby_port.Lname=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.Lname#">,
    <cfif fileuploaded is true>
    baby_port.MYFile=<cfqueryparam cfsqltype="cf_sql_varchar" value="#uploadedfile#">,
    </cfif>
    baby_port.Body=<cfqueryparam cfsqltype="cf_sql_longvarchar" value="#form.PDSeditor#">,
    baby_port.weight=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.weight#">,
    baby_port.TimeB=<cfqueryparam cfsqltype="CF_SQL_TIME" value="#form.tob#">
    WHERE ID = <cfqueryparam value="#form.ID#" cfsqlType="CF_SQL_INTEGER">
    </cfquery>
    <cfelse><!--- we are inserting a new record --->
    <cfquery datasource="#APPLICATION.dataSource#">
    INSERT INTO baby_port
    (dob, Fname, Lname, MYFile, Body, weight, TimeB)
    VALUES
    (<cfqueryparam cfsqltype="CF_SQL_DATE" value="#form.edit1#">,
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.Name#">,
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.Lname#">,
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#uploadedfile#" null="#NOT fileuploaded#">,
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#form.PDSeditor#">,
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.weight#">,
    <cfqueryparam cfsqltype="CF_SQL_TIME" value="#form.tob#">)
    </cfquery>
    </cfif>
    this is the 2 fields on the form that is submitting the file:
    <input type="hidden" name="oldimage" value="#MYFile#">
    <input name="MYFile" type="file" id="MYFile">
    I can make more available if you need it, I didn't want to unload a ton of code on you.This is a stand alone server running coldfusion 8.1 standard if that makes a difference, it is not a shared environment. I have this code working on shared environments.

  • Incremental file load with agent scheduler

    Hello.
    I have a problem with agent scheduler. At first Ill describe what I do:
    I wanna load data from files named xx_20100101, xx_20100102, xx_20100103, and so on..
    - I created interface which loads data into oracle table.
    - File Data store (resource name) is called #file_name. #file_name is Variable computed from metadata table.
    - This metadata table contains data about files and statuses. E.g. columns (File name,File date, Status) data (xx_20100101,20100101,READY).
    - I created Procedure which sets Status from READY to DONE after successfull load from every file into table.
    - All these steps are in Package. So when I run this package (with steps: Declare variable -> run Interface -> Run package -> Refresh variable).
    - Variable is computed as record with min(File Date) and Status = 'READY'
    After execution of package everything looks ok.
    But when I execute Package via agent scheduler only step with Interface is correctly runned. Packege which changes status of file load does no update and variable is not refreshed. So that next run of Package computes with sam data as first run.
    Where can be a problem?
    Thanks.

    Always use the #<PROJECTCODE>.<VARIABLENAME> syntax.
    Where you want to use the variable in the file name it is best practice to run each iteration of the file load in a separate session. You should take the approach to invoke a scenario with the variable passed in as a parameter for each file to be processed.
    Inside the "child" scenario you should declare the variable (making sure it is a non-persistent type) before you execute the load.
    If you run the scenario synchronously you won't have to change the KMs to make them run in parallel by modifying the temporary table names - conversely, if you change the KMs to use unique table names for the temporary tables (C$, I$) then you will be able to run the scenarios asynchronously and in parallel.

  • How load swf file (flash 8) with adobe captivate 3 without enter the HTML?

    How load swf file (flash 8) with adobe captivate 3 without enter the HTML?

    Hi SaSQuaCh69247,
    Issue 1 :- Select the SWF file in library, right click, and
    select update.
    Issue 2 :- Actually it could be valid for Issue 1 also. It
    seems like SWF file you are trying to import, does some action
    like, importing another swf or connecting to server on the first
    frame itself. Captivate will try to play the first frame of SWF
    when you import them. Try creating a keyframe with the stop action
    as the first frame in your SWF, and see if you still have the
    issue.
    Issue 3 :- The approach I am mentioning over here is
    generally the last approach which I will take in such scenerios,
    but since you have already experimented a little, so try this.
    Go to C:\Documents and Settings\<user name>\Application
    Data\Adobe\Adobe Captivate
    Rename captivate_v20.dat as captivate_v20_org.dat.
    Restart Captivate Application.
    thanks

  • .DNG files load terribly, terribly slow with the Adobe Codec on Windows (8)

    It's not my hardware or rig, as CR2s loaded instantly and I'm on an SSD, and the DNGs also load immediately with adobe software.
    Is there anything I can do about this? I don't want to have to load up lightroom just to browse through my DNGs.

    You could do a search for another codec.  Or you can just work on your original raw files.  Do you have a compelling reason to convert to DNG?

  • [svn:osmf:] 15114: Don't check policy file when loading SWFs.

    Revision: 15114
    Revision: 15114
    Author:   [email protected]
    Date:     2010-03-29 12:24:58 -0700 (Mon, 29 Mar 2010)
    Log Message:
    Don't check policy file when loading SWFs.  Don't import local SWFs into current security domain.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/ImageLoader.as
        osmf/trunk/framework/OSMF/org/osmf/elements/SWFLoader.as
        osmf/trunk/framework/OSMF/org/osmf/elements/loaderClasses/LoaderUtils.as

    If you managed to get to the point where the applet container is created (the "gray square"), but the form never appears then you can assume one or more of the following has occurred:
    1. The JRE crashed after startup. Many times, but not always, if such a crash occurs it will leave a JRE dump file on the desktop. Its content may help to identify the cause.
    2. The Forms runtime crashed at startup. Many times, but not always, a Forms dump file will be created on the server. Its content may help to identify the cause.
    3. The Forms runtime was unable to start at all. This can occur on unix systems when/if there is a resource or permissions issue. One of the more common causes is if the file descriptor (nofiles) value is set too low.
    4. The applet is actually running, but has attempted to display a dialog box and is awaiting your acknowledgement, but the box was wrongfully sent to the background behind the browser. A similar issue was reported in one of the JRE 1.6.0_xx series, however I don't recall which one. Uninstall your current version and install the latest which is 1.6.0_27
    There are other possibilities, but these are most common.
    I would recommend the following:
    1. Uninstall any JRE older than 1.6.0_27. Reboot. Install 1.6.0_27
    2. Set networkRetries=5 in formsweb.cfg
    3. Set FORMS_TIMEOUT to 15 (default). Setting to a high value as you have is not recommended and is rarely necessary.
    4. Verify that the test form works. For example:
    http://machine:port/forms/frmservlet?form=test
    5. It appears that you are trying to use WU_TEST_106.fmx. Instead, download an updated version of this file (the name has also changed)
    http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/196249.zip
    6. Ensure that you have compiled webutil.pll into .plx. Do not use an old version of this file. The installation will include one. If not, check for it in an installation that also includes the Builders.

Maybe you are looking for