Welcome, Guest
  • Author Topic: About "Using the remoting connector in FlashMXProfessioal2004 editing a table"  (Read 2851 times)

    mjp

    • Server what's that
    • *
    • Posts: 14
      • View Profile
      • Email
    is good that example "http://www.flash-db.com/Tutorials/update/index.php = Using the remoting connector in Flash MX Professional 2004: editing a table"

    But I would like to have the SOURCE CODE , So i would like to know the code, not make this with The bindings tab.

    Please help me I NEED IT FOR A FRAMEWORK, but i need the code for this

    Thank for the lent atention
    « Last Edit: 04/20/05, 09:06 by mjp »

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Hi mjp , welcome to the Boards !

    The source code comes with the Tutorial, did you read it?

    Jorge

    mjp

    • Server what's that
    • *
    • Posts: 14
      • View Profile
      • Email
    Yes I have all code the .fla and the scripts .php
     
     But I need no the .fla nor the .php

     I need is the code : "Action script" that make the same with the binding tab,

     Because I want to make this is with ACTION SCRIPT no with the binding tab.


    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    So you want that I write again the application but using code instead of binding?
    Ok, if I have some time, I'll try it.
    Anyway, I think is a better idea that you try by yourself and post if you have problems  ;)

    Jorge

    mjp

    • Server what's that
    • *
    • Posts: 14
      • View Profile
      • Email
    Anyway, I think is a better idea that you try by yourself and post if you have problems ;)

    Ok I try to set it by myself:

    // con1_con

    con1_con.gatewayUrl("http://192.168.0.233/mio/gateway.php");
    con1_con.methodName("getItems");
    con1_con.serviceName ("products");
    con1_con.suppressInvalidCalls = true;

    // con1_con

    //dataset1_ds

    dataset1_ds.  ???

    And, how I could to setup the dateset?
    And, how I bount to the  "con1_con:result"  with the  dateset?

    Thank for all your help

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Ok, using code means know the basis. Needed knowledge

    - how to handle a Remoting call (onResult handler)
    - how to populate a datagrid (addItem method)

    The HelloWorld tutorial explains the basic about the first topic, while the addItem method is explained in Flash Docs

    Jorge

    mjp

    • Server what's that
    • *
    • Posts: 14
      • View Profile
      • Email

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Quote
    - how to handle a Remoting call (onResult handler)

    AS1-> http://www.flash-db.com/Tutorials/hello/
    AS2-> http://www.flash-db.com/Tutorials/helloAS2/

    Jorge

    mjp

    • Server what's that
    • *
    • Posts: 14
      • View Profile
      • Email
    Ok, I allready make all the basic tutorial examples,

     but I have still not been able to connect: the connector with dataset and this with grid..

    What can I do?  ???

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Should be something like this (AS 2 syntax):

    rconn.addEventListener("result",categoryResult);
    function categoryResult(rs:Object) {
         trace("Got Categories - " + rs.target.results.length);
          myDataset.dataProvider = rs.target.results
    }

    Check http://www.flash-db.com/Board/index.php?topic=11954.0