RDS - Flex 2 errors

Arrrgggg. This is driving me nuts. Using Win2K3 with all
updates, IIS6, web xml file is not commented, server ports 80 and
8500 fail, tried using IP, reinstalled CF, DW and CF Admin will
connect using RDS, password reset, java update. Nothing works and
it's driving me insane, In the RDS cofiguration of Flex I get the
"can't connect to RDS" error.
I want to use Flex, I really do, but it shouldn't be this
hard to configure using a Win2K3 and IIS6 setup.

Hi, I had the same difficulties in a previous post last week
(look for if you like) and received this answer which seems
comprehensive -- but I have not put it into effect just yet
(working with the localhost for now).
Not sure if it helps (I'm a clueless noob at the moment) but
getting there slowly. . . .
As it is on port 8300 it sounds like you performed a JRun
install and used the built in ColdFusion web server. I would not
recommend doing that. I would suggest installing Apache or
configuring IIS. Then reinstall ColdFusion and chose to run the web
server connector. That way you can have it running on the standard
port 80. If you do not like IIS, Apache for Windows in version
2.2.6 also has OpenSSL built in if you wanted to test with SSL.
When you get to the point where it asks you to choose the web
root if it is not actually pointing to your wwwroot (htdocs for
apache) directory make sure to point it there as this is where it
will install your CFIDE directory and it is handy to have that in
your web root rather then having to remap it later.
Make sure that when it prompts you to set a password for the
RDS that you do. You will need it for flex builder.
Sounds like you have already figured out how to create a DSN
so I will skip that. Just make sure that they validate.
Once all that is done I suggest one other thing. Flex needs
access to the services-config.xml file to compile. You will hear
lots of advice about copying it over to your local system in a fake
directory. I find it better to share out the directory it is in on
the server and then point FlexBuilder to that directory. That path
is C:\ColdFusion8\wwwroot\WEB-INF\flex\services-config.xml by
default. But you will want to just share out the ColdFusion8 Folder
itself.
Then share out your webroot. For IIS I believe that is just
c:\wwwroot. Just share the folder under the same name is fine.
Make sure you can get to each of the folders over the network
using their UNC paths. The reason for this will become clear later.
Or at least less foggy.
Once all that is done move to your Development workstation.
Open a command prompt and make sure that you can ping your server
by Name. IP addresses are ok but it is better to use the name in my
opinion. If you do not have local DNS resolving names you can
configure your systems Hosts file to point to that servers IP
address for any given web URL you would like.
On your workstation when you install flex builder make sure
to choose to install the ColdFusion Extensions for FlexBuilder.
Then open flex builder. I use Flex Builder 3 Beta 3 so if you
are using version 2.01 your screens will differ.
Click File > New > Flex Project
Provide a project name. Anything is fine for now this is just
a test.
Example: mycoolnewflexsite
Choose the default location for the workspace or choose
another location. It does not really matter where you put the
workspace. Just don't forget where you put it if you change it's
default location. Your workspace is not the same as your WebRoot.
The Work space is Flex's location where it keeps your configuration
information about your projects and it's UN-Compiled source files.
Choose ColdFusion for the server technology and Select
ColdFusion Flash Remoting for this instance.
Click next.
On the next screen it is going to ask you which installation
type. My install uses a standalone server. Sounds like yours is
JRun which I believe means you have to choose Deployed to J2EE. You
will want to look that up. Either way there is not too much
difference in the screens.
For the standalone these are the settings I use.
UNCHECK the "Use default location for local
ColdFusion server".
In the field put in the UNC path to the shared ColdFusion8
Folder on our development server.
Example: \\MyServerName\ColdFusion8
This way FlexBuilder has access to that services-config.xml
we were talking about through the UNC path. No need to copy it over
to your workstation and you can keep it consistant amongst
developers this way.
Uncheck the Use built-in ColdFusion web server
for the Web root use the shared webroot from your server you
shared out above and the name of the root file for your sites
folder inside that shared directory.
Example: \\MyServerName\wwwroot\MyCoolNewFlexSite
For the Root URL you will want the actual URL that you will
be using to get to your website.
http://www.mycoolnewflexsite.com
(Again your DNS should be pointing to your local development
servers ip address and not the real world web address for your
site. If you do not have DNS running in your network then use your
local workstations Hosts file to simulate the same thing.)
Down below that will be a field called "Output
folder". This is where flex is going to put the files that
it Compiles. For this you will want to have the same exact path as
the Web Root. It may already be in there with a debug folder
attached to the end. I prefer to take off the debug folder and just
make it exactly the same as my web root path.
By using the UNC paths instead of local files this allows
FlexBuilder to compile directly to the servers wwwroot directory
you will be testing the files from. No need to transfer the
compiled files this way. Might not make your network admin happy
but you will have at least two weeks before your network admin can
figure out where the extra traffic is coming from and then only if
they are well above average. And trust me I know wherefore I speak
about network admins. Odds are they will never figure it out and if
they do it just gives you reason to have them install a gigabit
switch and hook you up to the server at a faster pace. It's part of
the work requirements RIGHT?!
OK so after you have those paths in place click on validate
configuration. You may get a warning about there already bing a bin
directory but just ignore that and move on.
click next.
On the next screen for the main source folder I prefer to
erase the default src it uses. That's up to you.
For the main application mxml file just use whatever is there
for now. You can always change it later.
For the Output folder URL change it to the URL of your site.
I.E.
http://www.mycoolnewflexsite.com
Then click finish.
FlexBuilder will open up your applications main MXML file. To
test if it is working you should be able to just add in a text line
and click the compile button.
<?xml version="1.0"
encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Text id="hw"
text="Hello World!" />
</mx:Application>
If all goes well it will pop open your browser to the URL
from your development server with your compiled Hello World
displayed. If you get that far you are almost home.
Still a bit more though.
So once this is cone click on Window > Preferences and
then click the + next to ColdFusion and click RDS Configuration.
In the RDS configuration highlight localhost and just click
remove.
Then click new button.
For Description put in the Name of your development server.
For the Host Name also put in the name of your development
server
For the port choose port 80 (Assuming you set up IIS or
Apache as recommended.)
Assuming you have not yet set up multiple users in ColdFusion
Administrator then your User Name is going to be simply
"admin".
Put in your password you set up for the RDS password when you
were installing ColdFusion Server.
Click on Test Connection. If it tests out then you will have
just completed your install. The Test Debugger will not work until
you turn on Debugging in the ColdFusion server Administrator. I
will let you figure that out on your own as I am getting tired of
typing.
I realize that's a lot but once you have done it 3 or 4
hundred times it becomes second nature.
Hope that helped and did not muddy the waters. I realized as
I was typing that this really is not a good explanation without
pictures. Next time I do a development install I will have to take
screen shots I guess.
- Joe

Similar Messages

  • Flex Error #1001: Digest mismatch with RSL error

    I apologize if this is not the correct location for this question but it was the closest I could find.
    I am working in salesforce trying to add a new content pack.  This screen uses a tool written in flash.  The screen that comes up is an error with the following:
    Flex Error #1001: Digest mismatch with RSL
    https://cs13.salesforce.com/_swf/121310/sfc/flex/framework_3.5.0.12683.swf.
    Redeploy the matching RSL or relink your application with the matching
    library.
    I have been working with SalesForce support but they don't have a clue and want to punt to Adobe. 
    The support staff at SalesForce has no trouble accessing the page with the flash control from thier pc.  I have tried several computers in my office and from several browsers (IE 9 and Chrome).  I have reinstalled Flash Player 11 and cleared browser caches.  Nothing seems to work.
    It has to be something common to computers in my office or my network.  All of the information I can find on the Internet talks about rebuilding the application and redeploying it.  I can't do that since this is part of SalesForce and not something I own.  Also, it works for them on their computers.
    I am running windows 7 64 bit.  I have McAfee running (and have checked that Flash is not blocked).
    The flash player itself works when I go to the Adobe site and try other content.
    The only other odd thing I have is that my hard drive is encrypted.
    Any ideas?
    Thanks,
    Mike

    Chris,
      I have cleared the browsser and flash cache data then restarted browswers and windows. Still no luck.  I reverted the flash player back to 10.3 after following the instructions in the link you provided for a clean install but still get the error.  SalesForce did not state what version of FlashPlayer they are using but I will check with them later today. 
    All of the machines that I have tested on have been at the office and all have encrypted hard drives with PGP desktop.  I am going to try my laptop on my home network tonight to see if we are blocking something during the download.
      This is driving me nuts.  I know is it something specific to the machines in the office or the office network but I can't find it.
    Thanks for your help.  Please let me know if you have any other ideas.
    Mike

  • Flex errors trigger JS error messages

    I am running my Flex application using a slightly modified auto generated html page. It looks like Flex errors trigger JS script error message with just a generic error description. Is that right?
    Thanks

    You're probably not using an old version then if it was that recent. Just to be sure though, you can find the version number by clicking Tools (usually in the upper right of the browser window) and then About or Help > About. I can't remember the exact way as I haven't used Explorer for years.

  • RDS server Error in Conncting to Blazeds  Data source in Flashbuilder 4

    hi all,
    I have a problem with my flash builder 4 with connecting to Blazeds  data source
    First i have installed Flash Builder 4  and Tomcat 6.0  and  create projects , fine they work.Then i installed WTP plugin for eclipse since i need
    to develop J2ee/Flex combined application  it works with out data intigration fine ,but when i want to connect  Blazeds data source then i use the tutorial
    in following url :-
    http://sujitreddyg.wordpress.com/2009/04/07/setting-up-blazeds/
    but i dont success on it ,i followoed  all steps in that tutorial  but above error still occurs, According to tutorial  i have put web.xml file and flex(which contains flex config files) folder to applications /WEB-INF  folder and uncomment rds data section .
    Could any one plese tell me  where is the problem is , any help would be appriciated
    Best regards,
    Pradeep.

    Hi Pradeep,
    Can you please try the following:
    1. Check if the server settings are pointing to the web application which has RDS configured
    2. Make sure you restart the server once you uncomment the RDSDispatchServlet in web.xml
    3. Make sure the BlazeDS version you are using BlazeDS 4.0 and above. If not, see if this article helps http://sujitreddyg.wordpress.com/2009/06/01/using-flash-builder-4-for-earlier-blazeds-buil ds/
    4. Try sending a request to http://<server-name>:<port>/<WebApplicationContext>/CFIDE/main/ide.cfm from your browser. You should get an error saying "GET" method is not supported. If not, probably the RDSDispatchServlet is not properly configured.
    Hope this helps.

  • ColdFusion Builder 2 RDS Debugging error.

    I am running a Windows 7 Professional 64-bit system with ColdFusion 9.01 (Developer Edition). I just downloaded the trial version of ColdFusion Builder and cannot get the debugger to work. I have followed all the instructions concerning making sure RDS is enabled in ColdFusion (which it was for my old CFEclipse version and some Flex apps). I've done everything I can think of for configuring CF Builder, but I cannot get the debugger to work. When I go to RDS configuration in CF Builder and click "Test Connection," A popup states that "Test connection was successful." Since I'm using IIS and not the CF built-in web server, I configured the Server Information using port 80. However, when I click "Test Debugger," I get an error: "Test debugger failed. The debugger server is currently listening on port 51,367..." So, I change the port to 51367. The connection tests successfully again, but when I test the debugger, I get another error: "Test debugger failed. An RDS connection was established but the ColdFusion RDS line debugger could not be contacted. The server gave the following message: -1: Could not initialize class coldfusion.logs.CFlogs." I cannot find any reference to that error message using Google, or searching Adobe. When I click on the "bug" drop-down and then click the name of "Debug server," I get a similar, but different and longer error:
    Unable to connect to the RDS server 'ColdFusion'.
    Ensure that the server is currently running and that line debugging and RDS are enabled. You may also need to check your RDS connection settings in Eclipse to ensure that they are correct.
    Error message:
    -1:Error connecting to JVM for debugging at localhost:5005. Could not attach the VM at port 5005. You must specify this debugger port in the JVM settings of you application server, for example: -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005. You will also need to make sure that another debugger is not currently connected to the CF JVM at the same port (5005).
    Root cause ->
    Connection refused: connect
    I check in the jvm.config file and those settings are already there. So, does anyone have a clue about any of this? I've run all possible CF and JRE updates, I've not only stopped and restarted the ColdFusion service several times, but I've even rebooted my system. This should be a simple process.

    CF Line Debugger is enabled. every thing is configured perfectly. This is a error which I've never seen before.
    Actually, I am a IT Manager in a Software company and we need to setup a remote CF9 Server for development and testing with debugging. This is a centralize server for my team to work and test. Currently we are working using dreamviewer and every thing is going fine with this tool but as you know there is no good debugger tool in DW so we have decided to work in CFBuilder 2. Below you will find the jvm config in my CF Server.
    ========================================================================================== =======================
    -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Xbatch -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Duser.language=en -Duser.country=US -Dfile.encoding=UTF-8 -DDEBUGGER_SERVER_PORT=5005 -DDEBUGGER_TRACE=true
    ========================================================================================== =======================

  • Flex error while deploying a VC application

    Hi Experts,
    Though I have rarely worked on VC developments, I have to troubleshoot an issue wherein we are getting following error while deploying a VC Application.
    Error: Error in compiling flex application. Consult log file for details.
    I have got a log file and it has written out 100s of lines of log, however, following is the important part from the log file:
    #00145E9635CE0060000016940015E0C60004A07BE7C55172#1302353936732#/System/Server/VCServer
    #sap.com/VisualComposerServerEar04
    #com.sap.portal.vc.server#ganeshb#35216##n/a##b1528d4062a811e0aedc00145e9635ce
    #SAPEngine_Application_Thread[impl:3]_12##0#0#Debug#1#/System/Server/VCServer#Plain###
    Server Error:Failed to import model - attribute is missing in imported file bytes are <?xml version="1.0" encoding="UTF-8"?>
    Any help on how to resolve this?
    Thanks in advance,
    Ameya
    Edited by: Ameya Pimpalgaonkar on Nov 16, 2011 7:31 AM

    Hi Ameya,
         If its VC 7.0 then you must be using Flash Compiler.Try changing the compiler to Flash at this path
    Tools->Options->Compiler->Change 'Runtime filed to Flash'.I hope this should solve your problem.
    Naga

  • Flex Error - ReferenceError: Error #1065: Variable flash.external::HostObject is not defined

    Has anyone gotten this error with FlashBuilder 4.6 and Extension Builder. I do believe I have all the right classes imported and I am using defaults on SDK's and swc's
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" historyManagementEnabled="false">
        <mx:Script>
            <![CDATA[
                import flash.external.*;
                [Bindable]
                private var hostName:String = HostObject.mainExtension;
            ]]>
        </mx:Script>
        <mx:VBox height="100%" width="100%" verticalAlign="middle" horizontalAlign="center">
            <mx:Button label="Run PS code" click="TestPhotoshop.run()" enabled="{hostName.indexOf('photoshop') > -1}"/>
        </mx:VBox>
    </mx:Application>

    Hi,
    SoundCodec class is defined in Player 10. Are you using the
    player 10 afcs swc ? If so, you need to change Require Flash Player
    Version unser Project->Properties->Flex Compiler in Flex
    Builder and put that to 10.0.0 and also make sure that your browser
    has player 10 and you Flex SDK also supports player 10.
    And if you are using afcs 9 swc , then put 9.0.124 or
    something in the Require Flash Player Version and that should fix
    the problem
    Thanks
    Hironmay Basu

  • File editing RDS(?) error

    I am having a rather unusual problem while editing CF files
    in Dreamweaver CS3. On a number of files, when I try to edit,
    Dreamweaver crashes and gives me a generic error message. There's
    no real rhyme or reason and it appears to getting worse. At first,
    I could edit a file and save it. Then when I try to make other
    changes it crashes immediately. In other cases, DW crashes as soon
    as I click the mouse on the line I want to edit.
    I am not the only user at my company experiencing this. A
    remote user is also experiencing the same issue. We use RDS for the
    connection. This problem has just started in the last couple of
    days. We have rebooted the server, in the hopes that maybe it was
    an RDS connection issue, but the problem persists.
    Any ideas on what's going on?
    Thanks,
    Chris

    Never mind. It turns out it's Daylight Savings Time bug
    that's affecting our systems. Everything's workingnow.

  • CF 8.0.1 RDS 500 Error

    /CFIDE/main/ide.cfm returns a 500 status "The specified
    module could not be found.". This server was recently upgraded from
    Coldfusion MX 6 and hasn't worked since. CFIDE is set up as a
    virtual directory and pointed over to D:\inetpub\wwwroot\CFIDE.
    The CF Admin works fine, but the file browser component seems
    broken too. Thanks in advance!

    RDS was already enabled. I disabled, restarted CF, then
    enabled, and restarted again. I have the same issue. Some extra
    information:
    -Browsing file gives "IO error on server communication"
    -I can run
    http://localhost/CFIDE/administrator/index.cfm
    along with
    http://<fqdn>/CFIDE/administrator/index.cfm
    and access CFAdmin just fine, however, I get a 404 on
    http://localhost/CFIDE/main/ide.cfm
    and
    http://<fqdn>/CFIDE/administrator/index.cfm
    gives "The specified module could not be found."
    The ISAPI filter settings for the .cfm extension and global
    tab match on both virtual hosts except localhost runs out of
    D:\ColdFusion8\runtime\lib\wsconfig\1 and the <fqdn> one runs
    out of D:\ColdFusion8\runtime\lib\wsconfig\2. The localhost virtual
    host has the actual /CFIDE directory within it, and the
    <fqdn> virtual host has just a virtual directory mapped over
    for CFIDE.

  • RDS Printing Errors

    We are using 2012r2 RDS session hosts, with Group policy mapped printers.. and some people have getting errors when trying to print a test page sporadically.  It seems like all of the printers are brand specific occurring to our Canon Printers. We are
    using the Universal UFR2 drivers.   We are using a 2012 print server and a 2008 r2 print server, with client side print rendering shut off on both the terminal server via group policy,  and on every printer on the print server.  Removing the
    printer, and then re-adding it on the session hosts normally allow the user to print.
    These are the errors i am seeing on the session hosts when someone is trying to print from the 2008 r2 print server to the 2012 r2 session hosts.  We have also had this issue on our old 2008 r2 terminal servers.  
    Opening CSR printer \\print.domain.local\Canon Back failed, error code 0x80070005. See the event user data for context information.
    Opening CSR printer \\print.domain.local\Canon Back failed, error code 0x8004BABA. See the event user data for context information.
    Thanks,
    James

    Hi James,
    Would you please let us know current situation of this issue?
    à
    Removing the printer, and then re-adding it on the session hosts normally allow the user to print.
    Based on the description, did you mean that users will print normally when re-add the printer? Just a confirmation,
    thanks for your understanding.
    à
    It seems like all of the printers are brand specific occurring to our Canon Printers. We are using the Universal UFR2 drivers.
    Did you use another member of Domain Admins to re-install drivers? Meanwhile, please check if there have newer
    drivers for Canon printer. Please use newer drivers and check if this issue still exists.
    As Howtodo suggested, did you find more clues in any relevant log file? Please let us know complete error message
    that you can get.
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Flex Error

    I try to change the Textbox's text property value which is in other Tab. But it displays the below error. please help me.
    Error Message :
    ===============
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
                    at com.Master::MasterOrganisation/getOrgData()[E:\Flex\WorkForce\src\com\Master\MasterOrgani sation.mxml:179]
                    at com.Master::MasterOrganisation/__btnOrgEdit_click()[E:\Flex\WorkForce\src\com\Master\Mast erOrganisation.mxml:273]
    Coding :
    =======
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="555" height="342">
    <mx:WebService id="myService" 
                wsdl="http://localhost/WorkforceWebService/Service1.asmx?WSDL" 
                load="myService.getOrg()" 
                showBusyCursor="true">
          </mx:WebService> 
          <mx:Script>
                <![CDATA[
                      import mx.controls.dataGridClasses.DataGridItemRenderer;
                    import mx.controls.Alert;
                    import mx.rpc.events.FaultEvent;
                    import mx.rpc.events.ResultEvent;
                    import mx.rpc.soap.mxml.WebService;
                    import mx.managers.CursorManager;
                            import mx.controls.DataGrid;
                            import mx.controls.dataGridClasses.DataGridColumn;
                            import mx.collections.ArrayCollection;
                            import mx.collections.XMLListCollection;
                            import mx.collections.IList;
                            import mx.collections.IViewCursor;
                            import mx.collections.CursorBookmark;
                    * @bindable
                    * @private
                    * @property Will hold the data passed from the web service.
                    [Bindable]
                    private var _xmlOrgData:XML;
                            private var m_orgCode:String;
    private function getOrgData(event:MouseEvent):void
                                  orgTab.selectedIndex=1;
                                  orgTab.getChildren();
                                  txtOrgCode.text=dgOrgList.selectedItem.OrgCode;
                                  /*txtOrgName.text=dgOrgList.selectedItem.OrgName;
                                  txtOrgAddress.text =dgOrgList.selectedItem.Address;
                                  txtOrgCity.text =dgOrgList.selectedItem.City;
                                  btnOrgSave.label="Update";*/
                ]]>
        </mx:Script>
    <mx:TabNavigator id="orgTab" width="555" height="342">
    <mx:Canvas label="List / Search" width="100%" height="100%">
                <mx:DataGrid id="dgOrgList" x="10" y="45" width="533" dataProvider="{_xmlOrgData.*}">
                      <mx:columns>
                            <mx:DataGridColumn headerText="Code" dataField="OrgCode"/>
                            <mx:DataGridColumn headerText="Name" dataField="OrgName"/>
                            <mx:DataGridColumn headerText="Address" dataField="Address"/>
                            <mx:DataGridColumn headerText="City" dataField="City"/>
                      </mx:columns>
                </mx:DataGrid>
                <mx:ComboBox id="cboOrgFilter" initialize="fillOrgFilter1('select \'\' as OrgCode,\'\' as OrgName union all select OrgCode,OrgName from Organisation order by 2');" labelField="OrgName" dataProvider="{_xmlOrgFilter.*}" x="77" y="15" width="251" >
                </mx:ComboBox>
                <mx:Label x="10" y="17" text="Name :" width="59"/>
                <mx:Button x="336" y="15" label="Search" id="btnOrgSearch" click="clickOrgHandler(event);"/>
                <mx:Button x="404" y="15" label="Edit" id="btnOrgEdit" click="getOrgData(event);" width="71"/>
                <mx:Button x="478" y="15" label="Delete" id="btnOrgDelete" />
          </mx:Canvas>
    </mx:TabNavigator>
    </mx:Canvas>

    The fastest solution will be to add the creationPolicy="all" to the TabNavigator

  • AS3 in Flex - ERROR 1037 Packages cannot be nested

    Hi.
    I am having some difficulty getting this simple bit of code
    working in Flex. It works perfectly in Flash. However in Flex i get
    an error 1037, Packages cannot be nested. Can anyone let me know
    where im going wrong / how to fix this problem. Thanks. Code
    attached.
    Barry.

    This thread should be in the AIR forum. The couple
    suggestions Andrei1 is making are correct, but it isn't the reason
    why you're getting that error.
    When you want to use a class within the declarative
    environment of Flex/AIR, you should use a namespace for that class
    and instantiate it via MXML or instantiate it within the Script
    block via ActionScript. Make sure that the files are in the same
    folder and then see if the following works for you.
    TS

  • Flex error 1034: Type Coercion Failed

    I extended the File class as AudioFile.  I only added one new property "category".  I intend to filter files out of a directory structure and keep the AudioFile objects in a simple indexed array.  I also want to add category info to the AudioFile object's "category" property.  The error is thrown after I call getDirectoryListing, assign the returned File objects to "content:Array", and then I iterate through "content" assinging each File object to an AudioFile object.  I thought that sense AudioFile is an extension of File that this would not be a problem.  The heart of the issue is how getDirectoryListing returns File objects but I need AudioFile objects.  My next instinct is to override the getDirectoryListing method but I can not find the class declaration for File.
    Is there a way to cast the File objects as AudioFile objects?  Should I be using a different strategy for assigning category info to the File objects?  Maybe I should not be extending File class at all.  I am kind of stuck.  Any help would be greatly appreciated.
    Here is my code.  Please note that this is my first flex/air/actionscript I ever wrote.  I am using Flash Builder 4.5 and my target is Air Desktop.  The extended class AudioFile is in AudioFile.as.
    package
        import flash.filesystem.File;
        public class AudioFile extends File
            public function AudioFile()
            public var category:String;
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                            xmlns:s="library://ns.adobe.com/flex/spark"
                               xmlns:mx="library://ns.adobe.com/flex/mx"
                             xmlns:samples="samples.*"
                            applicationComplete="init()" width="386" height="581"
                            initialize="initData()">
        <s:layout>
            <s:VerticalLayout paddingTop="6" paddingLeft="6" paddingRight="6" paddingBottom="6"/>
        </s:layout>
        <fx:Script>
            <![CDATA[
                import AudioFile;
                import flash.events.Event;
                import flash.filesystem.File;
                import mx.collections.ArrayCollection;
                import mx.controls.Alert;
                private var audioObj:AudioFile = new AudioFile();
                protected function init():void
    // Center main AIR app window on the screen
                    nativeWindow.x = (Capabilities.screenResolutionX - nativeWindow.width) / 2;
                    nativeWindow.y = (Capabilities.screenResolutionY - nativeWindow.height) / 2;
                    // Get notified when minimize/maximize occurs
                    addEventListener(NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING, onDisplayStateChange);
    // Handles when the app is minimized/maximized
                protected function onDisplayStateChange(e:NativeWindowDisplayStateEvent):void
                    trace("Display State Changed from " + e.beforeDisplayState + " to " + e.afterDisplayState);
                private var masterList:ArrayCollection = new ArrayCollection();
                private var dgArray:Array = new Array();
                [Bindable]
                private var initDG:ArrayCollection;
                public function initData():void {
                    var initDG:ArrayCollection = new ArrayCollection(dgArray);
                private function analyze():void {
                    // ActionScript file
                    var sourceDir:AudioFile = getSourceDir();
                    var fileList:Array = new Array();
                    var dirList:Array = new Array();
                    function transverseDirStructure(sourceDir:AudioFile):Array {
                        var flag:Boolean = false;
                        var dirList:Array = new Array();
                        var fileList:Array = new Array();
                        do {
                            var contents:Array = sourceDir.getDirectoryListing();
                            for(var i:int=0;i < contents.length; i++) {
                                // test for isDirectory
                                var file:AudioFile = contents[i];
                                if (file.isDirectory == true) {
                                    dirList.push(file);
                                else {
                                    fileList.push(file);
                            if (dirList.length == 0)
                                flag = false;
                            else {
                                // recursion
                                fileList = fileList.concat(transverseDirStructure(dirList,fileList));
                        } while (flag == false)
                        return fileList;
                    function filterExtensions(fileList:Array):Array {
                        var cleanExtensionsList:Array = new Array();
                        for each (var i:AudioFile in fileList) {
                            if (i.extension == ".wav" || ".aiff") {
                                cleanExtensionsList.push(i);
                        return cleanExtensionsList;
                    function filterSize(fileList:Array):Array {
                        var cleanSizeList:Array = new Array();
                        var maxFileSize:int = 350000;
                        for each (var i:AudioFile in fileList) {
                            if (i.size < maxFileSize) {
                                cleanSizeList.push(i);
                        return cleanSizeList;
                    function categorizeAudioFiles(fileList:Array):Array {
                        var masterList:Array = new Array();
                        var flag:Boolean = true;
                        var categories:Array = new Array();
                        categories.push("kick","snare","hat","crash","clap");
                        for each (var i:AudioFile in fileList) {
                            for each (var x:String in categories) {
                                if (i.name.search(x) > 0) {
                                    // Add name of category to the extended property.
                                    i.category = x;
                                    masterList.push(i);
                        return masterList;
                    fileList = transverseDirStructure(fileList);
                    fileList = filterSize(fileList);
                    fileList = filterExtensions(fileList);
                    fileList = categorizeAudioFiles(fileList);
                private function generateRandom():void {
                private function setDestination():void {
                    var file:AudioFile = new AudioFile();
                    file.addEventListener(Event.SELECT, dirSelected);
                    file.browseForDirectory("Select a directory");
                    function dirSelected(e:Event):void {
                        txtDestination.text = file.nativePath;
                private function getDestination():AudioFile {
                    var destinationDir:AudioFile = new AudioFile();
                    destinationDir.nativePath = txtDestination.text;
                    return destinationDir;
                private function getSourceDir():AudioFile {
                    var sourceDir:AudioFile = new AudioFile();
                    sourceDir.nativePath = txtBrowse1.text;
                    return sourceDir;
                private function setSourceDir():void {
                    var file:AudioFile = new AudioFile();
                    file.addEventListener(Event.SELECT, dirSelected);
                    file.browseForDirectory("Select a directory");
                    function dirSelected(e:Event):void {
                        txtBrowse1.text = file.nativePath;
                // Control logic
            ]]>
        </fx:Script>
        <mx:Form width="373" height="113" id="formChooseDirectory1">
            <mx:FormHeading label="1. Choose A Source Directory..." width="315" fontSize="13" fontFamily="Verdana" color="#CF71FF"/>
            <s:Button label="Browse..." fontFamily="Verdana" fontSize="13" color="#CF71FF" id="btnBrowse1" enabled="true" click="setSourceDir()"/>
            <s:TextInput width="333" id="txtBrowse1" enabled="false" text="C:\Users\RokaMic\Bangin Beats"/>
        </mx:Form>
        <mx:Form width="373" height="231" id="formAnalyze">
            <mx:FormHeading label="2. Analyze Samples..." fontFamily="Verdana" fontSize="13" color="#00D8FF" width="245"/>
            <s:Button label="Analyze" fontFamily="Verdana" color="#00D8FF" id="btnAnalyze" enabled="true" click="analyze()"/>
            <mx:DataGrid editable="false" enabled="true" fontFamily="Verdana" color="#00D8FF" width="337" dataProvider="{initDG}">
                <mx:columns>
                    <mx:DataGridColumn headerText="File name" dataField="filename" color="#00D8FF" fontFamily="Verdana"/>
                    <mx:DataGridColumn headerText="Category" dataField="category" color="#00D8FF" fontFamily="Verdana"/>
                </mx:columns>
            </mx:DataGrid>
        </mx:Form>
        <mx:Form width="374" height="173" id="formGenerate">
            <s:Button label="Generate Drum Kits" width="342" height="52" fontSize="18" fontFamily="Verdana" color="#00FF06" id="btnGenerate1" enabled="true" click="generateRandom()"/>
            <mx:FormItem label="How Many?" fontFamily="Verdana" fontSize="13" color="#00FF00" width="340">
                <s:HSlider width="206" stepSize="1" value="1" minimum="1" maximum="25" id="sliderHowMany" liveDragging="true"/>
            </mx:FormItem>
            <s:Button label="Destination..." color="#00FF00" id="btnDestination" enabled="true" click="setDestination()"/>
            <s:TextInput width="332" id="txtDestination" enabled="false"/>
        </mx:Form>
    </s:WindowedApplication>

    i copied this from your code:
          function categorizeAudioFiles(fileList:Array):Array {
                        var masterList:Array = new Array();
                        var flag:Boolean = true;
                        var categories:Array = new Array();
                        categories.push("kick","snare","hat","crash","clap");
                        for each (var i:AudioFile in fileList) {
                            for each (var x:String in categories) {
                                if (i.name.search(x) > 0) {
                                    // Add name of category to the extended property.
                                    i.category = x;
                                    masterList.push(i);
                        return masterList;
                    fileList = transverseDirStructure(fileList);
                    fileList = filterSize(fileList);
                    fileList = filterExtensions(fileList);
                    fileList = categorizeAudioFiles(fileList);
    does that contain line 129?  if so, where are those last 5 lines?
    they don't appear to be part of the categorizeAudioFiles() function so there should be a compiler error about that last }.  or, you've nested a named function somewhere.

  • Windows 10 RDS Gateway Error

    We have an 2008 RDS Gatway that works fine with Win7 but for some reason Windows 10 says can't connect to the remote computer because the Remote Desktop Gateway Server is temporarily unavailable.
    Same Remote Desktop Settings on both but Windows 10 gets that error.
    Any suggestions or solutions?
    Thank you
    Matt
    This topic first appeared in the Spiceworks Community

    Hi , Welcome to the HP Support Forums! I understand that you're experiencing scanning issues with your HP Deskjet 1510 Printer. I would be happy to look into this with you.
    What is the error message you're receiving?I would do a hard reset to see if that will resolve the issue.
    Leave the printer on and unplug the power cable from the printer and wall outlet for 60 seconds.
    Then reconnect the power cable to the printer and wall outlet rather than a surge protector.
    This ensures the printer is receiving full power and may help this situation. I would try the steps within this guide, HP Printers - A Communication or Connection Error Displays When Scanning. What were the results when you ran the Print and Scan Doctor? (did it print or scan, any error messages) Please respond to this post with the result of your troubleshooting. I look forward to hearing from you. Good Luck!

  • Report Builder RDS setup errors

    Although RDS works in Dreamweaver, I can't seem to be able to
    setup RDS in report builder. I get the following EM:
    "The RDS server was successfully contacted, however the
    server does not support validating security credentials"
    If this is referring to the RDS password, I'm certain that
    I've got it right.
    My IIS guys say they have setup IIS as per this technote
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=231ca7fa
    Is there anything else I need to look at ???

    Try and temporarily turn off Windows Integrated
    Authentication.
    If it works, double-check to be sure you turned it off for
    the CFIDE directory permanently.

Maybe you are looking for

  • Session Timeout Question in EME

    If I login to eManager Web and instead of logging out I just close the browser will I be logged out? Will the license be released? What is the session timeout for this and is it possible to set this value?

  • How much RAM can go into my Macbook Pro

    Hey, I wanted to ask how much RAM can go into my Mid 2012 Macbook Pro I looked at this guide http://support.apple.com/kb/HT1270?viewlocale=en_US#link1 and it said I can only but In 8 GB I want to put 16 GB but was wondering if this would ruin my comp

  • Is it possible to scan without preview/ image capture??

    These programs are useless for scanning. Every time I try to scan something it automatically guesses where the image is cropped. It gets it wrong almost every time and there is no way of turning it off. I tried clicking the more details button but my

  • Voiding serial numbers in order to reinstall

    I accidently installed the wrong version of adobe photoshop 10.....before I can install the right disk I need to void the serial numbers from the computer....how do I do this

  • Emails disappeared after a move, followed by an undo.

    I have completely lost 28 emails that I was trying to move to my "action" folder - I can't find them in my trash or with Spotlight. Here's what happened: I selected all the emails remaining in my inbox; there were 31. I grabbed them, intending to dro