• RELEVANCY SCORE 4.05

    DB:4.05:Filereferencelist File Order 3k




    I've successfully used the FileReferenceList to upload
    multiple files, however, when the files are selected locally, they
    are uploaded in a seemingly arbitrary (but consistent) order,
    rather than alpha-numerically by file name. Performing sortOn on
    the fieldName "name" on the FileReferenceList array works
    (Array.DESCENDING reverses the original file order), but the new
    sort is still not alpha-numeric by file name, as if the actual file
    name has extra information in it.

    The files I'm attempting to sort all are named like:
    lg400.jpg
    lg401.jpg
    lg402.jpg

    but the array order might be something like:
    lg401.jpg
    lg400.jpg
    lg402.jpg

    It seems impossible to get the files to upload in the same
    alpha-numric order they are in locally. This is on a Mac 10.4.

    Any thoughts?

    Thanks

    DB:4.05:Filereferencelist File Order 3k

    Anybody else have any ideas? I tried this to and hadn't
    noticed that DESCENDING will change the crazy order.

    I too am on Mac 10.4. I'm using CS3 to publish for
    AS2.

  • RELEVANCY SCORE 3.66

    DB:3.66:File Upload Related md




    i have seen that while uploading from flex,the fileList array
    of FileReferenceList populates the user selected file at a random
    order when user selects file as discrit selection and continious
    when user selects file sequentally. Is there any way to populate
    the fileList array as the order in which user selects the file?
    i am tiered finding a way out, can enybody help.
    Attach Code

    // Called to add file(s) for upload
    public function addFiles():void {
    _refAddFiles = new FileReferenceList();
    new ArrayCollection(_refAddFiles.fileList).removeAll();
    _refAddFiles.addEventListener(Event.SELECT, onSelectFile);
    var imageTypes:FileFilter = new
    FileFilter(imgformats,imgTypes);
    var videoTypes:FileFilter = new FileFilter(videoformats,
    vidTypes);
    var allTypes:FileFilter = new FileFilter('Images and Photos
    (*)', imgTypes+vidTypes);
    var fType:Array = new Array(allTypes,imageTypes,videoTypes);
    _refAddFiles.browse(fType);

    }

    // Called when a file is selected
    private function onSelectFile(event:Event):void {

    _uploadFileList = _refAddFiles.fileList.reverse(); // this
    is the point facing problem.......
    //Alert.show("fileList "+
    ObjectUtil.toString(_uploadFileList));
    if(getTotalFileSize())
    {
    startUpload();
    }

    }

    DB:3.66:File Upload Related md

    i have seen that while uploading from flex,the fileList array
    of FileReferenceList populates the user selected file at a random
    order when user selects file as discrit selection and continious
    when user selects file sequentally. Is there any way to populate
    the fileList array as the order in which user selects the file?
    i am tiered finding a way out, can enybody help.
    Attach Code

    // Called to add file(s) for upload
    public function addFiles():void {
    _refAddFiles = new FileReferenceList();
    new ArrayCollection(_refAddFiles.fileList).removeAll();
    _refAddFiles.addEventListener(Event.SELECT, onSelectFile);
    var imageTypes:FileFilter = new
    FileFilter(imgformats,imgTypes);
    var videoTypes:FileFilter = new FileFilter(videoformats,
    vidTypes);
    var allTypes:FileFilter = new FileFilter('Images and Photos
    (*)', imgTypes+vidTypes);
    var fType:Array = new Array(allTypes,imageTypes,videoTypes);
    _refAddFiles.browse(fType);

    }

    // Called when a file is selected
    private function onSelectFile(event:Event):void {

    _uploadFileList = _refAddFiles.fileList.reverse(); // this
    is the point facing problem.......
    //Alert.show("fileList "+
    ObjectUtil.toString(_uploadFileList));
    if(getTotalFileSize())
    {
    startUpload();
    }

    }

  • RELEVANCY SCORE 3.36

    DB:3.36:Why Would "Mx.Events.Closeevent" Lead To "Type Was Not Found"? zz





    I have whate seems to me like a very very simple piece of ActionScript, destined for a swf running in a web page. Eventually the idea is to build a file uploader that chunks up files and passes them on to a WCF service. But I've fallen at a far earlier hurdle :-(

    import flash.net.*;

    import mx.controls.Alert;

    import mx.events.CloseEvent;

    Alert.show("Upload files from local file system...", "Permissions Required", Alert.OK | Alert.CANCEL, null, permissionGranted);

    function permissionGranted(evt:CloseEvent):void {

    if (evt.detail==Alert.OK) {

    var imageFilter : FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");

    var uploadFiles : FileReferenceList = new FileReferenceList();

    uploadFiles.browse(new Array(imageFilter));

    testLabel.text = uploadFiles.toString();

    }

    }

    This gives a compile error for the line "function handleAlert(evt:CloseEvent):void {" of "1046: Type was not found or was not a compile-time constant: CloseEvent". The documentation http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/events/CloseEvent.ht ml suggests it is OK, so what is wrong? Any guesses?

    DB:3.36:Why Would "Mx.Events.Closeevent" Lead To "Type Was Not Found"? zz


    you would be using the flex program (instead of flash pro) to publish your swf.

  • RELEVANCY SCORE 3.32

    DB:3.32:Upload Component, Pass Extra Variable a7



    Hello all.

    I have been trying to get an upload component to work for some time now, but have been having a few troubles getting one to do what i need. Recently i found a component that does pretty much everything i want bar one thing, pass an extra variable to the PHP script so i can name the files something unique.

    My Flex code is -

    ?xml version="1.0" encoding="utf-8"?s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init()" width="600" height="300" fx:Script ![CDATA[ private var urlRequest:URLRequest; private var fileReferenceList:FileReferenceList; private var serverSideScript:String = "http://www.davidtest.webcastglobal.com/upload/upload.php"; [Bindable] public var ID:String; private function init():void { urlRequest = new URLRequest(serverSideScript); fileReferenceList = new FileReferenceList(); fileReferenceList.addEventListener(Event.SELECT, fileSelectedHandler); } private function uploadFile():void { fileReferenceList.browse(); } private function fileSelectedHandler(event:Event):void { var fileReference:FileReference; var fileReferenceList:FileReferenceList = FileReferenceList(event.target); var fileList:Array = fileReferenceList.fileList; // get the first file that the user chose fileReference = FileReference(fileList[0]); // upload the file to the server side script fileReference.addEventListener(Event.COMPLETE, uploadCompleteHandler); fileReference.upload(urlRequest); // update the status text statusText.text = "Uploading..."; } private function uploadCompleteHandler(event:Event):void { statusText.text = "File Uploaded: " + event.target.name; } ]] /fx:Script s:BorderContainer width="300" height="96" horizontalCenter="0" verticalCenter="0" mx:Label text="Upload Your CV" fontWeight="bold" horizontalCenter="0" top="10"/ mx:Label text="Choose a file..." id="statusText" horizontalCenter="0" top="35"/ mx:Button click="uploadFile();" label="Upload File" horizontalCenter="0" bottom="10"/ /s:BorderContainer /s:Application

    While my PHP code it

    ?php$tempFile = $_FILES['Filedata']['tmp_name'];$fileName = $_FILES['Filedata']['name'];$fileSize = $_FILES['Filedata']['size'];$id = $_POST["id"]$newName = '$id'.'.doc';move_uploaded_file($tempFile, "./" . $newName);?

    What i am trying to do is, when the user clicks the "Upload File" button on the flex app, after they pick a file, it currently uploads that file using the name of the given file. But what i want to do, is to pass the variable "ID" to the PHP and use that as the file name instead.

    Im a little bit stumped as to how to do this ? I dont know where to include the code to pass "ID", normally i deal with HTTPSservice's where you declare such things in the function.

    Any help would be great.!

    DB:3.32:Upload Component, Pass Extra Variable a7


    You should be able to add a parameter using URLVariables, so change your init function to something like:

    private function init():void { urlRequest = new URLRequest(serverSideScript); var variables:URLVariables = new URLVariables(); variables.myFileName = "flexponential"; urlRequest.data = variables; fileReferenceList = new FileReferenceList(); fileReferenceList.addEventListener(Event.SELECT, fileSelectedHandler); }

    And then in your PHP file you should be able to access that data via the post variable.

    $myFileName = $_POST["myFileName"];

  • RELEVANCY SCORE 3.25

    DB:3.25:Rewrite A Xml File 1z


    How can we rewrite a given XML file in order to add a new node in the content?

    DB:3.25:Rewrite A Xml File 1z

    Dom is only good for some tasks. You may want a SAX parser. Check this out:
    http://today.java.net/pub/a/today/2006/07/20/introduction-to-stax.html

  • RELEVANCY SCORE 3.11

    DB:3.11:Reading File Line By Line In Reverse Order 3x


    hi,

    can anybody tell me that how can I read a txt or csv file line by line in reverse order?

    thanks in advance.

  • RELEVANCY SCORE 2.99

    DB:2.99:Comm: File 1 Is Not In Sorted Order? d7



    For example:
    == Tidying install...
    - Removing doc files...
    - Purging unwanted files...
    - Compressing man and info pages...
    - Removing libtool files...
    - Removing empty directories...
    == Creating package...
    - Generating .PKGINFO file...
    - Adding install file...
    - Compressing package...
    == Leaving fakeroot environment.
    == Finished making: linux-BFS 3.2.5-100 (Mon Feb 6 21:11:21 PST 2012)
    comm: file 1 is not in sorted order
    comm: file 2 is not in sorted order
    comm: file 1 is not in sorted order
    comm: file 2 is not in sorted order
    == ERROR: An unknown error has occurred. Exiting...
    == Removing installed dependencies...

    DB:2.99:Comm: File 1 Is Not In Sorted Order? d7


    Hmm... correcto! too late of a day and over-looked the fact... but it works if I upgrade manually... my deploy scripts see the output failed so it doesnt auto-deploy... I guess thats why I panicked. Manual pushing it is... thanks for bopping me upside the head _

  • RELEVANCY SCORE 2.97

    DB:2.97:Cannot Sign Into Acrobat Reader In Order To Export A File zp



    cannot sign into acrobat reader in order to export a file

    DB:2.97:Cannot Sign Into Acrobat Reader In Order To Export A File zp


    I understand it is free that is why I chose to pay for Adobe ExportPDF Annual (Other,English) on March 15 order number AD002275956. Thanking you in advance for your help?

  • RELEVANCY SCORE 2.95

    DB:2.95:Incorrect Deploy Order Of Application Modules xd



    The deploy order of ejb modules is incorrect. They are deployed in the reverse order that they are listed in application.xml file.

    DB:2.95:Incorrect Deploy Order Of Application Modules xd


    The spec doesn't mandate an order. Unless you canpoint out otherwise ;-)If anything, it should discover the order usingejb-ref to obtain a suitable order and deploy inone pass.JBoss currently deploys in two passes.The first pass is container creationThe second pass is container linking and startRegards,Adrian

  • RELEVANCY SCORE 2.94

    DB:2.94:File Name Sort Order. ds


    Article ID: 319827 shows how to change file sort order in XP. How is this done in Windows 7?

    DB:2.94:File Name Sort Order. ds

    Does this link help:
    http://www.sevenforums.com/tutorials/3952-file-folder-arrangement-group-sort-stack.html

    Hope this helps, Gerry Cornell

  • RELEVANCY SCORE 2.91

    DB:2.91:Change Page Order Of File 9x


    How do you change the order of pages in a file?

    DB:2.91:Change Page Order Of File 9x

    markccareygmail,Please see the below link to move/ replace pages using Acrobat...http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7ec9.w .html#WS58a04a822e3e50102bd615109794195ff-7ec3.w

  • RELEVANCY SCORE 2.91

    DB:2.91:Sales Order Edi850 Xls Format fz



    we received a txt file from customer, then convert to EDI 850 sales order in our SAP system, can anyone provide me the link of xls template for sales order? thanks

    DB:2.91:Sales Order Edi850 Xls Format fz


    we received a txt file from customer, then convert to EDI 850 sales order in our SAP system, can anyone provide me the link of xls template for sales order? thanks

  • RELEVANCY SCORE 2.91

    DB:2.91:Issues With Drag And Drop/File Browse Functionality In Air File Uploader cp



    Use Case: User can drag and drop a file into a datagrid or browse to the file and add it to the datagrid before uploading files to the server.

    The file browse functionality works fine. I put all the selected files in to an array and display them in a datagrid.

    Issue: I'm need to allow the user to also drag and drop a file into the datagrid from the file desktop and add that file to the upload que/datagrid.

    // Called to add file(s) for upload
    private function addFiles():void {
    _refAddFiles = new FileReferenceList();
    _refAddFiles.addEventListener(Event.SELECT, onSelectFile);
    _refAddFiles.browse();
    }

    // Called when a file is selected via file browser
    private function onSelectFile(event:Event):void {
    var arrFoundList:Array = new Array();
    // Get list of files from fileList, make list of files already on upload list
    for (var i:Number = 0; i _arrUploadFiles.length; i++) {
    for (var j:Number = 0; j _refAddFiles.fileList.length; j++) {
    if (_arrUploadFiles[i].name == _refAddFiles.fileList[j].name) {
    arrFoundList.push(_refAddFiles.fileList[j].name);
    _refAddFiles.fileList.splice(j, 1);
    j--;
    }
    }
    }
    if (_refAddFiles.fileList.length = 1) {
    for (var k:Number = 0; k _refAddFiles.fileList.length; k++) {
    _arrUploadFiles.push({
    name:_refAddFiles.fileList[k].name,
    size:formatFileSize(_refAddFiles.fileList[k].size),
    file:_refAddFiles.fileList[k]});
    }
    listFiles.dataProvider = _arrUploadFiles;
    tile.dataProvider = _arrUploadFiles;
    listFiles.selectedIndex = _arrUploadFiles.length - 1;
    }
    if (arrFoundList.length = 1) {
    Alert.show("The file(s): \n\n " + arrFoundList.join("\n ") + "\n\n...are already on the upload list. Please change the filename(s) or pick a different file.", "File(s) already on list");
    }
    updateProgBar();
    scrollFiles();
    uploadCheck();
    }

    Bad/Broken Code--------------------------- Called when user attempts to drop file into the datagrid.
    private function onDragEnter( event:NativeDragEvent ) :void
    {
    DragManager.acceptDragDrop(this);
    }

    private function onDragDrop( event:NativeDragEvent ) :void
    {
    NativeDragManager.dropAction = NativeDragActions.COPY;
    var draggedfiles:Array = event.clipboard.hasFormat(flash.desktop.ClipboardFormats.FILE_LIST_FORMAT) as Array;
    NativeDragManager.acceptDragDrop(InteractiveObject(event.currentTarget));
    for each (var f:File in draggedfiles)
    {
    //addFile( FileReference( f ) );
    _arrUploadFiles.push( f );
    }
    }

    What am I missing? Any assistance would be greatly appreciated.

    DB:2.91:Issues With Drag And Drop/File Browse Functionality In Air File Uploader cp


    You just aren't calling the right NativeDragManager functions. See http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7d83.html

  • RELEVANCY SCORE 2.79

    DB:2.79:Filereferencelist[I]. Load(); How To? k8


    So I am trying to retrieve the image ByteArray after select event fires for individual fileReferences within fileReferenceList and can't seem to get anywhere....no problem with single fileReference.If you call load() on individual postion in array nothing happens..no error but "data" property stays null.Saw a bug report post here but no resolution posted.. http://forums.adobe.com/message/2571341 ....however in the thread someone posted this:"FileReference.load() is an asynchronous function .. you need to make sure you keep a reference active so the garbage collector doesn't trash it."Can't figure out what poster meant by "keep reference active"......and on down list it mentions topic being posted as bug.Does anyone know what the deal is with this?Here's some code to demonstrate what I'm refering to:This works (fileReference sdk 3.5 and 4): private function init():void{ _file = new FileReference; _file.addEventListener(Event.SELECT, fileReference_select); _file.addEventListener(Event.COMPLETE, fileReference_complete); } private function btn_click(evt:MouseEvent):void { var arr:Array = []; arr.push(new FileFilter("Images", ".gif;*.jpeg;*.jpg;*.png")); _file.browse(arr); } private function fileReference_select(evt:Event):void { _file.load(); } private function fileReference_complete(evt:Event):void { img.source = _file.data; Alert.show(ObjectUtil.toString(_file)); }This doesn't (fileReferenceList sdk 3.5 and 4): private function init():void{ _fileRefList = new FileReferenceList; _fileRef = new FileReference; _fileRefList.addEventListener(Event.SELECT, fileReference_select); _fileRefList.addEventListener(Event.COMPLETE, fileReference_complete); } private function btn_click(evt:MouseEvent):void { var arr:Array = []; arr.push(new FileFilter("Images", ".gif;*.jpeg;*.jpg;*.png")); _fileRefList.browse(arr); } private function fileReference_select(evt:Event):void { _fileRefList.fileList[0].load(); Alert.show(ObjectUtil.toString(_fileRefList.fileList[0])); } private function fileReference_complete(evt:Event):void { img.source = _fileRefList.fileList[0].data; }

    DB:2.79:Filereferencelist[I]. Load(); How To? k8

    Found this code elsewhere in forum that I think holds the key should anyone else who is stumped get here: private function select(event:Event):void { for(var i:uint=0;ireflist.fileList.length;i++) { reflist.fileList[i].addEventListener(Event.COMPLETE,open); reflist.fileList[i].load(); } } private function open(event:Event):void { var tempFileRef:FileReference = event.target as FileReference; loader = new Loader; loader.name = event.target.name; loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadArray); loader.loadBytes(tempFileRef.data); } private function loadArray(event:Event):void { picArr.push({label:event.target.content.parent.name, data:event.target.content}); listFiles.dataProvider = picArr; }

  • RELEVANCY SCORE 2.72

    DB:2.72:Executing A File In Java a1


    What code do I need in order to execute an .exe file from my java program? Thanks

    DB:2.72:Executing A File In Java a1

    You can use

    Runtime.getRuntime().exec("something.exe");

  • RELEVANCY SCORE 2.71

    DB:2.71:The Air Filereference Is-A-Bug / Isn't-A-Bug Saga s3



    When using filereference and filereferencelist in conjunction with each all is fine with flex but the same code fails in Air because the filereference complete event doesn't fire. This problem has been raised closed and reraised as a bug(i have run out of fingers and toes so I can't give a reliable count of how many time), will it ever be resolved or is it languishing in the to hard basket ?

    the code: flex 3.2 to gumbo build 27-jul-09 no problems / AIR 1 to 1.5 doesn't work
    private var fl:FileReferenceList=new FileReferenceList();
    private var fi:FileReference = new FileReference();
    private var ImageCount: int;
    private var ImageLoop : int;

    [Bindable] private var ImageCollection: ArrayCollection = new ArrayCollection();

    private function loadImages(): void
    {
    fl.addEventListener(Event.SELECT, selectedImages);
    var imagesFilter:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png");
    fl.browse([imagesFilter]);
    }

    private function selectedImages(e:Event): void
    {
    fl.removeEventListener(Event.SELECT, selectedImages);
    ImageCollection.removeAll();
    ImageCount = fl.fileList.length;
    ImageLoop = 0;
    loopList(0);
    }

    private function loopList(value:int): void
    {
    if (value ImageCount)
    {
    fi = fl.fileList[value];
    fi.addEventListener(Event.COMPLETE,getImage); never fires
    ImageLoop = ImageLoop+1;
    fi.load();
    }
    }

    private function getImage(e:Event): void
    {
    fi.removeEventListener(Event.COMPLETE, getImage);
    if (fi.data.length 0)
    {
    var ba: ByteArray = new ByteArray();
    ba = fi.data;
    ImageCollection.addItem(ba);
    }
    loopList(ImageLoop);
    }

    DB:2.71:The Air Filereference Is-A-Bug / Isn't-A-Bug Saga s3


    bug raised

    https://bugs.adobe.com/jira/browse/SDK-22516

    hey - Adobe guys add Google Chrome and Windows 7 RC to your bug management options .. please (see I said it nicely)

    David.

  • RELEVANCY SCORE 2.69

    DB:2.69:Chinese File Names Are Broken In Flash Player 11.8.800.168 xk



    Hi everybody:

    In our web product, we use a flash plugin for legacy IE browsers (such as IE8 and older) to support better user experience to upload files. Today, after we upgraded to the latest Flash Player version 11.8.800.168, we found FileReferenceList object cannot return correct Chinese characters in "Select" event for all the files with Chinese file names. It seems the files are not correctly encoded. It happens in all the operation system, all the IE browsers, as long as the Flash Player version is the latest one. And we tested in the older version, such as 11.8.800.094, the problem didn't happen.

    We believe it may affect all the Chinese users, and we guess the Korean and Japanese users will be affected too because our languages are similar. Today is the first day for the new version, so the problem will happen in greater range in the following days after more and more users upgrade the flash player. Can anyone help us on this problem? Many appreciation for the help!

    Best regards

    Ran

    DB:2.69:Chinese File Names Are Broken In Flash Player 11.8.800.168 xk


    The Flash Player team is aware of the problem and are actively working towards a fix.

    The problem affects all Unicode and other wide-character scripts.

  • RELEVANCY SCORE 2.58

    DB:2.58:Creating Mapping For Flat Structure 8k



    Hi gurus!

    I need to create a flat file from hierarchial XML:

    Source:

    Header

    Order

    Line

    /Line

    Line

    /Line

    Line

    /Line

    /Order

    Order

    Line

    /Line

    Line

    /Line

    /Order

    /Header

    Target:

    Header /Header

    Order /Order

    Line /Line

    Line /Line

    Line /Line

    Order /Order

    Line /Line

    Line /Line

    The XI mapping is changing the order of the objects like that:

    Header /Header

    Order /Order

    Order /Order

    Line /Line

    Line /Line

    Line /Line

    Line /Line

    Line /Line

    Is there any way to keep the order as is?

    DB:2.58:Creating Mapping For Flat Structure 8k


    Malini Balasubramaniam thanks for the link.

    Is there any "conventional" way to make the mapping? Without using the external mapping?

    Edited by: LOS' on Oct 7, 2008 8:15 AM

  • RELEVANCY SCORE 2.58

    DB:2.58:Order By zx



    greetings

    I have a QVD file i need to order the fields names by ABC

    any simple way to do this???

    Thanks

    DB:2.58:Order By zx


    i need the order by on the fields not the field values

  • RELEVANCY SCORE 2.54

    DB:2.54:Tool To Build Config Based On The Sales Order File j9



    Hello

    Do you have any tools avail to build the config/diagram based on the Sales order file(Excel format)

    Regards

    Kamal

    DB:2.54:Tool To Build Config Based On The Sales Order File j9


    If your a NetApp partner you can use NetApp Synergy.

    You can input everything from the quote and export it to a Visio.

    Gotta love NetApp for that

  • RELEVANCY SCORE 2.52

    DB:2.52:How To Create A File In Adobe With Out Placing In Alphabetical Order 39



    how to create a file in adobe without placing in alphabetical order

    DB:2.52:How To Create A File In Adobe With Out Placing In Alphabetical Order 39


    Hi Connie,

    Would you mind elaborating? What Adobe product are you using? Adobe Acrobat, Reader, etc?

    And whatever product you are using, it will not create a specific order for you. You would need to do that prior to converting your document to a PDF.

    Let me know how I can assist!

    Looking forward to hearing back from you.

    Regards, Stacy

  • RELEVANCY SCORE 2.51

    DB:2.51:Ipod File Order 1j


    Is there a way to set file order of podcasts on iPod the same as on Itunes? Folders and files are in reverse date order and I cannot find anywhere to change this.

    DB:2.51:Ipod File Order 1j

    Is there a way to set file order of podcasts on iPod the same as on Itunes? Folders and files are in reverse date order and I cannot find anywhere to change this.

  • RELEVANCY SCORE 2.49

    DB:2.49:Is There A Problem With Filereference And Different Browser Plugins? zx


    Hello, Im having som trouble with a uploding app am making. First of it works great in IE 8(and7) but when i try it in Firefox og Crome it seems to not be able to upload the file complet.
    The problem seems to lie with the FileReference. Im jusing a php script in the backend, and when i try to logg it, as I said it works perfektly with IE, but when i use FF or Crome, i get to log the $_FILE, data but nothing ever makes it to the temp folder. I've checked every php and apache logg i can find, and I know there is not a problem with space, og the temp dir. So the only thing I can figure is that the FileRefernce dosent send the complete file in FF and chrom....... I've been googleing and trying to figure out this problem for a couple days now,, and Im starting to go a litle crazy ;-)
    If anybody can help me with this I would be a happy camper... sorry for my bad englis, it's not my native toung....
    -Jc

    Im pasting in the complete kode im using her :
    import fl.events.*;import flash.events.*;import flash.net.FileReference;import flash.net.FileReferenceList;
    var selectedFileArray:Array = []; /* Inneholde listenmed filnavn */var fileRefList:FileReferenceList = new FileReferenceList();
    // Event listeners ButtonBrows.addEventListener(MouseEvent.CLICK, clickBrowsForFiles);fileRefList.addEventListener(Event.SELECT, selectHandler);ButtonEmtyList.addEventListener(MouseEvent.CLICK, clickEmtyList);ButtonRemoveElement.addEventListener(MouseEvent.CLICK, clickRemoveSelectedItems);ButtonUploadFiles.addEventListener(MouseEvent.CLICK, clickUploadFiles);
    // Start DisableButtons();
    // Functions function clickBrowsForFiles(eventObj:MouseEvent):void{ fileRefList.browse();}
    function selectHandler(event:Event):void{ var files:FileReferenceList = FileReferenceList(event.target); selectedFileArray = files.fileList;
    var item:FileReference; for(var i:Number = 0; i selectedFileArray.length; i++) { item = selectedFileArray[i]; trace("name: " + item.name); this.FileList.addItem({label:item.name, data:item}); } EnableButtons(); //loadQueue(uploadQueue);// Laster Opp bildene}
    function DisableButtons(){ if(this.FileList.length==0){ ButtonUploadFiles.enabled = false; ButtonRemoveElement.enabled = false; ButtonEmtyList.enabled = false; //this.PgBar.visible = false; }}
    function EnableButtons(){ ButtonUploadFiles.enabled = true; ButtonRemoveElement.enabled = true; ButtonEmtyList.enabled = true;}
    function clickEmtyList(eventObj:MouseEvent):void{ this.FileList.removeAll(); DisableButtons();}
    function clickRemoveSelectedItems(eventObj:MouseEvent):void{ var numSelected:Number = FileList.selectedIndices.length; for (var i:Number = 0; i numSelected; i++) { FileList.removeItemAt(FileList.selectedIndices[i]); } DisableButtons();}
    function clickUploadFiles(eventObj:MouseEvent):void{ loadQueue(); //this.PgBar.visible = true;}
    function loadQueue():void{ if(FileList.length0){ Debug.text = "Start";
    var request:URLRequest = new URLRequest("/uploader.php");
    var file:FileReference = FileReference(FileList.getItemAt(0).data); file.addEventListener(Event.COMPLETE, completeHandler); file.addEventListener(ProgressEvent.PROGRESS, progressHandler); file.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); try { file.upload(request); } catch (error:Error) { Debug.text += "Unable to upload files."; } Debug.text +="Okei."; }else{ DisableButtons(); Debug.text += "Nothing to upload."; }}function completeHandler(event:Event):void{ var file:FileReference = FileReference(event.target); file.removeEventListener(Event.COMPLETE, completeHandler); file.removeEventListener(ProgressEvent.PROGRESS, progressHandler); file.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); FileList.removeItemAt(0); Debug.text +=("-- Fil lastet opp --"); //this.PgBar.value = 0; loadQueue();}function progressHandler(event:ProgressEvent):void { var file:FileReference = FileReference(event.target); //this.PgBar.minimum = 0; //this.PgBar.maximum = event.bytesTotal; //this.PgBar.value = event.bytesLoaded ; Debug.text +=("\nprogressHandler: name = " + file.name + " bytesLoaded = " + event.bytesLoaded + " bytesTotal = " + event.bytesTotal);}function ioErrorHandler(event:IOErrorEvent):void { Debug.text +=("\n\nioErrorHandler: " + event); //this.PgBar.value = 0;}

    DB:2.49:Is There A Problem With Filereference And Different Browser Plugins? zx


    using the html published by flash is the most reliable way to embed a swf so, don't change that html code.

    what's the url to your embedding html?

  • RELEVANCY SCORE 2.49

    DB:2.49:Flipchart File s8



    Is there an add on that i need to install in order to view a flipchart file?

    DB:2.49:Flipchart File s8


    And in what way is this related to Adobe Reader?

  • RELEVANCY SCORE 2.49

    DB:2.49:Convert Filereference To Bitmap px



    I have successfully captured a list of image files in a FileReferenceList, and need to convert each file to a Bitmap for processing. Here is a dump via ObjectUtil.ToString() of my files:

    (flash.net::FileReferenceList)#0
    fileList = (Array)#1
    [0] (flash.net::FileReference)#2
    creationDate = Thu Dec 31 17:00:00 GMT-0700 1903
    creator = (null)
    modificationDate = Thu Aug 12 08:08:58 GMT-0600 2004
    name = "image1.JPG"
    size = 793089
    type = (null)
    [1] (flash.net::FileReference)#3
    creationDate = Sat Jun 20 16:59:22 GMT-0600 2009
    creator = (null)
    modificationDate = Sat Jun 20 16:59:22 GMT-0600 2009
    name = "image2.png"
    size = 268971
    type = (null)

    DB:2.49:Convert Filereference To Bitmap px


    Sorry to hijack, but hey Adobe! FileReferenceList does not fire the complete event against fileList fileReferences in Air 1.5, fp 10.0.0. This has been a reported bug which has been closed, submitted, closed and closed again and again. This will likely cost us about $30,000 because you refuse to acknowledge this is a real bug. Pls fix!!!!!!!!!!!!!!!!

  • RELEVANCY SCORE 2.45

    DB:2.45:Filereferencelist Sorton Does Not Work ms


    Hi,

    I'm trying to sort my files in the FileReferenceList with
    sortOn.
    It looks like that:

    fileRefList.fileList.sortOn("name", Array.CASEINSENSITIVE);

    fileRefList is of type FileReferenceList;

    It seems the sort functions are not implemented for the
    fileReferenceList. Any workarounds?

    Thanks,
    Michael

    DB:2.45:Filereferencelist Sorton Does Not Work ms

    Hi,

    I'm trying to sort my files in the FileReferenceList with
    sortOn.
    It looks like that:

    fileRefList.fileList.sortOn("name", Array.CASEINSENSITIVE);

    fileRefList is of type FileReferenceList;

    It seems the sort functions are not implemented for the
    fileReferenceList. Any workarounds?

    Thanks,
    Michael

  • RELEVANCY SCORE 2.45

    DB:2.45:Progressbar Not Getting Updated Properly km


    I am trying to design a multiple file uploader in the
    following code

    ?xml version="1.0" encoding="utf-8"?
    mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" creationComplete="init()"
    mx:Script
    ![CDATA[
    import mx.utils.ArrayUtil;
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.events.ListEvent;
    private var _fileReferenceList:FileReferenceList;
    [Bindable]
    private var _arrUploadFiles:ArrayCollection;

    private var index:Number;
    private var prev_index:Number;
    private var flag:Number=0;
    private var buttonType:Number=0;
    private function init():void
    {
    _fileReferenceList = new FileReferenceList();
    _arrUploadFiles = new ArrayCollection();
    _fileReferenceList.addEventListener(Event.SELECT,
    selectHandler);
    dataGrid.dataProvider=_arrUploadFiles;
    trace("in init"+_arrUploadFiles);
    }

    private function selectHandler(event:Event):void
    { var arrFoundList:Array = new Array();
    for (var i:Number = 0; i _arrUploadFiles.length; i++)
    { for (var j:Number = 0; j
    _fileReferenceList.fileList.length; j++)
    { if (_arrUploadFiles
    .name == _fileReferenceList.fileList[j].name)
    {
    arrFoundList.push(_fileReferenceList.fileList[j].name);
    _fileReferenceList.fileList.splice(j, 1);
    j--;
    }
    }
    }
    var fileList:Array = _fileReferenceList.fileList;
    var file:FileReference;
    if (fileList.length = 1)
    {
    for (var k:Number = 0; k fileList.length; k++)
    { file = FileReference(fileList[k]);

    _arrUploadFiles.addItem({name:file.name, size:file.size,
    object:file});
    }
    trace(_arrUploadFiles);
    }
    if (arrFoundList.length = 1)
    {
    Alert.show("The file(s): \n\n " +
    arrFoundList.join("\n ") + "\n\n...are already on the upload
    list. Please change the filename(s) or pick a different file.",
    "File(s) already on list");
    }

    }

    private function browse(event:MouseEvent):void
    {
    //_arrUploadFiles.removeAll();
    //_arrUploadFiles.refresh();
    var imagesFilter:FileFilter = new FileFilter("Images",
    "*.jpg;*.gif;*.png");
    _fileReferenceList.browse([imagesFilter]);
    }

    private function upload(event:MouseEvent):void
    {
    //var _fileList:Array = _fileReferenceList.fileList;

    for (var i:Number=0; i_arrUploadFiles.length; i++)
    {
    var urlRequest:URLRequest = new URLRequest("
    http://localhost/FileUpload-debug/uploadFile.php");
    var file:FileReference = _arrUploadFiles.object;
    file.upload(urlRequest,'file');
    file.addEventListener(Event.COMPLETE,
    uploadCompleteHandler);
    }
    }

    private function clearAll(event:Event):void
    { trace("in clear 1"+_arrUploadFiles);
    _arrUploadFiles.removeAll();
    _arrUploadFiles.refresh();
    trace("in clear"+_arrUploadFiles);
    init();
    trace("again in clear"+_arrUploadFiles);

    }

    private function uploadCompleteHandler(event:Event):void
    {

    }

    public function
    buttonClickHandler(event:MouseEvent,type:Number):void
    { buttonType=type;
    flag=1;
    }

    public function upClickHandler():void
    {
    //Alert.show("button on index"+index+"was clicked");
    var urlRequest:URLRequest = new URLRequest("
    http://localhost/FileUpload-debug/uploadFile.php");
    var file:FileReference = _arrUploadFiles[index].object;
    file.upload(urlRequest,'file');
    file.addEventListener(Event.COMPLETE,
    uploadCompleteHandler);
    flag=0;
    }

    public function removeClickHandler():void
    {
    _arrUploadFiles.removeItemAt(index);

    }

    public function handleItemClick(event:ListEvent):void
    {
    if(flag buttonType==0)
    {
    index=event.rowIndex;
    upClickHandler();
    }
    if(flag buttonType==1)
    {
    index=event.rowIndex;
    removeClickHandler();
    }
    }
    ]]
    /mx:Script
    mx:VBox
    mx:DataGrid itemClick="handleItemClick(event);"
    id="dataGrid" width="500"
    mx:columns
    mx:DataGridColumn headerText="File Name"
    dataField="name" width="100"/
    mx:DataGridColumn headerText="Size" dataField="size"
    width="30"/
    mx:DataGridColumn id="Progress" headerText="Progress"
    dataField="object" width="200"
    mx:itemRenderer
    mx:Component

    mx:HBox verticalAlign="middle"
    mx:ProgressBar id="progress" label="" height="6"
    source="{data.object}"/
    /mx:HBox
    /mx:Component
    /mx:itemRenderer
    /mx:DataGridColumn
    mx:DataGridColumn headerText="Controls"
    dataField="object" width="150"
    mx:itemRenderer
    mx:Component
    mx:HBox verticalAlign="middle"
    mx:Button
    click="outerDocument.buttonClickHandler(event,0)" toolTip="Upload
    file(s)" icon="@Embed('assets/application_get.png')"
    width="26"/
    mx:Button
    click="outerDocument.buttonClickHandler(event,1)" toolTip="Remove
    file(s)" icon="@Embed('assets/delete.png')" width="26"/
    /mx:HBox
    /mx:Component
    /mx:itemRenderer
    /mx:DataGridColumn

    /mx:columns
    /mx:DataGrid
    mx:HBox width="100%"
    mx:Button label="Browse" click="browse(event)"/
    mx:Button label="Clear All" click="clearAll(event)"/

    mx:Spacer width="100%"/
    mx:Button label="Upload" click="upload(event)"/
    /mx:HBox
    /mx:VBox

    /mx:Application

    Now the code works perfetly fine and file upload progress is
    shown properly for the first time, but when clear all button is
    used and i choose another set of files for uploading, the progress
    bars rendered in the datagrid row of that file show complete
    progress already at all those row positions where in previous
    operation i had uploaded my files

    This is like if i enter 3 files in the list and upload only
    first 2 and then press clear list, in next operation when I choose
    another 3-4 file, first two progress bars and then everyfourth and
    fifth progress bar shows full progress already before uploading
    those files.

    Please tell me if there's some bug or its an error in coding

    DB:2.45:Progressbar Not Getting Updated Properly km

    Also, the "Attach Code" buton is now available on the "Reply"
    screen. Use it to post code.

    Tracy

  • RELEVANCY SCORE 2.41

    DB:2.41:Alv Report 7d



    How to download ALV Report to Excel File in Sorted Order?

    DB:2.41:Alv Report 7d


    Sort the fields using the code as below and then if u are using standard ALV display then u have an icon "SPREAD SHEET" for downloading ALV into an excel sheet

    DATA: WA_SORT TYPE SLIS_SORTINFO_ALV,
    IT_SORT TYPE SLIS_T_SORTINFO_ALV, "SORT ITAB

    FORM SORT_LIST.

    WA_SORT-FIELDNAME = 'VBELN'.
    WA_SORT-TABNAME = 'IT_VBAK'.
    WA_SORT-SPOS = 1.
    WA_SORT-UP = 'X'.
    WA_SORT-SUBTOT = 'X'.
    APPEND WA_SORT TO IT_SORT.
    CLEAR WA_SORT.

    WA_SORT-FIELDNAME = 'NETWR'.
    WA_SORT-TABNAME = 'IT_VBAK'.
    WA_SORT-UP = 'X'.
    WA_SORT-SPOS = 2.
    WA_SORT-SUBTOT = 'X'.
    APPEND WA_SORT TO IT_SORT.
    CLEAR WA_SORT.

    ENDFORM. "SORT_LIST

  • RELEVANCY SCORE 2.35

    DB:2.35:Po Xml File ss



    I have a Purchase Order XML File. I need to create the Sales Order using that XML File. How can i achieve this ?

  • RELEVANCY SCORE 2.33

    DB:2.33:Filereference - How Purge Memory df


    Hi,I use sdk 4.5 and I need to generate hundreds thumbnails on websiteNow I do1. use FileReferenceList.browse() to get Array files2. create new ArrayCollection with FileReference (from filereferenceList) - in this array I store all FileReference Objects (it requaired when I many time use FileReferenceList.browse())3. use loop for extract bitmap data via filereference load()4. downsample this image data and add this to other Collection as some VOall pretty working but now I wouldlike to clear memory wich is use after run- filereference.load().Do you have any solutions?

    DB:2.33:Filereference - How Purge Memory df

    Hi,I use sdk 4.5 and I need to generate hundreds thumbnails on websiteNow I do1. use FileReferenceList.browse() to get Array files2. create new ArrayCollection with FileReference (from filereferenceList) - in this array I store all FileReference Objects (it requaired when I many time use FileReferenceList.browse())3. use loop for extract bitmap data via filereference load()4. downsample this image data and add this to other Collection as some VOall pretty working but now I wouldlike to clear memory wich is use after run- filereference.load().Do you have any solutions?

  • RELEVANCY SCORE 2.32

    DB:2.32:Thread: Load In Order Commands In Ncf File f9


    Hello, I have a problem with Loading in order commands in NCF file.

    My situation is:

    I have a NCF file, there are 3 commands inside.

    the list of ncf file:

    mkdir sys:temp\\flag

    wget ftp://ftp.city.net -P sys:temp

    rmdir sys:temp\\flag

    All these commands run at the same time, but I need to run it in order.

    How can I do this?

    DB:2.32:Thread: Load In Order Commands In Ncf File f9

    accross the Pacific ocean at the moment - ETA 3 months g

    good luck... :-)

    -' + '-

    Cheers!

    Richard Beels

    ~ Network Consultant

    ~ Sysop, Novell Support Connection

    ~ MCNE, CNE*, CNA*, CNS*, N*LS

  • RELEVANCY SCORE 2.31

    DB:2.31:Can Not Access "File" In Code Hint. pk



    Good day and Merry Christmas in Advanced

    I have a simple question, I am new to "File" and need some help in this case.

    I have targeted Air 15.0.0.356 for Android, ActionScript 3, and I need to make a "File" (to cach mp3 in Android/iOS).

    But based on Code Hint I do not see the File class there? (only FileFilter, FileReference FileReferenceList).

    What am I doing wrong?

    DB:2.31:Can Not Access "File" In Code Hint. pk


    failure to be in your code hints does not mean it's unavailable. go ahead and use it in a reference and test.

  • RELEVANCY SCORE 2.31

    DB:2.31:Multifileselectpopup File Order 3k


    Is there a way to force MultiFileSelectPopup() to put the files in the fileListin the same order that they were selected? For example, a user might want toselect a series of files for viewing in chronological order by selecting"Details" and then clicking on the "Modified" column header.Nick J

    DB:2.31:Multifileselectpopup File Order 3k

    Im afraid this is not built into that control. You would need to make a custom panel that would do that for you.Bilal DurraniNI



    Bilal DurraniNI

  • RELEVANCY SCORE 2.31

    DB:2.31:Error 1009 Upon Creationcomplete Event? dk



    I am working on processing images that the user selects. A FileReferenceList is passed to a function in a separate class. The selected image(s) are then placed into Image controls. After setting other parameters, I have this line:

    imageNewThumb.source=theFiles.fileList[i].data;

    DB:2.31:Error 1009 Upon Creationcomplete Event? dk


    I am working on processing images that the user selects. A FileReferenceList is passed to a function in a separate class. The selected image(s) are then placed into Image controls. After setting other parameters, I have this line:

    imageNewThumb.source=theFiles.fileList[i].data;

  • RELEVANCY SCORE 2.30

    DB:2.30:File Order When Uploading Photos 9m


    Question Summary
    Other Windows Live SkyDrive / Photos issues
    Please provide your impacted Email address :

    DB:2.30:File Order When Uploading Photos 9m

    Thanks for the response to my query. Edmonnd A was correct in deducing I meant alphobetical order. I think the work around is a solution but I would have thought it possible to find out how sky drive orders the files. Maybe it is something to do with
    the date the pictures were taken or saved on the computer. I am still curious to find out the answer. Somebody in Microsoft knows!

  • RELEVANCY SCORE 2.29

    DB:2.29:File Path jj


    Hi, everybody!
    Can somebody explain, is there any chance of getting file
    path working with FileReferenceList?
    This is the code:

    var listener
    bject = new Object();
    listener.onSelect = function(fileRefList:FileReferenceList) {
    trace("onSelect");
    var arr:Array = fileRefList.fileList;
    for(var i:Number = 0; i arr.length; i++) {
    trace("name: " + arr
    .name);
    }
    }
    I copied this code from Flash8 Documentation.
    I can get here only file name.
    Any different solution is also very acceptable.
    Thanks.

    DB:2.29:File Path jj

    I have the same problem i tried looking at the filereference
    interface file no clues there ill be keeping an eye out for a
    solution the only one i could think of was returning the values
    from php by saving them to a database when the fileis uploaded but
    this just isnt as good because its not fully local

  • RELEVANCY SCORE 2.29

    DB:2.29:File Open Dialog To Just Get The User Selected File Name 3s



    Hi,

    I am working on asynchronous file storage to KPRO through my ABAP WD application. For this asynchronous upload

    operation, I just need the file name and file path(not the content). The KPRO servers could be made to use SAPFTP, SAPHTTP in the background to upload documents (triggered via tRFC's).

    Is it possible to have a file open dialog (similar to java file open) which just returns the file path and file name instead of the

    content? Current fileUpload UI element also loads the content which is not desired behaviour for me (because could be a performance problem with large documents uploading).

    Is it possible to select multiple filenames? Thomas Jung's Flash island multiple upload works, but not in my

    asynchronous scenario. Because flex fileReferenceList + upload operation works synchronously.

    DB:2.29:File Open Dialog To Just Get The User Selected File Name 3s


    Hi,

    I am working on asynchronous file storage to KPRO through my ABAP WD application. For this asynchronous upload

    operation, I just need the file name and file path(not the content). The KPRO servers could be made to use SAPFTP, SAPHTTP in the background to upload documents (triggered via tRFC's).

    Is it possible to have a file open dialog (similar to java file open) which just returns the file path and file name instead of the

    content? Current fileUpload UI element also loads the content which is not desired behaviour for me (because could be a performance problem with large documents uploading).

    Is it possible to select multiple filenames? Thomas Jung's Flash island multiple upload works, but not in my

    asynchronous scenario. Because flex fileReferenceList + upload operation works synchronously.

  • RELEVANCY SCORE 2.29

    DB:2.29:Program To Create Sales Order From A File kp



    Hi. does anyone have a program which reads sales order data from a file and then creates it in SAP?

    DB:2.29:Program To Create Sales Order From A File kp


    requirement is only to create a sales order automatically.data should be uploaded from a file.

  • RELEVANCY SCORE 2.29

    DB:2.29:Problem When Handling Multiple Messages Using Sequential Convoy 1s


    Hi Guys,
    We receive two files from FTP server. One is Order file and other one is notes file which is optional one. If the note flag in order file is 1 then we should process notes file as well. Here we implemented sequential convoy and it was working fine when we
    receive order file first and then notes file. it is throwing error when we receive notes file first as we set initialize correlation for Order file. Please share your ideas what to do when we receive notes file first than order file?. Thanks!!

    DB:2.29:Problem When Handling Multiple Messages Using Sequential Convoy 1s

    Hi,

    i added debug points and ran it. i dropped one order file and one note file but it is initializing active instance for both order and note files. Here is the order of logs.

    Initialized Order

    Initialized Note

    followed Note

  • RELEVANCY SCORE 2.29

    DB:2.29:Upload Multiple Files px


    Hello !

    Is there any possibility to upload multiple files (let's say
    a FileReferenceList) to a server making a single request ?
    I am asking this because I do not want to use
    FileReference.upload(request) method, as it can only be applied to
    a single file at once, and multiple calls will result in multiple
    requests.

    Thank you in advance !

    DB:2.29:Upload Multiple Files px

    Hello !

    Is there any possibility to upload multiple files (let's say
    a FileReferenceList) to a server making a single request ?
    I am asking this because I do not want to use
    FileReference.upload(request) method, as it can only be applied to
    a single file at once, and multiple calls will result in multiple
    requests.

    Thank you in advance !

  • RELEVANCY SCORE 2.28

    DB:2.28:Photos Don't Show Up In File Name Order pp


    Photos don't show up in file name order on the iPad. Is there a way to do it?

    DB:2.28:Photos Don't Show Up In File Name Order pp

    You can leave your feedback here:
    http://www.apple.com/feedback/ipad.html

  • RELEVANCY SCORE 2.28

    DB:2.28:Sales Order Preview And Print mk


    Would like to know how to customize Standard Sales Order report rtf template. there is a requirement to add new columns in xml file (ONTORDDFN) or xsd file (ONTORDDFN.xsd)

    Thanks
    Kamalakar.G

    DB:2.28:Sales Order Preview And Print mk

    Solution mentioned in Metalink Note: Modify Seeded Order Managment Xml Data Definition Source [ID 404144.1]

  • RELEVANCY SCORE 2.28

    DB:2.28:Filereferencelist Problem,Can Anyone Help Me? ks


    FileReferenceList.browse method return true in
    flashplayer10,but false in 9.Is it a bug?how to resolve it.I want
    it works both in 9 and 10.thanks.

  • RELEVANCY SCORE 2.27

    DB:2.27:How To View Thumbnail Image In Grid Before Uploading xf



    I am creating a file upload application. I am using a Grid with a filereferencelist object to list all of the uploaded files. I would like to place a thumbnail image of the file in the grid before it is uploaded. I basically used this example from Coding Cowboys (http://weblog.cahlan.com/2006/12/flex-upload-component.html) but I need to add a column for the thumbnail image.

    DB:2.27:How To View Thumbnail Image In Grid Before Uploading xf


    Ah, great!

    If you can get the filePath, it's easy to use that in your dataGrid. Put the filePath in a property of your dataProvider and then make a simple itemRenderer to display it. In this itemRenderer, put an image with it's source property bound to the filePath property of your provider:

    mx:Image source="{data.filePath}"/

    Dany

  • RELEVANCY SCORE 2.27

    DB:2.27:Want To Create A Multiple Purchase Order Using One File Source pa


    I'm want to create a multiple purchase order using one source file. I want to read the file source create LINES in a purchase order and when the Vendor code changes I want to Add the purchase order and then create a new purchase order and Add LINES and so on. Right now I get Item.no is missing [POR1.ItemCode][Line 2]

    DB:2.27:Want To Create A Multiple Purchase Order Using One File Source pa

    Thanks for your help, that did the trick, everything seem to be working great now.

  • RELEVANCY SCORE 2.27

    DB:2.27:Choose A File To Upload Sort Order 9j


    windows 7 pro

    DB:2.27:Choose A File To Upload Sort Order 9j

    Hi,
    1. Which is the application/website you are using to upload the file?
    2. Is the behavior same while trying to upload from a different application/website?
    3. Was it working fine before?
    4. Did you made any changes to your computer prior to the issue?

    Follow the steps mentioned below to change folder settings to default
    a. Click on Start and then on Computer
    b. In the menu bar click on ‘Organize’ and then on ‘folder and search option’.
    c. Click on View tab, and then click on ‘Restore Defaults’
    d. Click on 'apply’ and then ‘OK’
    e. Restart the computer and check with the issue.
    Let’s know if it works.

  • RELEVANCY SCORE 2.27

    DB:2.27:Java Properties File 9p


    Hi ,

    I am using trying to write data to a java properties file , by using the setProperty method and somehow the order of the data is not by the order of inserting it ,Is there a way to use the setProperty method and still keep the order of data in the file after storing it.

    Thanks.

    DB:2.27:Java Properties File 9p

    Thanks a lot for your help appreciated.

  • RELEVANCY SCORE 2.27

    DB:2.27:How To Combine Filereferencelist Objects Into One? c3


    Hi there,

    I'm successfully uploading multiple files to a server using
    the FileReferenceList object. But if you go to browse() for more
    files to add to the ones you've already selected (perhaps they are
    in another folder), then the original FileReferenceList object is
    emptied and replaced with the new files that are chosen.

    What I want is the ability to create a "master"
    FileReferenceList that can hold the results of multiple browse()
    calls. I've used "concat" to combine arrays before but I can't get
    it to work here. Here's the idea that I'm going for:

    private var myMasterFileList:FileReferenceList;
    private var myFileList:FileReferenceList;

    var myMasterFileList = myMasterFileList.concat(myFileList)

    Then when the user is ready, they can send the
    myMasterFileList:FileReferenceList off to be uploaded in one batch.
    In other words how do I create a running master file list from each
    subsequent file list call.

    Thanks for your advice!

    DB:2.27:How To Combine Filereferencelist Objects Into One? c3

    Well, it appears as I'm reading up on this a bit, that it may
    be that the FileReference or FileReferenceList objects are
    "read-only" therefore cannot be manipulated like a typical array.
    This doesn't make sense to me why this would be the case because in
    a multi-file upload situation, there could very well be a user who
    choose some files from one folder, but needs to upload additional
    files from another folder. The process of initiating another
    browse() method clears out the first list. If you could manipulate
    the file list like a normal array then you could just continue to
    add items to the first file list or a new "master" file list...
    THEN send all those items to upload at once.

    I want this functionality and so I think I'll need to
    creatively create many different instances of a FileReferenceList
    object so a user can gather up a variety of files from different
    locations and send them all at once.

    If anyone has any enlightenment on this I would love to
    discuss it because I'm still new to Flex and may be missing
    something obvious.

    Thanks!

  • RELEVANCY SCORE 2.27

    DB:2.27:Problems With Upload Component, It Says It Uploads, But The File Dosent Appear mz



    Hello All !

    After digging about on google, i found a decent upload component that i tried to implement. However when uploading the project, and testing. It says that it has uploaded the selected files, but they dont appear anywhere on the server.

    THe code is as follows:

    ?xml version="1.0" encoding="utf-8"?s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="initApp()" xmlns:com="com.flashdev.file.*" fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private const _strDomain:String = new String("http://davidtest.webcastglobal.com/"); private const _strUploadScript:String = new String(_strDomain + "upload/upload.php"); // Initalize private function initApp():void { Security.allowDomain(_strDomain); } ]] /fx:Script mx:Canvas width="400" height="300" horizontalCenter="0" verticalCenter="0" com:FileUpload width="100%" height="100%" uploadUrl="{_strUploadScript}" uploadComplete="Alert.show('File(s) have been uploaded.', 'Upload successful')" uploadIOError="Alert.show('IO Error in uploading file.', 'Error')" uploadSecurityError="Alert.show('Security Error in uploading file.', 'Error')"/ /mx:Canvas /s:Application

    ?xml version="1.0" encoding="utf-8"?mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:com="*" layout="vertical" width="100%" minWidth="400" height="100%" minHeight="200" title="Upload Files" creationComplete="initCom()" mx:Metadata [Event(name="uploadComplete", type="flash.events.Event")] [Event(name="uploadProgress", type="flash.events.ProgressEvent")] [Event(name="uploadCancel", type="flash.events.Event")] [Event(name="uploadIOError", type="flash.events.IOErrorEvent")] [Event(name="uploadSecurityError", type="flash.events.SecurityErrorEvent")] /mx:Metadata mx:Script ![CDATA[ import mx.controls.*; import mx.managers.*; import mx.events.*; import flash.events.*; import flash.net.*; private var _strUploadUrl:String; private var _refAddFiles:FileReferenceList; private var _refUploadFile:FileReference; private var _arrUploadFiles:Array; private var _numCurrentUpload:Number = 0; // Set uploadUrl public function set uploadUrl(strUploadUrl:String):void { _strUploadUrl = strUploadUrl; } // Initalize private function initCom():void { _arrUploadFiles = new Array(); enableUI(); uploadCheck(); } // Called to add file(s) for upload private function addFiles():void { _refAddFiles = new FileReferenceList(); _refAddFiles.addEventListener(Event.SELECT, onSelectFile); _refAddFiles.browse(); } // Called when a file is selected private function onSelectFile(event:Event):void { var arrFoundList:Array = new Array(); // Get list of files from fileList, make list of files already on upload list for (var i:Number = 0; i _arrUploadFiles.length; i++) { for (var j:Number = 0; j _refAddFiles.fileList.length; j++) { if (_arrUploadFiles[i].name == _refAddFiles.fileList[j].name) { arrFoundList.push(_refAddFiles.fileList[j].name); _refAddFiles.fileList.splice(j, 1); j--; } } } if (_refAddFiles.fileList.length = 1) { for (var k:Number = 0; k _refAddFiles.fileList.length; k++) { _arrUploadFiles.push({ name:_refAddFiles.fileList[k].name, size:formatFileSize(_refAddFiles.fileList[k].size), file:_refAddFiles.fileList[k]}); } listFiles.dataProvider = _arrUploadFiles; listFiles.selectedIndex = _arrUploadFiles.length - 1; } if (arrFoundList.length = 1) { Alert.show("The file(s): \n\n " + arrFoundList.join("\n ") + "\n\n...are already on the upload list. Please change the filename(s) or pick a different file.", "File(s) already on list"); } updateProgBar(); scrollFiles(); uploadCheck(); } // Called to format number to file size private function formatFileSize(numSize:Number):String { var strReturn:String; numSize = Number(numSize / 1000); strReturn = String(numSize.toFixed(1) + " KB"); if (numSize 1000) { numSize = numSize / 1000; strReturn = String(numSize.toFixed(1) + " MB"); if (numSize 1000) { numSize = numSize / 1000; strReturn = String(numSize.toFixed(1) + " GB"); } } return strReturn; } // Called to remove selected file(s) for upload private function removeFiles():void { var arrSelected:Array = listFiles.selectedIndices; if (arrSelected.length = 1) { for (var i:Number = 0; i arrSelected.length; i++) { _arrUploadFiles[Number(arrSelected[i])] = null; } for (var j:Number = 0; j _arrUploadFiles.length; j++) { if (_arrUploadFiles[j] == null) { _arrUploadFiles.splice(j, 1); j--; } } listFiles.dataProvider = _arrUploadFiles; listFiles.selectedIndex = 0; } updateProgBar(); scrollFiles(); uploadCheck(); } // Called to check if there is at least one file to upload private function uploadCheck():void { if (_arrUploadFiles.length == 0) { btnUpload.enabled = false; listFiles.verticalScrollPolicy = "off"; } else { btnUpload.enabled = true; listFiles.verticalScrollPolicy = "on"; } } // Disable UI control private function disableUI():void { btnAdd.enabled = false; btnRemove.enabled = false; btnUpload.enabled = false; btnCancel.enabled = true; listFiles.enabled = false; listFiles.verticalScrollPolicy = "off"; } // Enable UI control private function enableUI():void { btnAdd.enabled = true; btnRemove.enabled = true; btnUpload.enabled = true; btnCancel.enabled = false; listFiles.enabled = true; listFiles.verticalScrollPolicy = "on"; } // Scroll listFiles to selected row private function scrollFiles():void { listFiles.verticalScrollPosition = listFiles.selectedIndex; listFiles.validateNow(); } // Called to upload file based on current upload number private function startUpload():void { if (_arrUploadFiles.length 0) { disableUI(); listFiles.selectedIndex = _numCurrentUpload; scrollFiles(); // Variables to send along with upload var sendVars:URLVariables = new URLVariables(); sendVars.action = "upload"; var request:URLRequest = new URLRequest(); request.data = sendVars; request.url = _strUploadUrl; request.method = URLRequestMethod.POST; _refUploadFile = new FileReference(); _refUploadFile = listFiles.selectedItem.file; _refUploadFile.addEventListener(ProgressEvent.PROGRESS, onUploadProgress); _refUploadFile.addEventListener(Event.COMPLETE, onUploadComplete); _refUploadFile.addEventListener(IOErrorEvent.IO_ERROR, onUploadIoError); _refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError); _refUploadFile.upload(request, "file", false); } } // Cancel and clear eventlisteners on last upload private function clearUpload():void { _refUploadFile.removeEventListener(ProgressEvent.PROGRESS, onUploadProgress); _refUploadFile.removeEventListener(Event.COMPLETE, onUploadComplete); _refUploadFile.removeEventListener(IOErrorEvent.IO_ERROR, onUploadIoError); _refUploadFile.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError); _refUploadFile.cancel(); _numCurrentUpload = 0; updateProgBar(); enableUI(); } // Called on upload cancel private function onUploadCanceled():void { clearUpload(); dispatchEvent(new Event("uploadCancel")); } // Get upload progress private function onUploadProgress(event:ProgressEvent):void { var numPerc:Number = Math.round((event.bytesLoaded / event.bytesTotal) * 100); updateProgBar(numPerc); var evt:ProgressEvent = new ProgressEvent("uploadProgress", false, false, event.bytesLoaded, event.bytesTotal); dispatchEvent(evt); } // Update progBar private function updateProgBar(numPerc:Number = 0):void { var strLabel:String = (_numCurrentUpload + 1) + "/" + _arrUploadFiles.length; strLabel = (_numCurrentUpload + 1 = _arrUploadFiles.length numPerc 0 numPerc 100) ? numPerc + "% - " + strLabel : strLabel; strLabel = (_numCurrentUpload + 1 == _arrUploadFiles.length numPerc == 100) ? "Upload Complete - " + strLabel : strLabel; strLabel = (_arrUploadFiles.length == 0) ? "" : strLabel; progBar.label = strLabel; progBar.setProgress(numPerc, 100); progBar.validateNow(); } // Called on upload complete private function onUploadComplete(event:Event):void { _numCurrentUpload++; if (_numCurrentUpload _arrUploadFiles.length) { startUpload(); } else { enableUI(); clearUpload(); dispatchEvent(new Event("uploadComplete")); } } // Called on upload io error private function onUploadIoError(event:IOErrorEvent):void { clearUpload(); var evt:IOErrorEvent = new IOErrorEvent("uploadIoError", false, false, event.text); dispatchEvent(evt); } // Called on upload security error private function onUploadSecurityError(event:SecurityErrorEvent):void { clearUpload(); var evt:SecurityErrorEvent = new SecurityErrorEvent("uploadSecurityError", false, false, event.text); dispatchEvent(evt); } // Change view state private function changeView():void { currentState = (currentState == "mini") ? "" : "mini"; } ]] /mx:Script mx:states mx:State name="mini" mx:SetProperty name="height" value="60"/ mx:SetProperty name="minHeight" value="60"/ mx:SetStyle target="{btnView}" name="icon" value="@Embed('assets/application_put.png')"/ /mx:State /mx:states mx:transitions mx:Transition fromState="*" toState="*" mx:Resize target="{this}" duration="1000"/ /mx:Transition /mx:transitions mx:Canvas width="100%" height="100%" mx:DataGrid id="listFiles" left="0" top="0" bottom="0" right="0" allowMultipleSelection="true" verticalScrollPolicy="on" draggableColumns="false" resizableColumns="false" sortableColumns="false" mx:columns mx:DataGridColumn headerText="File" dataField="name" wordWrap="true"/ mx:DataGridColumn headerText="Size" dataField="size" width="75" textAlign="right"/ /mx:columns /mx:DataGrid /mx:Canvas mx:ControlBar horizontalAlign="center" verticalAlign="middle" mx:Button id="btnAdd" toolTip="Add file(s)" click="addFiles()" icon="@Embed('assets/add.png')" width="26"/ mx:Button id="btnRemove" toolTip="Remove file(s)" click="removeFiles()" icon="@Embed('assets/delete.png')" width="26"/ mx:ProgressBar id="progBar" mode="manual" label="" labelPlacement="center" width="100%"/ mx:Button id="btnCancel" toolTip="Cancel upload" icon="@Embed('assets/cancel2.png')" width="26" click="onUploadCanceled()"/ mx:Button label="Upload" toolTip="Upload file(s)" id="btnUpload" click="startUpload()" icon="@Embed('assets/bullet_go.png')"/ mx:Button id="btnView" toolTip="Show/Hide file(s)" icon="@Embed('assets/application_get.png')" width="26" click="changeView()"/ /mx:ControlBar /mx:Panel

    The first quote is the Main.mxml, and then the second is the component, "FileUpload.mxml"

    Here is the PHP Script

    ?php$errors = array();$data = "";$success = "false";function return_result($success,$errors,$data) { echo("?xml version=\"1.0\" encoding=\"utf-8\"?"); ? results success?=$success;?/success ?=$data;? ?=echo_errors($errors);? /results ?}function echo_errors($errors) { for($i=0;$icount($errors);$i++) { ? error?=$errors[$i];?/error ? }}switch($_REQUEST['action']) { case "upload": $file_temp = $_FILES['file']['tmp_name']; $file_name = $_FILES['file']['name']; $file_path = $_SERVER['DOCUMENT_ROOT']."/myFileDir"; //checks for duplicate files if(!file_exists($file_path."/".$file_name)) { //complete upload $filestatus = move_uploaded_file($file_temp,$file_path."/".$file_name); if(!$filestatus) { $success = "false"; array_push($errors,"Upload failed. Please try again."); } } else { $success = "false"; array_push($errors,"File already exists on server."); } break; default: $success = "false"; array_push($errors,"No action was requested.");}return_result($success,$errors,$data);?

    The process that i followed when uploading all these files.

    1 - Create a folder on my server called "upload"

    2 - Saved the exported UploadTests.html file along with all the other files into this folder

    3 - Saved the php file to this upload folder

    4 - Set the filepermissions to "777"

    5- Went to uploadtests.html, tried to upload a file, it said that it was uploaded, but the file dosent actually appear anywhere.

    Am i missing something ? Was i suppose to change somehting in the php file maybe ??

  • RELEVANCY SCORE 2.27

    DB:2.27:Load Sales Order From Xml File zp



    Hi,

    I want to load a sales order from xml file. How can I do so? Where I'll get the xml schema for Sales Order or other documents (delivery,invoice etc)?

    Plz reply with code and xml file.

    DB:2.27:Load Sales Order From Xml File zp


    infos about nota fiscals is in table OUSG. I think that your problem is related to some date value.

  • RELEVANCY SCORE 2.25

    DB:2.25:How To Export Data To Excel In Specific Variable Order? jp



    Hi,

    I'll need to export sas data set to excel file. The variable names need to be in a specific order. I used file, put statement to make variable names in the correct order. But once I use proc export, the variables are in alphabet order again. Please help. Thanks,

    DB:2.25:How To Export Data To Excel In Specific Variable Order? jp


    Just use PROC SQL to order your variables in the order you want, before your PROC EXPORT.

    Re: How to export data to excel in specific variable order?proc sql;

    create view EXPORT as

    select variale1 as Variable_1

    , mysasdata as Start_date format=ddmmyy.

    , etc as last_var format=z10.

    from mysasdata;

    quit;

    proc export.........[/pre]

  • RELEVANCY SCORE 2.25

    DB:2.25:Filereferencelist 33



    Is there a way to detect the total size of all files in a fileReferenceList?

    DB:2.25:Filereferencelist 33


    loop through the fileReferenceList's filelist and add each element's size property.

  • RELEVANCY SCORE 2.25

    DB:2.25:How Servlet Can Process Several Request From The Same Session(Overlapping)? dx


    Hi,

    My problem is that I have to submit several "post" request to a servlet which will do the uploading job. The requests are from the same user/session to the same servlet and each one contains a single file. The request are being sent from flash and from a FileReferenceList. This object let the user select multiple files and send the files one by one (without waiting for completion of request) to the server as post requests. When I'm sending files one by one it works but sending multiple files result in incomplete files or missed files. It leads me to think that later requests interrupt/cancel previous ones.
    It's possible to send files one by one, wait for completion of each request and sending next file after that in flash side, but it's not interesting, plus that it seems other server side languages works correctly by sending multiple requests at the same time.

    Any help is appretiated.
    Best.

    DB:2.25:How Servlet Can Process Several Request From The Same Session(Overlapping)? dx

    davepara wrote:
    When I'm sending files one by one it works but sending multiple files result in incomplete files or missed files. It leads me to think that later requests interrupt/cancel previous ones.Your Servlet is simply not threadsafe.

    There is one important fact regarding Servlets that you have to keep in mind: a Servlet is created once during application lifetime and reused among requests.

    So if you for example have declared an instance variable which contains sensitive data which is going to be shared among requests, then this kind of problems can occur. Do not declare instance variables in servlets to hold request-specific data, just keep them local (move declaration to method block).

  • RELEVANCY SCORE 2.25

    DB:2.25:File Order Display 9j


    running Windows 7 pro -how can I reverse the order in which files are diplayed in Windows Photo Viewer? I am using Duplocator to remove duplicated files but the list of duplicated files highlight the ones to be removes in the wrong order

    DB:2.25:File Order Display 9j

    If you mean Windows photo gallery, you can use the same process.
    Or Alt+W A or V,
    View/ Reverse sort.

  • RELEVANCY SCORE 2.25

    DB:2.25:Upload A Local File Using The Path zj



    I'm trying to upload-on-demand every .MP4 file from an SD card (E:\) to my server when the application starts. So far in my code I have been able to check whether E:\ is valid (the SD card is loaded) and get a list of full paths to the MP4 files on the card. I noticed FileReference and FileReferenceList use the browse() method to select files but couldn't see a method that would allow me a specify a path instead.

    Is there a way to do this? Thanks in advance.

    DB:2.25:Upload A Local File Using The Path zj


    I'm trying to upload-on-demand every .MP4 file from an SD card (E:\) to my server when the application starts. So far in my code I have been able to check whether E:\ is valid (the SD card is loaded) and get a list of full paths to the MP4 files on the card. I noticed FileReference and FileReferenceList use the browse() method to select files but couldn't see a method that would allow me a specify a path instead.

    Is there a way to do this? Thanks in advance.

  • RELEVANCY SCORE 2.25

    DB:2.25:Attaching Document File ( Pdf File) In Sales Order j9



    Dear Experts,

    Can any help me how to attach an PDF file in sales order (Va01/Va02)

    Regards

    KC Choudhury

    DB:2.25:Attaching Document File ( Pdf File) In Sales Order j9


    Hiii

    Apart from this u have to do one more thing

    Go To VA02 give your sales order number then enter.

    Go to menu -

    System ---Services for Object

    Now one screen will pop up here you can maintain your attachment.

    Regards

    Shambhu

  • RELEVANCY SCORE 2.25

    DB:2.25:Ios Fw Order Of Operation For Nat Inspection 1s



    Can someone answer the questions on the text file? It is just an order of operation question on the IOS FW.

    DB:2.25:Ios Fw Order Of Operation For Nat Inspection 1s


    From ingress to egress:

    stateless IOS IPS - IPSec decryption - auth proxy - input ACL - virtual fragment inspection - NAT before routing - routeing - NAT after routing - stateful IOS IPS - outbound ACL - ISO FW - IPSec encryption

    HTH.

    Alex Yeung

  • RELEVANCY SCORE 2.24

    DB:2.24:Excel File Open Order 3a


    Hello,

    DB:2.24:Excel File Open Order 3a

    I assume you mean that they are listed in the File Open dialog in a non-alphabetic order.

    Right-click the background of the pane in the dialog in which the files are listed and Sort by Name

  • RELEVANCY SCORE 2.24

    DB:2.24:Sales Order Using Csv File sz


    Hi All,

    I want to Create sales order using .csv file without using DTW,
    reading each contents from .csv file and create order in SAP Business One using VB.Net

    Any help would be much appreciated. Thanks in advance!

    Regards,
    Swati

    DB:2.24:Sales Order Using Csv File sz


    does your csv file have multiple sales order? if yes, are the sales order lines in a different file?

  • RELEVANCY SCORE 2.24

    DB:2.24:Setting The Boot Order 18



    How can I set the default Boot order (Floppy, CD, Disk )by modifying the vmx file?

    DB:2.24:Setting The Boot Order 18


    You can't, it's done through the vBIOS. Press F2 during startup and change it.

    /Nicke

  • RELEVANCY SCORE 2.23

    DB:2.23:Multiple File Loader, Saves 101 Copies Of Image On Server... Need Help :) 1d


    hey guys, like the title suggests... for some reason my actionscript file saves the stupid image 101 times on the server... and thats only cuz i stop the script from running more... lolthe code i have is... public var fileRef:FileReferenceList = new FileReferenceList(); [Bindable] public var fileList:Array = new Array(); [Bindable] public var fileNames:ArrayCollection = new ArrayCollection(); [Bindable] public var arrUploadFiles:Array = new Array(); public var file:FileReference; public var imageData:ImageData = new ImageData(); public var imageService:Images = new Images(); public var returnMsg:ReturnMessage = new ReturnMessage(); public function initiateBrowse():void{ var filter:Array = []; filter.push(new FileFilter("Images", ".gif;*.jepg;*.jpg;*.png")); this.fileRef.addEventListener(Event.SELECT, addToQueue); this.fileRef.browse(filter); } public function addToQueue(event:Event):void{ // (event.target.fileList.length); var numSelected:Number = event.target.fileList.length; for(var i:int; i numSelected; i++){ var oldListLength:Number = fileList.length; fileList.push(event.target.fileList[i]); fileNames.addItem({ num: fileNames.length + 1, name: event.target.fileList[i].name, size: formatFileSize(event.target.fileList[i].size), status:"" }); var newListLength:Number = fileList.length; if(oldListLength newListLength){ uploadToServer(oldListLength, event); } } } private function uploadToServer(startIndex:Number, event:Event):void{ var files:FileReferenceList = FileReferenceList(event.target); trace("file list length: " + fileList.length); for(var i:int = startIndex; i fileList.length; i++){ file = new FileReference(); file = FileReference(fileList[i]); file.addEventListener(Event.COMPLETE, uploadSingleFile); file.load(); } } private function uploadSingleFile(event:Event):void{ var fileByteArr:ByteArray = event.target.data as ByteArray; var b64En:Base64Encoder = new Base64Encoder(); b64En.encodeBytes(fileByteArr); var str:String = b64En.flush(); //trace(str); imageData.Base64EncodedImage = str; imageData.FileName = event.target.name Alert.show(event.target.name); imageService.addEventListener(ResultEvent.RESULT, imgServSuccess); imageService.UploadImage(imageData); b64En.reset(); } public function imgServSuccess(event:ResultEvent):void{ var returnedImageId:ArrayCollection = new ArrayCollection(); returnMsg = event.result as ReturnMessage; var returnedData:Object = event.result.Images; trace("length: " + event.result.Images.length); if(returnMsg.ThereWasAnError){ trace(returnMsg.ErrorMessages.getItemAt(0).toString()); } else{ for each(var imgData:ImageData in returnedData){ var decoded:Base64Decoder = new Base64Decoder(); decoded.decode(imgData.Base64EncodedImage); var byteArr:ByteArray = decoded.toByteArray(); img.source = byteArr; } imageService.SaveUploadedImageInformation(returnedData[0]); trace("done"); } } private function formatFileSize(numSize:Number):String { var strReturn:String; numSize = Number(numSize / 1024); strReturn = String(numSize.toFixed(1) + " KB"); if (numSize 1024) { numSize = numSize / 1024; strReturn = String(numSize.toFixed(1) + " MB"); if (numSize 1024) { numSize = numSize / 1024; strReturn = String(numSize.toFixed(1) + " GB"); } } return strReturn; }and in the mxml i have s:VGroup mx:DataGrid id="displayFilesList" width="700" height="500" allowMultipleSelection="true" resizableColumns="true" draggableColumns="false" dataProvider="{fileNames}" mx:columns mx:DataGridColumn headerText="#" dataField="num" width="30" / mx:DataGridColumn headerText="File" dataField="name" width="400"/ mx:DataGridColumn headerText="Size" dataField="size" width="75" textAlign="right" / mx:DataGridColumn headerText="Status" dataField="status" /mx:DataGridColumn /mx:columns /mx:DataGrid s:Button label="Browse" click="initiateBrowse();" / mx:Image id="img" width="700" height="300" / /s:VGroupcan any one point out what my problem is?? ive been wracking my brains over this stupid issue like all day! lolif you would like some more information on the data service please let me know i can take an image of the data service and post it up...again thank you soo much in advance!!!

    DB:2.23:Multiple File Loader, Saves 101 Copies Of Image On Server... Need Help :) 1d

    hi,Once you do this sort of thing a few times you will find your own preferences and ways of making things efficient, i'm glad I could help get you up and running.David

  • RELEVANCY SCORE 2.23

    DB:2.23:How To Attach A File To Service Order 1m



    Dear all,

    How can i attach a file to service order in abap code.

    DB:2.23:How To Attach A File To Service Order 1m


    Dear all,

    How can i attach a file to service order in abap code.

  • RELEVANCY SCORE 2.23

    DB:2.23:View Attached Files For Sales Order In Approbation. cf



    Hi,

    I have attached a file in a Sales Order. My Sales Order then goes to approbation. Can my approbator open the attached file WITHOUT having to open the Sales Order.

    Thank you !

    DB:2.23:View Attached Files For Sales Order In Approbation. cf


    Hi Thanh,

    There is no such option to open the attached file without opening the sales order the approver has to open the order to check the attachment.

    Regards,

    Suresh

  • RELEVANCY SCORE 2.23

    DB:2.23:Filereference - Dataevent.Upload_Complete_Data Mac Only Problem 3c


    Hi Folks,i am using the latest Flex 3.6SDK and have a problem with the FileReference on mac (firefox tested only). The SELECT and COMPLETE Events are working like expected, just the DataEvent.UPLOAD_COMPLETE_DATA isnt. I tried to use the FileReferenceList too that also uses the FileReference but no success. The Jiira got many problems like this, but they are officially fixed, just not for me. Does anyone else have the same problem and maybe a solution to it?Thanks!

    DB:2.23:Filereference - Dataevent.Upload_Complete_Data Mac Only Problem 3c

    Hi,i found the problem, it was in fact not the DataEvent. I used to check which FileReference.type is used, for mac this is in most cases "null" and instead of showing the problem it just did "nothing". So the problem i described is not existent.Thanks

  • RELEVANCY SCORE 2.23

    DB:2.23:Quick Look Order 9f


    Does anyone know how to change Quick Look Order?

    In my environment, Quick Look show weird order. I hope to change it to order by file name.

    DB:2.23:Quick Look Order 9f

    Hi, Topher Kessler. Thank you so much again.
    It is different result that right click quick look and quick look button.

    I can see order by name via quick look button now.

    Thank you.

  • RELEVANCY SCORE 2.23

    DB:2.23:Sort File f3


    I want to sort list of file in order of last modified date.

  • RELEVANCY SCORE 2.23

    DB:2.23:Load Excel File With Need To Filter Records m3



    Hello,

    Trying to Load an excel file which contains two types of records with same format

    First type is Record Type A = purchase order and Second type is Record Type B = Reception

    If Purchase order is not received yet , Record Type B doesn't exist

    Each record is recognized with a [Movement order number] and a [movement order line] has unique keys

    In Record Type B , two fields are containing the [Purchase order number] and [Purchase order line] (movement order number and movement order line) from Record type A to link the reception with the purchase order.

    My need is to load all Record Type B = All receptions (easy !) and Record type A when Movement order number and movement order line do not exist as purchase order number and purchase order line in Record type B = Purchase Orders not received yet.

    Thanks in advance to help ...

    Gerard from France , Bellegarde 45

    DB:2.23:Load Excel File With Need To Filter Records m3


    Hello,

    Trying to Load an excel file which contains two types of records with same format

    First type is Record Type A = purchase order and Second type is Record Type B = Reception

    If Purchase order is not received yet , Record Type B doesn't exist

    Each record is recognized with a [Movement order number] and a [movement order line] has unique keys

    In Record Type B , two fields are containing the [Purchase order number] and [Purchase order line] (movement order number and movement order line) from Record type A to link the reception with the purchase order.

    My need is to load all Record Type B = All receptions (easy !) and Record type A when Movement order number and movement order line do not exist as purchase order number and purchase order line in Record type B = Purchase Orders not received yet.

    Thanks in advance to help ...

    Gerard from France , Bellegarde 45

  • RELEVANCY SCORE 2.23

    DB:2.23:Deploy Order In A Sca File z9


    Hello,The SDM choose the wrong order while deploying.How can I change the deploy order of SDAs in a SCA file? Regards,Michael

    DB:2.23:Deploy Order In A Sca File z9

    Hi Micheal,Could you descirbe it deep?Now i met the same question!Thanks for your help!!!!

  • RELEVANCY SCORE 2.23

    DB:2.23:Can We Attach Any Jpeg File In The Header Text Of Sales Order (Va02) pa



    Hi experts,

    my question is that,

    I want to attach one JPEG FILE to the header text of sales order.

    is there any idea?

    or else any other way to attch any external jpeg file to the standard sales order?

    Thanks in advance.

    Please help.

    DB:2.23:Can We Attach Any Jpeg File In The Header Text Of Sales Order (Va02) pa


    hi suvendu,

    i want to attach that file in the header text of standard transaction va02.

    is this possible?

    or any other way to attch external file?

    any idea.......plz help.

    Edited by: MONIKA DHUMAL on Apr 28, 2009 2:11 PM

  • RELEVANCY SCORE 2.23

    DB:2.23:Preview Of Images From Filereferencelist mf


    I would like to know how you can preview different images from a FileReferenceLi
    st. Normally with file reference you can do the following:

    img.source = fileReference.data;I want to do this with more than one image and with using filereferencelist, I do the following:
    var fileReference:FileReference;

    var fileReferenceList:FileReferenceList = FileReferenceList(event.target);

    var fileList:Array = fileReferenceList.fileList

    img0.source = FileReference(fileList[0].data);

    img10.source = FileReference(fileList[10].data);

    Any idea what do I do wrong?

    Thanks and regards

  • RELEVANCY SCORE 2.23

    DB:2.23:Datagrid Data Binding Issues c8


    I'm trying to create a DataGrid in code and populate it with
    information. The final product I'm trying to create is a form that
    displays the files you selected after browsing your computer. I
    plan to place the FileReferenceList informaiton into an array that
    will become the DataGrid's dataProvider.

    Would someone please let me know what I'm doing wrong, or
    provide a link to a great resource on how to create and use
    DataGrids with Actionscript 3?

    I keep getting the following error;

    "ArgumentError: Error #1063: Argument count mismatch..."

    This error occurs during the binding process of the
    dataProvider method.

    Below is an example of the relevant code I'm trying to use;

    var _dgFiles:DataGrid = new DataGrid();
    _dgFiles.allowDragSelection = false;
    _dgFiles.allowMultipleSelection = true;
    _dgFiles.resizableColumns = false;
    _dgFiles.sortableColumns = false;
    _dgFiles.percentWidth = 100;
    _dgFiles.percentHeight = 100;

    var aColumns:Array = _dgFiles.columns;

    var dgcIcon:DataGridColumn = new DataGridColumn();
    var dgcName:DataGridColumn = new DataGridColumn();
    var dgcSize:DataGridColumn = new DataGridColumn();
    var dgcFile:DataGridColumn = new DataGridColumn();

    dgcIcon.headerText = "";
    dgcIcon.dataField = "icon";
    dgcIcon.width = 26;
    dgcIcon.editable = false;
    dgcIcon.resizable = true;
    dgcIcon.visible = false;

    dgcName.headerText = "File";
    dgcName.dataField = "name";
    dgcName.editable = false;
    dgcName.resizable = true;

    dgcSize.headerText = "Size";
    dgcSize.dataField = "size";
    dgcSize.width = 50;
    dgcSize.editable = false;

    dgcFile.headerText = "Data";
    dgcFile.dataField = "data";
    dgcFile.wordWrap = false;
    dgcFile.editable = false;
    dgcFile.visible = false;

    aColumns.push(dgcIcon);
    aColumns.push(dgcName);
    aColumns.push(dgcSize);
    aColumns.push(dgcFile);
    _dgFiles.columns = aColumns;

    addChild(_dgFiles);

    var a1:Array = new
    Array({icon:"*.jpg",name:"FileName1.jpg",size:10002,data:"TEST1"});
    var a2:Array = new
    Array({icon:"*.jpg",name:"FileName2.jpg",size:10002,data:"TEST2"});
    var a:Array = new Array();
    a.push(a1);
    a.push(a2);
    _dgFiles.dataProvider = a;

    // This is where it fails. I think my test array "a" is not
    correct. How do I provide the correct information to the
    // DataGrid so that it works?

  • RELEVANCY SCORE 2.23

    DB:2.23:Answare File 89


    hi allCan I type command inside the answer file in order to format two partitions.Best Regards.

    DB:2.23:Answare File 89

     Thank You Very Much thats was very helpful.but here is what my boss asking me to do! we want to buy 125 Pcs and i want to install Windows XP with Microsoft Office on all of the computers in one Day, so what i did is i install RIS and i Installed on one of the computers all of the applications that i want to deploy, then i run The Sysprep and take an image to the server. but when i install the image on a remote computer its Formats the Whole H.D!and i want to thank you again for the Link its very helpful.Best Regards.Mohammad.R.Sawalha

  • RELEVANCY SCORE 2.23

    DB:2.23:Upload Sales Order Details In A File From Application Server. 8p



    hi,

    Upload sales order details in a file from application server. Once file is uploaded, the source file should be deleted from application server and audit file log file should be placed in application server.

    plz help me out

    DB:2.23:Upload Sales Order Details In A File From Application Server. 8p


    Hi,

    First get the data from the Application server file -

    Using the OPEN, READ, CLOSE dataset statements in a combincation.

    Using the above DATSET statements we can move the data to the internal table.

    then after getting into the internal table then use the same internal table inorder to save it in a file on the presentation server using the FM -

    GUI_DOWNLOAD.

    Please check the below link for this -

    how to upload from Application Server to Internal Table

    Regards

    Chandralekha

  • RELEVANCY SCORE 2.23

    DB:2.23:Filereferencelist Upload Restrictions xm


    Does anyone know how to get around the restriction on the
    number of files that FileReferenceList allows you to upload at one
    time? I have written a Flex application for uploading files
    (student photos) to a server that works fine for 200 or so files,
    but comes back with a message telling me to select few files if I
    try to select a thousand or so.

    Thanks in advance!

    DB:2.23:Filereferencelist Upload Restrictions xm

    Does anyone know how to get around the restriction on the
    number of files that FileReferenceList allows you to upload at one
    time? I have written a Flex application for uploading files
    (student photos) to a server that works fine for 200 or so files,
    but comes back with a message telling me to select few files if I
    try to select a thousand or so.

    Thanks in advance!

  • RELEVANCY SCORE 2.23

    DB:2.23:How Can I Set A Particular Song Order In My Library? k3


    Some files of songs get loaded/imported into my library in alphabetical order versus the order of the actual setlist.

    How can I determine or create the order of my songs of a particular music file and not have them imported by alphabetical order?

    Dell Laptop Windows XP

    DB:2.23:How Can I Set A Particular Song Order In My Library? k3

    Yeah, I don't know why some songs get picked up in different orders. Like when I drag an emusic album folder into iTunes, it's all out of order.

    If it really bugs me I drag it in reverse track order so "Date Added" will show things in the correct track # sequence.

    To listen to a complete album, I just have a regular playlist called "now playing". I drag the album in there and sort by track number.

    Then when I want a different album I clear the old one out and drag the new one in.

    SOmebody else probably has a better idea but that's what I do.

  • RELEVANCY SCORE 2.23

    DB:2.23:How Do I Retrieve A Pdf File From My Computer In Order To Convert f3



    How do I retrieve a PDF file from my computer in order to convert it?

    DB:2.23:How Do I Retrieve A Pdf File From My Computer In Order To Convert f3


    What exactly means "cannot"? Please explain in details what you are doing, and what happens.

    [topic moved to ExportPDF forum]

  • RELEVANCY SCORE 2.23

    DB:2.23:Binary Jar File? xx


    How can I create binary Jar file in order to hide the code from the client?

    DB:2.23:Binary Jar File? xx

    Hide your code?
    The code is quite hidden in a .class file also just as it is in a .jar file(a .class file is not human readable)
    But reingeneering is quite simple. The only thing you will loose if you decompile a java program (from .class or .jar) is the comments, and the name of local variables.

    To stop reeingeneering you need to use an obfuscator.

  • RELEVANCY SCORE 2.23

    DB:2.23:File Folder Order In Wm6 Start Menu m3


    I'd like my files folders to be in a specific order in the start menu.

    Any tricks that I can use to manipulate the order instead of them being seen alphabetically?

    Thanks!

    DB:2.23:File Folder Order In Wm6 Start Menu m3

    Go to your explorer on your device and go to windows/start menu folder
    tap and hold the shortcut link(word.lnk) and rename it to (01 word.lnk)
    Adding these numbers will organize them in number order in your start menu

  • RELEVANCY SCORE 2.23

    DB:2.23:Config File Schema - Proper Order Of Elements... mm


    Is there any good documentation on the ORDER that configuration file XML elements must be listed.
    Thanks.

    DB:2.23:Config File Schema - Proper Order Of Elements... mm

    Actually, that's not quite true... if you have a configSections element in your file, it MUST come immediately after configuration (the opening element) and before anything else, otherwise your program will crash.  I'm just wondering what other dependencies in order there are, without having to search through each and every configuration file schema element help topic.
     

  • RELEVANCY SCORE 2.23

    DB:2.23:File Name Displayed dm


    Is there anyway to display the actual file name instead of just the pictures in numberical order?

    DB:2.23:File Name Displayed dm

    MaryOne option if you want a friend to select a photo from a bunch in an album is he/she can click on your link to see your album, click on the photo of choice, and then copy that link and send you an email with their comment and the link to show which photo they chose.Pattie

  • RELEVANCY SCORE 2.23

    DB:2.23:How Can I Order Pl/Sql Functions In "Called" A "Caller" Order In Function Script File ds


    Does anybody know how to create PL/SQL function script file
    in "called" and "caller" (parent/child) order.

    Thanks
    Soheil

    DB:2.23:How Can I Order Pl/Sql Functions In "Called" A "Caller" Order In Function Script File ds

    Does anybody know how to create PL/SQL function script file
    in "called" and "caller" (parent/child) order.

    Thanks
    Soheil

  • RELEVANCY SCORE 2.22

    DB:2.22:Attach File To Order sc



    I want to attach excel file with order, how can i attach the same, as there is no option,

    while in VF01 screen i have a attchment option where i can attch the file. How to atctivate the same attachment option for the order.

    plz guide

  • RELEVANCY SCORE 2.22

    DB:2.22:File To File Scenario..... js


    if source message has no.of purchase order documents.target message requiresseperate filesfor each document.how can we design this?

    DB:2.22:File To File Scenario..... js

    Hi- Change the messsage type Occurance to unbounded.- Use SPLITBYVALUE node function.still u have doubt give me your mail id i will send u the documents.regardsyugapreetha

  • RELEVANCY SCORE 2.22

    DB:2.22:In Which Order File Events Are Raised j3



    Hello,

    in which order file events are raised? By date of file or in alphabetic order or is it parameterised?

    I need to be sure that the oldest file in one directory which is monitored by a file event is processed first. Can I be sure that a file event works this way even when 500 files are moved to this directory in one moment?

    Kind regards

    Frank Morleo

    DB:2.22:In Which Order File Events Are Raised j3


    Hello Gerben,

    we are using SAP-CPS Build M28.20-37214.

    We had a problem while running a job chain triggered by a file event, when 6000 files were moved to the monitored directory in one moment. Some of the files were put in the queue in the wrong order (alphabetically).

    We got the information from redwood that this could happen from time to time.

    Now we do not use the file name out of the file event but the directory name and sort the files in there with our own redwood script in the order we need it and process the detected file.

    So the file which will be processed next is detected in a script in the job chain and not set by the file event.

    This is quite a good way for us to handle huge amount of file and it works properly.

    Regards

    Frank

  • RELEVANCY SCORE 2.22

    DB:2.22:Attach Pdf To Sales Order pa



    Hi

    How can i attach a document like PDF , Word or Excel file to a sales order?

    Regards

  • RELEVANCY SCORE 2.22

    DB:2.22:How Do I File In Chronological Order a7


    I am writing a book and want to file in chronological order but I can't. This makes finding chapters
    very difficult.

    Can I do this? I have the chapters on a disk but in alphabetical order.

    Lunarray

    DB:2.22:How Do I File In Chronological Order a7

    Hello Lunarray,

    Thank you for using Microsoft Windows Vista Forums.

    What type of application are you using to write your book? If you are using any application from within Microsoft Office I would suggest going to the link provided below at Microsoft Office Community. You can search FAQ's as well as submit questions.

    If you are using a third party program to save your data, have you looked up any information or troubleshooting from their website? Please let us know status. Thanks!

    Discussions in Office General Questions: Word, Excel, Powerpoint, etc...
    http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.office.misclang=encr=US

    James Microsoft Answers Support Engineer Visit our
    Microsoft Answers Feedback Forum and let us know what you think.

  • RELEVANCY SCORE 2.22

    DB:2.22:Combining Values From Multiple Elements j3


    ns0:Header xmlns:ns0=http://TestBts.SchemaOut
    Order
    CompanyNameMicro/CompanyName
    Customsnr1/Customsnr
    Ordernr23/Ordernr
    Price100/Price
    /Order
    Order
    CompanyNameMicro/CompanyName
    Customsnr1/Customsnr
    Ordernr23/Ordernr
    Price250/Price
    /Order
    Order
    CompanyNameMicro/CompanyName
    Customsnr1/Customsnr
    Ordernr25/Ordernr
    Price25/Price
    /Order
    Order
    CompanyNameSoft/CompanyName
    Customsnr2/Customsnr
    Ordernr10/Ordernr
    Price25/Price
    /Order
    Order
    CompanyNameSoft/CompanyName
    Customsnr2/Customsnr
    Ordernr10/Ordernr
    Price25/Price
    /Order
    Order
    CompanyNameSoft/CompanyName
    Customsnr2/Customsnr
    Ordernr25/Ordernr
    Price25/Price
    /Order
    /ns0:Header
    I have a xml file like this.
    I will create a message based on this xml file.

    DB:2.22:Combining Values From Multiple Elements j3

    Hi,
    Please see threadhttp://social.msdn.microsoft.com/Forums/en/biztalkgeneral/thread/f48fe529-77b4-45cf-ac91-c30d2d369a77that may
    help you.
    Regards,
    Tariq Majeed
    Please mark it as answer if it helps

  • RELEVANCY SCORE 2.22

    DB:2.22:Flex File Upload Script, Last Step 89



    So the simple issue here is that I get all indications that that the file uploaded succcessfully, I just don't see the file moved. Everything is 777.

    FLEX:

    ?xml version="1.0" encoding="utf-8"?
    mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" creationComplete="initApp()"

    mx:Script
    ![CDATA[

    import mx.states.*;
    import mx.controls.*;
    import mx.managers.*;
    import mx.events.*;
    import flash.events.*;
    import flash.net.*;

    private const _strUploadDomain:String = "";
    private const _strUploadScript:String = _strUploadDomain + "profile/multiple_upload_ac.php";

    private var _arrUploadFiles:Array;
    private var _numCurrentUpload:Number = 0;
    private var _refAddFiles:FileReferenceList;
    private var _refUploadFile:FileReference;

    private var _winProgress:winProgress;

    private function initApp():void {
    Security.allowDomain("*");
    _arrUploadFiles = new Array();
    }

    // Called to add file(s) for upload
    private function addFiles():void {
    _refAddFiles = new FileReferenceList();
    _refAddFiles.addEventListener(Event.SELECT, onSelectFile);
    _refAddFiles.browse();
    }

    // Called to remove selected file(s) for upload
    private function removeFiles():void {
    var arrSelected:Array = listFiles.selectedIndices;
    for (var i:Number = 0; i arrSelected.length; i++) {
    _arrUploadFiles[Number(arrSelected[i])] = null;
    }
    for (var j:Number = 0; j _arrUploadFiles.length; j++) {
    if (_arrUploadFiles[j] == null) {
    _arrUploadFiles.splice(j, 1);
    j--;
    }
    }
    listFiles.dataProvider = _arrUploadFiles;
    listFiles.selectedIndex = 0;
    if (_arrUploadFiles.length == 0) {
    btnUpload.enabled = false;
    } else {
    btnUpload.enabled = true;
    }
    }

    // Called when a file is selected
    private function onSelectFile(event:Event):void {
    var arrFoundList:Array = new Array();
    // Get list of files from fileList, make list of files already on upload list
    for (var i:Number = 0; i _arrUploadFiles.length; i++) {
    for (var j:Number = 0; j _refAddFiles.fileList.length; j++) {
    if (_arrUploadFiles[i].label == _refAddFiles.fileList[j].name) {
    arrFoundList.push(_refAddFiles.fileList[j].name);
    _refAddFiles.fileList.splice(j, 1);
    j--;
    }
    }
    }
    if (_refAddFiles.fileList.length = 1) {
    for (var k:Number = 0; k _refAddFiles.fileList.length; k++) {
    _arrUploadFiles.push({label:_refAddFiles.fileList[k].name, data:_refAddFiles.fileList[k]});
    }
    listFiles.dataProvider = _arrUploadFiles;
    listFiles.selectedIndex = _arrUploadFiles.length - 1;
    }
    if (arrFoundList.length = 1) {
    Alert.show("The file(s): \n\n " + arrFoundList.join("\n ") + "\n\n...are already on the upload list. Please change the filename(s) or pick a different file.", "File(s) already on list");
    }
    if (_arrUploadFiles.length == 0) {
    btnUpload.enabled = false;
    } else {
    btnUpload.enabled = true;
    }
    }


    // Cancel and clear eventlisteners on last upload
    private function clearUpload():void {
    _numCurrentUpload = 0;
    _refUploadFile.removeEventListener(ProgressEvent.PROGRESS, onUploadProgress);
    _refUploadFile.removeEventListener(Event.COMPLETE, onUploadComplete);
    _refUploadFile.removeEventListener(IOErrorEvent.IO_ERROR, onUploadIoError);
    _refUploadFile.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError);
    _refUploadFile.cancel();
    }

    // Called to upload file based on current upload number
    private function startUpload(booIsFirst:Boolean):void {
    if (booIsFirst) {
    _numCurrentUpload = 0;
    }
    if (_arrUploadFiles.length 0) {
    _winProgress = winProgress(PopUpManager.createPopUp(this, winProgress, true));
    _winProgress.btnCancel.removeEventListener("click", onUploadCanceled);
    _winProgress.btnCancel.addEventListener("click", onUploadCanceled);
    //_winProgress.title = "Uploading file to " + _strUploadDomain;
    _winProgress.txtFile.text = _arrUploadFiles[_numCurrentUpload].label;
    _winProgress.progBar.label = "0%";
    PopUpManager.centerPopUp(_winProgress);

    // Variables to send along with upload
    var sendVars:URLVariables = new URLVariables();
    sendVars.action = "upload";

    var request:URLRequest = new URLRequest();
    request.data = sendVars;
    request.url = _strUploadScript;
    request.method = URLRequestMethod.POST;
    _refUploadFile = new FileReference();
    _refUploadFile = _arrUploadFiles[_numCurrentUpload].data;
    _refUploadFile.addEventListener(ProgressEvent.PROGRESS, onUploadProgress);
    _refUploadFile.addEventListener(Event.COMPLETE, onUploadComplete);
    _refUploadFile.addEventListener(IOErrorEvent.IO_ERROR, onUploadIoError);
    _refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError);
    _refUploadFile.upload(request, "file", false);
    }
    }

    // Called on upload cancel
    private function onUploadCanceled(event:Event):void {
    PopUpManager.removePopUp(_winProgress);
    _winProgress == null;
    _refUploadFile.cancel();
    clearUpload();
    }

    // Get upload progress
    private function onUploadProgress(event:ProgressEvent):void {
    var numPerc:Number = Math.round((Number(event.bytesLoaded) / Number(event.bytesTotal)) * 100);
    _winProgress.progBar.setProgress(numPerc, 100);
    _winProgress.progBar.label = numPerc + "%";
    _winProgress.progBar.validateNow();
    if (numPerc 90) {
    _winProgress.btnCancel.enabled = false;
    } else {
    _winProgress.btnCancel.enabled = true;
    }
    }

    // Called on upload complete
    private function onUploadComplete(event:Event):void {
    _numCurrentUpload++;
    PopUpManager.removePopUp(_winProgress);
    if (_numCurrentUpload _arrUploadFiles.length) {
    startUpload(false);
    } else {
    Alert.show("File(s) have been uploaded.", "Upload successful");
    }
    }

    // Called on upload io error
    private function onUploadIoError(event:IOErrorEvent):void {
    Alert.show("IO Error in uploading file.", "Error");
    PopUpManager.removePopUp(_winProgress);
    _winProgress == null;
    _refUploadFile.cancel();
    clearUpload();
    }

    // Called on upload security error
    private function onUploadSecurityError(event:SecurityErrorEvent):void {
    Alert.show("Security Error in uploading file.", "Error");
    PopUpManager.removePopUp(_winProgress);
    _winProgress == null;
    _refUploadFile.cancel();
    clearUpload();
    }

    ]]
    /mx:Script

    mx:Canvas top="10" bottom="10" left="10" right="10"
    mx:Panel width="300" height="266" layout="absolute" horizontalCenter="0" verticalCenter="0" id="panUpload" title="Select file(s) for upload"
    mx:VBox left="10" bottom="10" top="10" right="10"
    mx:List width="100%" id="listFiles" height="100%" allowMultipleSelection="true"/
    mx:HBox width="100%" horizontalAlign="center"
    mx:Button label="Add file(s).." id="btnAdd" click="addFiles()"/
    mx:Button label="Remove file(s)" id="btnRemove" click="removeFiles()"/
    /mx:HBox
    /mx:VBox
    mx:ControlBar horizontalAlign="right"
    mx:Button label="Upload file(s)" id="btnUpload" click="startUpload(true)" enabled="false"/
    /mx:ControlBar
    /mx:Panel
    /mx:Canvas
    /mx:Canvas


    DB:2.22:Flex File Upload Script, Last Step 89


    So the simple issue here is that I get all indications that that the file uploaded succcessfully, I just don't see the file moved. Everything is 777.

    FLEX:

    ?xml version="1.0" encoding="utf-8"?
    mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" creationComplete="initApp()"

    mx:Script
    ![CDATA[

    import mx.states.*;
    import mx.controls.*;
    import mx.managers.*;
    import mx.events.*;
    import flash.events.*;
    import flash.net.*;

    private const _strUploadDomain:String = "";
    private const _strUploadScript:String = _strUploadDomain + "profile/multiple_upload_ac.php";

    private var _arrUploadFiles:Array;
    private var _numCurrentUpload:Number = 0;
    private var _refAddFiles:FileReferenceList;
    private var _refUploadFile:FileReference;

    private var _winProgress:winProgress;

    private function initApp():void {
    Security.allowDomain("*");
    _arrUploadFiles = new Array();
    }

    // Called to add file(s) for upload
    private function addFiles():void {
    _refAddFiles = new FileReferenceList();
    _refAddFiles.addEventListener(Event.SELECT, onSelectFile);
    _refAddFiles.browse();
    }

    // Called to remove selected file(s) for upload
    private function removeFiles():void {
    var arrSelected:Array = listFiles.selectedIndices;
    for (var i:Number = 0; i arrSelected.length; i++) {
    _arrUploadFiles[Number(arrSelected[i])] = null;
    }
    for (var j:Number = 0; j _arrUploadFiles.length; j++) {
    if (_arrUploadFiles[j] == null) {
    _arrUploadFiles.splice(j, 1);
    j--;
    }
    }
    listFiles.dataProvider = _arrUploadFiles;
    listFiles.selectedIndex = 0;
    if (_arrUploadFiles.length == 0) {
    btnUpload.enabled = false;
    } else {
    btnUpload.enabled = true;
    }
    }

    // Called when a file is selected
    private function onSelectFile(event:Event):void {
    var arrFoundList:Array = new Array();
    // Get list of files from fileList, make list of files already on upload list
    for (var i:Number = 0; i _arrUploadFiles.length; i++) {
    for (var j:Number = 0; j _refAddFiles.fileList.length; j++) {
    if (_arrUploadFiles[i].label == _refAddFiles.fileList[j].name) {
    arrFoundList.push(_refAddFiles.fileList[j].name);
    _refAddFiles.fileList.splice(j, 1);
    j--;
    }
    }
    }
    if (_refAddFiles.fileList.length = 1) {
    for (var k:Number = 0; k _refAddFiles.fileList.length; k++) {
    _arrUploadFiles.push({label:_refAddFiles.fileList[k].name, data:_refAddFiles.fileList[k]});
    }
    listFiles.dataProvider = _arrUploadFiles;
    listFiles.selectedIndex = _arrUploadFiles.length - 1;
    }
    if (arrFoundList.length = 1) {
    Alert.show("The file(s): \n\n " + arrFoundList.join("\n ") + "\n\n...are already on the upload list. Please change the filename(s) or pick a different file.", "File(s) already on list");
    }
    if (_arrUploadFiles.length == 0) {
    btnUpload.enabled = false;
    } else {
    btnUpload.enabled = true;
    }
    }


    // Cancel and clear eventlisteners on last upload
    private function clearUpload():void {
    _numCurrentUpload = 0;
    _refUploadFile.removeEventListener(ProgressEvent.PROGRESS, onUploadProgress);
    _refUploadFile.removeEventListener(Event.COMPLETE, onUploadComplete);
    _refUploadFile.removeEventListener(IOErrorEvent.IO_ERROR, onUploadIoError);
    _refUploadFile.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError);
    _refUploadFile.cancel();
    }

    // Called to upload file based on current upload number
    private function startUpload(booIsFirst:Boolean):void {
    if (booIsFirst) {
    _numCurrentUpload = 0;
    }
    if (_arrUploadFiles.length 0) {
    _winProgress = winProgress(PopUpManager.createPopUp(this, winProgress, true));
    _winProgress.btnCancel.removeEventListener("click", onUploadCanceled);
    _winProgress.btnCancel.addEventListener("click", onUploadCanceled);
    //_winProgress.title = "Uploading file to " + _strUploadDomain;
    _winProgress.txtFile.text = _arrUploadFiles[_numCurrentUpload].label;
    _winProgress.progBar.label = "0%";
    PopUpManager.centerPopUp(_winProgress);

    // Variables to send along with upload
    var sendVars:URLVariables = new URLVariables();
    sendVars.action = "upload";

    var request:URLRequest = new URLRequest();
    request.data = sendVars;
    request.url = _strUploadScript;
    request.method = URLRequestMethod.POST;
    _refUploadFile = new FileReference();
    _refUploadFile = _arrUploadFiles[_numCurrentUpload].data;
    _refUploadFile.addEventListener(ProgressEvent.PROGRESS, onUploadProgress);
    _refUploadFile.addEventListener(Event.COMPLETE, onUploadComplete);
    _refUploadFile.addEventListener(IOErrorEvent.IO_ERROR, onUploadIoError);
    _refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError);
    _refUploadFile.upload(request, "file", false);
    }
    }

    // Called on upload cancel
    private function onUploadCanceled(event:Event):void {
    PopUpManager.removePopUp(_winProgress);
    _winProgress == null;
    _refUploadFile.cancel();
    clearUpload();
    }

    // Get upload progress
    private function onUploadProgress(event:ProgressEvent):void {
    var numPerc:Number = Math.round((Number(event.bytesLoaded) / Number(event.bytesTotal)) * 100);
    _winProgress.progBar.setProgress(numPerc, 100);
    _winProgress.progBar.label = numPerc + "%";
    _winProgress.progBar.validateNow();
    if (numPerc 90) {
    _winProgress.btnCancel.enabled = false;
    } else {
    _winProgress.btnCancel.enabled = true;
    }
    }

    // Called on upload complete
    private function onUploadComplete(event:Event):void {
    _numCurrentUpload++;
    PopUpManager.removePopUp(_winProgress);
    if (_numCurrentUpload _arrUploadFiles.length) {
    startUpload(false);
    } else {
    Alert.show("File(s) have been uploaded.", "Upload successful");
    }
    }

    // Called on upload io error
    private function onUploadIoError(event:IOErrorEvent):void {
    Alert.show("IO Error in uploading file.", "Error");
    PopUpManager.removePopUp(_winProgress);
    _winProgress == null;
    _refUploadFile.cancel();
    clearUpload();
    }

    // Called on upload security error
    private function onUploadSecurityError(event:SecurityErrorEvent):void {
    Alert.show("Security Error in uploading file.", "Error");
    PopUpManager.removePopUp(_winProgress);
    _winProgress == null;
    _refUploadFile.cancel();
    clearUpload();
    }

    ]]
    /mx:Script

    mx:Canvas top="10" bottom="10" left="10" right="10"
    mx:Panel width="300" height="266" layout="absolute" horizontalCenter="0" verticalCenter="0" id="panUpload" title="Select file(s) for upload"
    mx:VBox left="10" bottom="10" top="10" right="10"
    mx:List width="100%" id="listFiles" height="100%" allowMultipleSelection="true"/
    mx:HBox width="100%" horizontalAlign="center"
    mx:Button label="Add file(s).." id="btnAdd" click="addFiles()"/
    mx:Button label="Remove file(s)" id="btnRemove" click="removeFiles()"/
    /mx:HBox
    /mx:VBox
    mx:ControlBar horizontalAlign="right"
    mx:Button label="Upload file(s)" id="btnUpload" click="startUpload(true)" enabled="false"/
    /mx:ControlBar
    /mx:Panel
    /mx:Canvas
    /mx:Canvas


  • RELEVANCY SCORE 2.22

    DB:2.22:I Can't See The Array Element In Actionscript After Updating To Latest Nightly Build sc



    hey guys... so i have a small issue... i just updated to the latest nightlybuild, and for some reason i dont see Array as a datatype in the intelasence...

    When i do type "var temp:Array = new Array()" then i dont get any errors... but when i do "temp. " i dont see any functions that relate to the array datatype... i was wondering if thats a bug? or if its something that was taken out??

    oh, and i can't see Filereferencelist in the intelessence either...

    DB:2.22:I Can't See The Array Element In Actionscript After Updating To Latest Nightly Build sc


    ok, i have no idea why... but it seems to be workign now... thats weird... i didnt do anything and it just started working... so i gues... for now the problem is solved....? lol

    thanks a lot for all your help

  • RELEVANCY SCORE 2.22

    DB:2.22:Words In Txt File In Alphabetical Order j3


    How do i put the words in a txt file in alphabetical order
    using code ?

    DB:2.22:Words In Txt File In Alphabetical Order j3

    Hi,I didnot manage
    nowusethis,it workswell
    Not whatI meanbut okay.

    thanks

    ComboBox1.Sorted
    = True For Each line As String In IO.File.ReadAllLines(C:\som\een.txt)
    ComboBox1.Items.Add(line) Next

  • RELEVANCY SCORE 2.22

    DB:2.22:Writing A File Out Of Order fk


    I have a client application that is sending a file in small chunks to the server. There's no guarantee that they'll get there in the right order. I was wonder if there's any way that I could move the file pointer around and write them out of order. Thanks,
    Dave Johansen

    DB:2.22:Writing A File Out Of Order fk

    Really? Good to know, what does it fill the new space with, nulls?

  • RELEVANCY SCORE 2.22

    DB:2.22:Order Of The Dimensions In The Extension Definition File 89



    Hi

    If I put this in my extension Definiion File:

    Dimension Initial="" DropTarget="Key" / Dimension Initial="" DropTarget="Description" / Dimension Initial="" DropTarget="Path" /

    My extension is created with the dimensions in this order:

    PathDescriptionKey

    If I change the order in my Definition file, my dimension order in the extension does not change.

    How can I set the order of my dimensions in my exension?

    Regards

    Robert

    DB:2.22:Order Of The Dimensions In The Extension Definition File 89


    Hi

    If I put this in my extension Definiion File:

    Dimension Initial="" DropTarget="Key" / Dimension Initial="" DropTarget="Description" / Dimension Initial="" DropTarget="Path" /

    My extension is created with the dimensions in this order:

    PathDescriptionKey

    If I change the order in my Definition file, my dimension order in the extension does not change.

    How can I set the order of my dimensions in my exension?

    Regards

    Robert

  • RELEVANCY SCORE 2.22

    DB:2.22:Help To Loop An Array k3


    Hello,

    I started to develop my own Flash file uploader and hit a snag perhaps you guys can see what I doing wrong. This is a multiple file upload and I want to populate a list element with the select files (file name, size and so on). So at the moment myList is getting the result of "[object FileReference],[object FileReference],[object FileReference]" and so on depending on how many files I selected.

    So things I can gauge from what I am seeing is

    1 My loop is not going through my selectedFilesArray and

    2 I need to add the file name to the list but adding myList.addItem ({label:selectedFilesArray[i].file.name}); doesnt work

    Any Ideas?

    Here is my AS3 code

    stop();

    browseBtn.addEventListener(MouseEvent.CLICK, fileBrowser);

    function fileBrowser(event:MouseEvent){

    var myFile:FileReference = new FileReference();

    var myFiles:FileReferenceList = new FileReferenceList();

    myFiles.browse();

    myFiles.addEventListener(Event.SELECT, selectedHandler);

    function selectedHandler(event:Event):void {

    var selectedFilesArray:Array = new Array(myFiles.fileList);

    var i:int;

    for (i=0; iselectedFilesArray.length; i++){

    myList.addItem ({label:selectedFilesArray[i]});

    };

    }

    }

    DB:2.22:Help To Loop An Array k3


    I solved both problems just for interest sake here is the code.

    stop();

    browseBtn.addEventListener(MouseEvent.CLICK, fileBrowser);

    function fileBrowser(event:MouseEvent){

    var myFile:FileReference = new FileReference();

    var myFiles:FileReferenceList = new FileReferenceList();

    myFiles.browse();

    myFiles.addEventListener(Event.SELECT, selectedHandler);

    function selectedHandler(event:Event):void {

    var selectedFilesArray:Array = new Array();

    selectedFilesArray = myFiles.fileList;

    var i:int;

    for (i=0; iselectedFilesArray.length; i++){

    myFile = seletedFileArray[i];

    myList.addItem ({label:myFile.name});

    };

    }

    }

  • RELEVANCY SCORE 2.22

    DB:2.22:Readdirectorychangesw File Creation Event - Order In Case Of Multiple File Creation k8


    Hello,
    IsReadDirectoryChangesW detects file creations in order in case of multiple file copy/move to target directory ?

    DB:2.22:Readdirectorychangesw File Creation Event - Order In Case Of Multiple File Creation k8

    Hi,
    Thanks for posting here.
    Do you mean that if the ReadDirectoryChangesW detect the file creation timestamp when multiple files are copied or moved to a target directory?
    As far as I know,the ReadDirectoryChangesW function tells you about changes to the directory; if something happens that doesn't change the directory, ReadDirectoryChangesW will not tell you anything. If you want to track all the changes, I think change
    Journals may be helpful for you.
    And the links below may help you more.
    http://blogs.msdn.com/b/oldnewthing/archive/2011/08/12/10195186.aspx
    Understanding ReadDirectoryChangesW
    MayWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click
    HERE to participate the survey.

  • RELEVANCY SCORE 2.22

    DB:2.22:When Viewing A Pdf Document In Firefox, The Pages Are Displayed In Reverse Order. xm



    If I save file onto PC and open that file, pages are in normal order

  • RELEVANCY SCORE 2.22

    DB:2.22:Order Prefix 97


    In which file can i found catalog and order and commerceitem prefixes ,example for order o34343 and for catalog cat22344 so where these prefixes are available and in which file

    DB:2.22:Order Prefix 97

    There will be idpspaces.xml in every module. Every module at its path /atg/dynamo/service in config directory will have item-descriptors belonging to that module repository xml.

    Atg just combines all of them in that path.

    If you just want to change what order has, just create xml file in that path in config dorectory of your module and over ride with your own prefix and suffix.

    Good luck

    Karthik

  • RELEVANCY SCORE 2.22

    DB:2.22:Fileref Time Error c8



    I'm uploading multiple files to my server with the fileReferenceList.

    If all uploads hasn't finished in 60 sec I get a error message, (Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.)

    I read that this is due to a script slowing flash down and I could get around it by doing another function behind the upload script, but I still can't get it to work. Is there a way around it?

    DB:2.22:Fileref Time Error c8


    I'm uploading multiple files to my server with the fileReferenceList.

    If all uploads hasn't finished in 60 sec I get a error message, (Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.)

    I read that this is due to a script slowing flash down and I could get around it by doing another function behind the upload script, but I still can't get it to work. Is there a way around it?

  • RELEVANCY SCORE 2.22

    DB:2.22:Select Order From Text File 1j


    Is it posible to write select order from text file( exactly the select order from DB)?
    I will thank if somebody give me link to read about this subject

    DB:2.22:Select Order From Text File 1j

    Google takes me [to this|http://www.csv-jdbc.com/stels_csv.htm]

  • RELEVANCY SCORE 2.22

    DB:2.22:Filereferencelist Or Filereference Class? 7m


    Will the FileReferenceList class or FileReference Class work
    for this issue:?

    I am working on a kiosk project that will be updated
    dynamically. Is there a way to have flash detect what is in a
    folder before I have the shell play through the sub files. I know
    you can set it up through xml and have it go through a list but I'd
    rather use that option as plan b. The project is dealing with
    kiosks in hundreds of locations and some locations will be playing
    different file then others. If I could get my shell to just play
    whatever is in a folder then that would be ideal (playing whatever
    is in that subdirectory). all files will be installed and run on
    the client computers. Thanks in advance for any help on this
    issue.

    DB:2.22:Filereferencelist Or Filereference Class? 7m

    hooo.. sorry I'm still not used to the new flash 8
    functions...

  • RELEVANCY SCORE 2.22

    DB:2.22:Change Page Order Of Combined File c8


    I want to know how to change the order of a combined pdf file

    DB:2.22:Change Page Order Of Combined File c8

    HI,Changing the order of PDF can be done with Adobe Acrobat. Please download Acrobat XI Pro trial version from www.adobe.com or you can upgrade your subscription to Acrobat Plus( please see more information at https://www.acrobat.com/acrobatplus/en/features.html?promoid=KIUAY)How to move pages in PDF 1. Open your PDF in Acrobat2. Open "Page Thumbnails"3. Drag the page thumbnail and drop it to new locationHisami