Flex, URLRequest and Fusebox

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

bump.

Similar Messages

  • Flex SDK and AIR runtime version in mobile

    Hi, guys.
    I'm trying to make my first Flex mobile app.
    I'm a little confused about the relationship between Flex SDK and AIR  runtime versions for mobile development.
    In the "Developing Mobile Applications with ADOBE FLEX 4.6 and ADOBE FLASH BUILDER 4.6" pdf document, it says:
    "AIR requirements
    Flex mobile projects and ActionScript mobile projects require AIR 2.6 or a higher version. You can run mobile projects on physical devices that support AIR 2.6 or a higher version of AIR.
    You can install AIR 2.6 or a higher version only on supported Android devices that run Android 2.2 or a higher version. For the complete list of supported Android devices, see Certified Devices. Also, review the minimum system requirements to run Adobe AIR on Android devices at Mobile System Requirements.
    Note: If you do not have a device that supports AIR 2.6 or a higher version of AIR, you can use Flash Builder to launch and debug mobile applications on the desktop."
    So, I go and check the Certified devices in http://www.adobe.com/devnet-apps/flashruntimes/certified-devices.html and find that the minimun FLASH PLAYER version accepted by ALL devices is FP 10.1
    1. Does this mean that if I want to release an app to target ALL mobile devices, then I can only use Flex 4.5?
    2. Do support for Flash Player mean the same than support for Adobe AIR? Or the application will prompt the user to install whatever version of the AIR runtime and all of them would be supported by the device, even in the FLASH PLAYER support is for a lesser version?
    Thanks!

    Thanks for your help, Flex harUI,
    The first impression that comes to mind is that FP version is indeed only for the web browser plugin. Then, why does the official Flex 4.6 mobile development documentation have a link to that page that only speaks about the supported FP version in mobiles under the title "AIR requirements"??
    This makes it way too confusing.
    Do you know whether there is something like an equivalent matrix/list of mobile devices with their supported AIR runtime versions?  I went a great deal in trying to keep my original app under 400kb... I didn't know that in the end it would end up weighing 9.5Mb... :S
    Thanks again,

  • Flex 2 and Actionscript 3  Workshop in LA

    It's a late notice, but important to any Flash professional
    out there. I just want everyone to know about this rare
    opportunity. Fly out to LA if you have to!
    Flex Builder 2 & Action Script 3 Training Workshop
    Date: Thu, Fri, & Sat, May 11,12, & 13 (9a-5p, ~20
    classroom hours)
    Location: Venice, California 90291
    Instructor: Zach Stepek
    Price: $690
    Description: Flex expert and Stateline (Illinois) Macromedia
    User Group Manager Zach Stepek will lead an in-depth three-day
    workshop on the new generation of Flex -- the first tool for the
    Flash Platform that utilizes the awesome processing power of AS3!
    --

    Might be an idea to post this in the Flex2 or AS3 forums
    where people who
    are interested in these can read it.
    "JonJonMenendez" <[email protected]> wrote
    in message
    news:e3ouru$fm1$[email protected]..
    > It's a late notice, but important to any Flash
    professional out there. I
    > just
    > want everyone to know about this rare opportunity. Fly
    out to LA if you
    > have to!
    > Flex Builder 2 & Action Script 3 Training Workshop
    > Date: Thu, Fri, & Sat, May 11,12, & 13 (9a-5p,
    ~20 classroom hours)
    > Location: Venice, California 90291
    > Instructor: Zach Stepek
    > Price: $690
    > Description: Flex expert and Stateline (Illinois)
    Macromedia User Group
    > Manager Zach Stepek will lead an in-depth three-day
    workshop on the new
    > generation of Flex -- the first tool for the Flash
    Platform that utilizes
    > the
    > awesome processing power of AS3! --
    >

  • Flex 3 to Flex 4 migration issue (Flex charting and Special char)

    Hi All,
    I have migrated Flex 3 to Flex 4 and in Flex charting axis label, I am not able to see less then sign ( < ). I tried to use &lt;  but it's not working, I have attached sample code.
    <?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" initialize="init()">
         <fx:Declarations>
             <s:SolidColor id="s1" color="#738994"/>
             <mx:SeriesInterpolate id="seriesInterpolate" duration="800"/>
             <mx:SeriesSlide id="seriesSlide" duration="800" direction="up"/>
             <mx:SeriesZoom id="seriesZoom"
                            duration="1000"
                            minimumElementDuration="50"
                            elementOffset="50"
                            verticalFocus="top"
                            horizontalFocus="left"
                            relativeTo="chart"/>
         </fx:Declarations>
         <fx:Script>
            <![CDATA[
                 import mx.collections.ArrayCollection;
                 [Bindable]
                 public var student:ArrayCollection = new ArrayCollection([
                     {Stream: "Management", Girls:1000, Boys:1400, TotalStudent:2400},
                     {Stream: "&lt;Computer Science", Girls:800, Boys:1200, TotalStudent:2000},
                     {Stream: "< Mechanical", Girls:200, Boys:1500, TotalStudent:1700},
                     {Stream: "> Electical", Girls:800, Boys:850, TotalStudent:1650},
                     {Stream: "Electronics", Girls:500, Boys:1000, TotalStudent:1500},
                     {Stream: "Civil", Girls:300, Boys:900, TotalStudent:1200}
                 private function update():void {
                     var str:String = catfDP.selectedItem.data;
                     if(str == "Girls"){
                         cs1.yField = str;
                         cs1.displayName = str;
                         cs1.setStyle("fill" , "738994");
                     }else if(str == "Boys"){
                         cs1.yField = str;
                         cs1.displayName = str;
                         cs1.setStyle("fill" , "999990");
                     }else{
                         cs1.yField = str;
                         cs1.displayName = str;
                         cs1.setStyle("fill" , "406374");
                 private function init():void{
                     catfDP.selectedIndex= 0;
                     effectDP.selectedIndex= 0;
             ]]>
         </fx:Script>
         <s:Panel title="Chart Effect Example" width="627" height="565">
             <s:layout>
                 <s:VerticalLayout/>
             </s:layout>
             <mx:ApplicationControlBar dock="true" width="625" height="82">
                 <mx:Form>
                     <mx:FormItem label="Category Field:">
                         <s:DropDownList id="catfDP" change="update();" prompt="--Select--" width="136"
                                         height="19">
                             <s:dataProvider>
                                 <mx:ArrayList>
                                     <fx:Object data="Girls" label="Girls" />
                                     <fx:Object data="Boys" label="Boys" />
                                     <fx:Object data="TotalStudent" label="TotalStudent" />
                                 </mx:ArrayList>
                             </s:dataProvider>
                         </s:DropDownList>
                     </mx:FormItem>
                     <mx:FormItem label="Choose Chart Effect:">
                         <s:DropDownList id="effectDP" change="update();" width="136" prompt="--Select--">
                             <s:dataProvider>
                                 <mx:ArrayList>
                                     <fx:Object label="seriesInterpolate" data="{seriesInterpolate}" />
                                     <fx:Object label="seriesSlide" data="{seriesSlide}" />
                                     <fx:Object label="seriesZoom" data="{seriesZoom}" />
                                 </mx:ArrayList>
                             </s:dataProvider>
                         </s:DropDownList>
                     </mx:FormItem>
                 </mx:Form>
             </mx:ApplicationControlBar>
             <mx:ColumnChart id="cchart"
                             dataProvider="{student}"
                             showDataTips="true"
                             width="621"
                             fontFamily="verdana" height="402">
                 <mx:verticalAxis>
                     <mx:LinearAxis title="Number of Students" />
                 </mx:verticalAxis>
                 <mx:horizontalAxis>
                     <mx:CategoryAxis dataProvider="{student}"
                                      categoryField="Stream"
                                      title="Stream"/>
                 </mx:horizontalAxis>
                 <mx:series>
                     <mx:ColumnSeries id="cs1"
                                      xField="Stream"
                                      yField="Girls"
                                      displayName="Girls"
                                      fill="{s1}"
                                      showDataEffect="{effectDP.selectedItem.data}"/>
                 </mx:series>
             </mx:ColumnChart>
             <s:HGroup>
                 <mx:Legend dataProvider="{cchart}"
                            direction="horizontal"/>
                 <s:VGroup>
                 </s:VGroup>
             </s:HGroup>
         </s:Panel>
    </s:Application>

    Thank you very much for you answer.
    I have solved this problem using Itemrenderer.
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx"
                    autoDrawBackground="true">
        <mx:Label htmlText="{data.text}"/>
    </s:ItemRenderer>
    and in chart I have used labelRenderer. in label I have used  &lt; for ( < ) sign.
    <mx:horizontalAxis>
                    <mx:CategoryAxis
                        dataProvider="{expenses}"
                        categoryField="Month"
                        title="FY 2006"
                        id="a1"
                        />
                </mx:horizontalAxis>
                <mx:horizontalAxisRenderers>
                    <mx:AxisRenderer labelRotation="45" axis="{a1}" labelRenderer="chase.BarChartLabelRenderer"/>
                </mx:horizontalAxisRenderers>
                <mx:verticalAxisRenderers>
                    <mx:AxisRenderer labelRotation="45" axis="{a1}" labelRenderer="chase.BarChartLabelRenderer"/>
                </mx:verticalAxisRenderers>

  • WORKING example of BlazeDS with Flex 3 and FlexBuilder

    Can someone point me to an actual working example with BlazeDS used with Flex 3 and Eclipse?
    The examples on livedocs are broken or imcomplete. Others work to varying degrees but fail at some point.
    What I'd like to see is the following:
    1. How to create a project using
         a. Flex 3.0
         b. BlazeDS
         c. Eclipse - FULL project creation and deployment instructions.
         d. An example where the project is NOT created within the BlazeDS webapp that comes with the BlazeDS/Tomcat combo.
         e. An example where the ENTIRE project can be compiled and deployed to Tomcat in one shot.
         f.  An example where a DB can he altered using standard CRUD methods with the display displaying updated records without and event being used to
             refresh the view of the records.
    This shouldn't be too much to ask if Flex is to be expected to be taken seriously in data-driven applications. I've looked all over the web for weeks for something likethis and have come up with nothing. I don't need Spring or Hibernate at this point. Any help would be greatly appreciated as I'm working on a proof-of-concept at this time and the pressure is mounting to come up with something.
    Thanks!

    here is some stuff I wrote while back(they both have recorded video you can watch);
    http://ledtechdesign.com/2009/02/blazeds-tutorial-part-i-simple-remoting/
    http://ledtechdesign.com/2009/02/tutorial-blazeds-simple-remoting-part-ii-flex/

  • Flex 3 and Java - Integrated Development on Eclipse

    I am new to flex as well as to eclipse. I have downloaded
    Adobe Flex Builder 3.0 and installed it. I want to use java at the
    back-end, but I don't have Java perspective option in eclipse.
    Therefore, I am currently using 2 IDE(s), one is
    flex-builder, and other is Eclipse for Web tool platform
    (eclipse-jee-europa-winter-win32.zip).
    Is there anyway that I can benefit integrated development of
    Flex and java using same IDE?

    I wouldn't try it really... it's not worth the issues you'd
    probably run into and the work of getting it setup, if it's even
    possible. I just run Eclipse and FB separate. If you have a gig of
    ram you should be fine doing this I think.
    If you *really* want to get rid of one, you can use the Flex
    plugin for Eclipse, but I've heard people complain about it not
    playing nice with Java.

  • Flex 3 and LCDS Integration

    Hello,
    I am trying to build an application which needs remoting. I
    was trying to implement this using Flex 3 and LCDS.
    I have some experience with flex, but I am pretty new to
    LCDS. Can any one please direct me to a good tutorial on getting a
    web app to work with flex and lcds? The documentation on Adobe
    website doesn't help much.
    Thanks in advance
    Cheers
    Phanindra

    The documentation should help,
    why not start with something simple with Blaze-DS??
    Ries

  • Protected Flex field and Custom Views

    Hi,
    I have created some project variables in oracle bpm 11.1.1.6.0 project.After deployment, these variables are coming as Protected flex field but for some reason these are not visible when I define custom views.
    I also tried creating Protected flex field on BPm workspace, mapped these variables to human task payload, yet again when creating custom view i cannot see them.
    This problem is only happening with protected flex field and not public flex field.
    Please let me know how to add protected flex fields in custom view.
    Regards...

    why do you think it's an apps question?

  • Flex SDK and commercial Websites

    Hello,
    I have to build and RIA for a Companys Intranet and i am not sure, if it is legal or possible to do so for free with the Flex SDK?
    I also would like to know, whats the difference between the Free Adobe Flex SDK and the OPen Source Flex SDK? Which of those do i need to
    create the website for free? (If its possible).
    Thanks in advance!

    Thanks for your help, Flex harUI,
    The first impression that comes to mind is that FP version is indeed only for the web browser plugin. Then, why does the official Flex 4.6 mobile development documentation have a link to that page that only speaks about the supported FP version in mobiles under the title "AIR requirements"??
    This makes it way too confusing.
    Do you know whether there is something like an equivalent matrix/list of mobile devices with their supported AIR runtime versions?  I went a great deal in trying to keep my original app under 400kb... I didn't know that in the end it would end up weighing 9.5Mb... :S
    Thanks again,

  • Flex Dashboard and Using Flex in a Portal Environment

    Hello
    I am looking to develop Flex dashboard and use Flex in a Portal environment.
    If you any thoughts or information, kindly let me know or some insight.
    Thanks and regards

    fac586 wrote:
    #WORKSPACE_IMAGES# isn't substituted in CSS files stored in the repository. See this [previous discussion|http://forums.oracle.com/forums/thread.jspa?forumID=137&threadID=221653] (and others if you search for them).
    Thanks for the link, I did search a little while before making the original post. I guess I wasn't searching for the right thing though.
    The method I found listed in here seems to work in IE but not Firefox. It could just be a caching issue though I'm not real familiar with firefox and don't really know how to get it to forget that it's been to a page already.
    I also updated the link listed above to ask about any changes in the last upgrade related to this.
    This was related to caching in firefox and it worked fine after I logged out of my apex.oracle.com account and cleared the personal cache in firefox and then started over.
    Edited by: PktAces on Sep 9, 2008 3:06 PM

  • Error 2032 in communication between Flex Client and WCF

    Hi All,
    I'm trying to establish communication between Flex Client
    and WCF service.
    WCF service accepts gZip compressed data and returns gZip
    compressed results.
    So I used Flex ByteArray.compress() and
    ByteArray.uncompress() for this purpose. However, it throws error
    2032.
    The gZip compression/decompression uses MemoryStream class in
    C#. Based on my previous experience, memory stream communication
    between Flex and C# gives erro 2032.
    Is there a work around for this?
    Thanks,
    Vishal

    I read some thread in the forum, and found somebody had the similar problem with me. Just want to know how to settle this problem.
    In the client/server program. Client is a JAVA program and Server a
    VC++ program. The connection works, and the problem appears after some time. The Client sends a lots of requests to Serverm, the server seems receive nothing. But at the same time, the server is able to send messages to Client. The Client also can get the messages and handle them. Don't understand why there this problem and why it appears when it wants.
    The client is a Win2k platorm with JDK1.3.1 and the server is also a Win2K platform with VC++ 6.0.
    In the Client, using:
    inputFromServer = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    outputToServer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())),true);
    Hope can get your help.

  • Flex mobile and PHP project

    Hi! Recently I've downloaded the Flash Builder for PHP to work with my Zend Server remotely located in OpenShift online. I did not  download and install the Zend Server physically on  my computer. Hence, when creating the Flex mobile and PHP project, I couldn't find my web root address. Now I have an error connecting to the MySQl database in the server from the Flash Builder. Can someone help me with this? I'm new to using these programs.
    I'm following this guide on building mobile apps:
    http://files.zend.com/help/Flash-Builder-for-PHP/Getting-Started/Mobile/build_a_mobile_(ph p)_application.htm#Step_13:_Preview_the_Mobile_Application_Using_the_Desktop_Emulator

    PHP is server side.
    If you want to have a app to function offline you would probably need sqlite and then code actionscript to synch data when the device regains it's connectivity.

  • Flex SDK and online emulation coding, your opinion on my project

    Hi to everybody,
    I'm an actionscript developer and I've started a project 2 years ago.
    Since I wanted to test dynamic bitmap generation, I started this path by coding a graphic driver that emulates some old graphic chip used in consoles.
    I could see it can work very well in AS3, so thanks to Flex SDK and FDT I have coded some more complex emulators.
    Llittle by little I've built some classes that emulate some more chips such as SN76489, AY-3-8910, Konami SCC, Namco, TMS9918/TMS9928 and other graphic drivers for arcade emulation.
    There are few project around the web on this subject, some of them such as fMAME are done thanks to Alchemy but, mine is pure AS3 with a lot of otimization, simple code, byte code friendly structures and a lot of caching methods.
    The audio has to be fixed, I still haven't find a good caching way to play the audio generated by emulated sound chips with the streaming feature of flash player. To increase quality and fidelity, I need to rise the buffer, but the delay between a graphic event and its corresponding sound rises too...
    Unfortunately on some old PC and some netbook they are a little slow because they use a lot of CPU and memory. I will be very glad if you can tell me your opinin about this work and eventually your PC configuration you are playing with.
    These are the four consoles/computer I've emulated:
    SEGA SC-3000/SG-1000: http://www.play-sc-3000.com
    SEGA Master System: http://www.digimorf.com/ASms
    MSX 1: http://www.digimorf.com/ASReplay_MSX
    CBS ColecoVision: http://www.digimorf.com/fcv
    And these are some MAME concept based arcade games. To play with these ones you need to use te same control keys of MAME:
    - Click on monitor to focus flash player
    - 5 or 6: Insert Coin
    - 1 or 2: no. of player to start
    - Arrow keys: move
    - X, C: fire buttons 1, 2
    http://www.digimorf.com/FlaME/pacman.htm
    http://www.digimorf.com/FlaME/pacman3D.htm - This uses Away3d for the 3d interactive cabinet, you can rotate and play snce the emulator itself is mapped on the screen object.
    http://www.digimorf.com/FlaME/ladybug.htm
    http://www.digimorf.com/FlaME/pengo.htm
    http://www.digimorf.com/FlaME/crushroller.htm
    http://www.digimorf.com/FlaME/bombjack.htm
    http://www.digimorf.com/FlaME/solomon.htm
    Hope you enjoy them!

    You can set the maximum number of connections by using:
    ServerSocket server = new ServerSocket( port, backlog );
    Where backlog is the number of connections at any one time. I'm not sure - but I'm guessing that the physical limit is dictated by your hardware. Once you queue is full of connections, you are right - any further connections are refused. The default number of connections is 50.
    Mike

  • Flex 2 and SCORM

    Does anyone know if Flex 2 is setup to be SCORM compliant?
    Working for the USAF all of our new developments need to be and if
    we could with Flex 2 and still be SCORM compliant that would be one
    headache down.
    Thanks

    Hey maddogg,
    I believe that Flex 2 IS SCORM compliant. There isn't much
    out there about it. I've got a friend whose company is developing
    an LMS with a Flex front end, and we are researching at my company
    to look at going in that direction as well. I'll come back and
    update this as I find any further information.
    Let me know if you've found any resources...

  • Flash Pro CS5  Convert to Flex Component and SWC export

    Hi,
    my question is about the Flash Pro CS5 and Flash Builder 4 (Flex 4) integration.
    My goal is simple - to make a simple graphic in a MovieClip and then export that for use in Flash Builder 4. I found out I have 2 ways of doing that:
    1) -> create the MovieClip with the graphic
        -> export it for ActionScript with a name of the class
        -> select the symbol in the library again and export SWC file. Total size of this SWC in my example is 24kb.
        -> put the SWC in the libs folder and use the class/component which should be put inside SpriteVisualContainer or UIMovieClip
    2) -> create the MovieClip with the graphic
        -> export it for ActionScript with a name of the class
        -> select it in the libraly and then select Commands -> Convert Symbol to Flex Component
    Now here we can do 2 things:
        -> select the symbol in the library and export SWC file. Total size here is 104kb.
        -> publish the whole project and use its SWC file.
    And last:
        -> put the SWC in the libs folder and use the class/component wherever you want because it's already extending UIMovieClip.
    So My point is that with the first way I need to use just one simple container to put my component into and I save like 80 kb. Why would I want to use the second way, just to be more comfortable or there are other reasons too?
    I was thinking that maybe I could put more flex converted components in the fla file so I would then export the swc with all of them being already flex components and that 80kb will be shared for all of them, which makes sense of using this feature, but if someone could confirm my thinking is right or there was some other better purpose or way of doing things in an optimised way, I will be glad to hear them. Thanks!

    Hi,
    I am using the first option while converting from flash to flex. Its easy and it saves lots of memory.

