Hello members

I am having the most difficult time, finding where I went wrong.

Seems that I can not get the cold fusion MX to speak to my flash file. The
file will compile with no errors and I still can not get any results.
Can some please take a peak at this code, probably something small, but I
have been working on this for a week and have met with limited success.

The component is the code at the bottom,


// the flash code
// Include the Required NetService class files
#include "NetDebug.as"
#include "NetServices.as"
#include "DataGlue.as"


        //load Movie Behavior
        if(_root.application.news.BG_news_catigories ==
Number(_root.application.news.BG_news_catigories)){

loadMovieNum("news\\BG_news_catigories.swf",_root.application.news.BG_news_c
atigories);
        } else {

_root.application.news.BG_news_catigories.loadMovie("news\\BG_news_catigorie
s.swf");
        }
        //End Behavior

        //load Movie Behavior
        if(this.MC_news_topics == Number(this.MC_news_topics)){

loadMovieNum("news\\BG_news_topics.swf",this.MC_news_topics);
        } else {
                this.MC_news_topics.loadMovie("news\\BG_news_topics.swf");
        }
        //End Behavior



        //code to edit
// connect to the Flash Remoting service provider
if (isGatewayOpen == null) {
  // do this code only once
  isGatewayOpen = true;
  // Make the Gateway connection

NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gatewa
y");
  gatewayConnnection = NetServices.createGatewayConnection();
  mNews= gatewayConnnection.getService("ver4_fla.mNews", this);
  trace("Connected");
  // CALL Web service: Do initial Data load for DropDown List
  mNews.getNewsCategories();
  trace("sent request");
}

// :::: Remote Calls

function getCategoryName() {
        // Invoked when a user selects a park Type from the ComboBox
        trace("sent request. CategoryName: " +
newsCategories_cb.getSelectedItem());
        // invoke the "getParksList" method in the parkService service, send
current selection
        mNews.cfc.getCategoryName(newsCategories_cb.getSelectedItem());

  }

function getCategoryDetails() {
        // Invoked when a user selects a park Type from the ComboBox
        trace("sent request. CategoryDetails: " + newsDetail_ta.getValue());
        // invoke the "getParksList" method in the mNews service, send
current selection
        mNews.getCategoryDetails(newsDetail_ta.getValue());
}


// :::: DEFAULT RESPONDERS ::::

function getCategoryName_Result(result) {
        trace("server responded: Records: " + result.getLength());
        trace("setting the Drop Down");
        // This function will be invoked by the server when it has finished
processing
        newsCategories_cb.setDataProvider(result);
        newsCategories_cb.addItemAt(0, "Select a Category Type", "NONE");

    }

function getParksList_Result(result){
        trace("server responded: Records: " + result.getLength());
        trace("setting the ListBox");
        // Use DataGlue Binding to create a differnent label and Value pair
        // The Value is what will be sent to the function, and is what the
DB will match
        _global.DataGlue.bindFormatStrings(news_Topics_ta, result,
"#CategoryName# );
        }
        function getCategoryDetails_ta_Result(result){
        trace("server responded: Records: " + result.getLength());
        // This function will be invoked by the server when it has finished
processing
        _root.application.news.newsDetail_ta=result.items[0].FeedURL;

}


// the CF  component
<!--- Start the ColdFusion Component --->
<cfcomponent>

  <!--- :::Function: Retrieve List of Park TYPES (for DropDown)--->
  <cffunction name="getNewsCategories" access="remote" returnType="query">
      <CFQUERY NAME="q_NewsCategories" Datasource="nafer">
          SELECT Distinct (Category)FROM news
                WHERE (Poweredby = 'moreover')
            ORDER BY Category  ASC
      </CFQUERY>
      <cfreturn q_NewsCategories>
  </cffunction>

  <!--- :::Function: Retrieve List of Parks --->
  <cffunction name="getCategoryName" access="remote" returnType="query">
      <cfargument name="CategoryName" type="string">
      <CFQUERY NAME="q_getCategoryName" Datasource="nafer">
        SELECT Distinct (Category)FROM news
                WHERE (CategoryName = '#TRIM(Category)#')
            ORDER BY Category  ASC
      </CFQUERY>

      <cfreturn q_getCategoryName>
  </cffunction>


  <!--- :::Function: Retrieve Park Details --->
  <cffunction name="getCategoryDetails" access="remote" returnType="query">
      <cfargument name="thisCategoryDetail" type="string">

      <CFQUERY NAME="q_CategoryDetails" Datasource="nafer">
        SELECT FeedURL FROM news
        WHERE FeedURL='#Category#'
      </CFQUERY>
    <cfreturn q_CategoryDetails>
  </cffunction>



</cfcomponent>





If some one can help me out, I would sure appreciate it!

<Yippykia>
    <Camilo Trevino>
    <Microsoft Certified System Engineer>
    <Comptia A+ Computer Technician>
    <ColdFusion Applications Developer>
</Yippykia>



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to