1 Reply Latest reply on Dec 4, 2007 2:21 PM by WestSide

    Flex, URLRequest and Fusebox

    WestSide Level 1
      Hi,

      I am doing some Flex and CF work here. I am using CF 8 and Flex 3 beta.

      I am building this file upload component in Flex where the user can upload a file. I got the code working but it only seems to work when I call my CF based upload script (essentially a CFFILE tag) directly. Since I am using Fusebox everything goes through index.cfm.

      private var _fileRef:FileReference = new FileReference();
      private var _request:URLRequest = new URLRequest(" http://localhost/mysite/index.cfm?fuseaction=employee.upload_portfolio");

      So essentially I am trying to call a fuseaction that will in turn call the actual .cfm page which contains the <CFFILE> tag. How can I do this? Again it works just fine if I call the .cfm page directly in the URLRequest() method, but I would much rather call a fuseaction. Any idea on how to do this? I tried the above, but it does not seem to work, I got a File I/O run-time error.

      -Westside