Maybe you are looking for

  • My imac turns it self back on almost immediately after putting it to sleep.  Why and how do I fix it?

    This is new as of a few days ago.  I can't find anything in preferences to make it better nor did I change any setting.  Not sure what's going on.  The computer seems to be working fine except for that.

  • Sudden 0.2mb connection

    Hey guys and gals. My problem has only been happening maybe a week and a half. I usually have between a 3mb to 5mb connection, this has nose dived to 0.2mb. I have tried resetting the hub both standard and to defaults. I have noticed my home hub also

  • New "feature" in 3.0.2

    has anyone else noticed in 3.0.2 that in the main menu whenever you go select a category it always defaults to "Top" movies - "Top" music etc ? I expect it to land on "My" music - 'My' movies etc, where I last was in that category, I'm continually se

  • Where is the Nagios add on toolbar ?

    Hello, I used to have my Nagios add on toolbar on the bottom of Firefox. Since the version 29, Nagios toolbar has disappeared. Looked at the FAQ, and none of the answers helped me. When I try to customize my menu, or try to "display/undisplay" toolba

  • Deadlock in gui code

    My gui code hung and wouldn't respond so I took a thread dump. I noticed this: Found one Java-level deadlock: ============================= "AWT-EventQueue-0": waiting for ownable synchronizer 0x00000007c4535e78, (a java.util.concurrent.locks.Reentra