Flashing Remoting Help

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Flashing Remoting Help

    Will someone please provide some links that show exactly how to access a
    coldfusion component using the most up to date methods. I am using Flash
    Professional 8. All the docs I find are for Flash 2004 MX which don't jive
    completely with what I am using. Also examples using #include "NetServices.as"
    are not what I am looking for. An example I am looking for is how do populate
    a dropdown menu flash component with dynamic data from a simple query to a
    database form a .cfc file. I just need a proof of concept to my manager so I
    can proceed with flash development. I really have to be spoon fed to understand
    this.

    Thanks
    Dave

    david_sternberg Guest

  2. Similar Questions and Discussions

    1. Flash is flashing
      I have the exact same problem. Internet Explorer 6, Windows 2000 SP 4. I upgraded the drivers for my Radeon 9800 PRO to the latest catalysts. I do...
    2. flashing between movies
      Recently when compling a projector file, it started flashing when moving from one move to another. the cd is made of various director file run...
    3. Quicktime flashing in MX
      I have a single sprite (the first frame of the following quicktime) that "grows" in and then the quicktime plays directly after it. When the...
    4. flashing backgrounds
      I have created a site containing 3 frames: side, top and main. The background colour for all 3 is set to #333333. As the side loads, there is an...
    5. Information Box keeps flashing...
      music Adjust your mouse speed.
  3. #2

    Default Re: Flashing Remoting Help

    Let me explain about the #include "NetServices.as"

    Every time I try using these examples I always get a error saying:

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Error opening include
    file NetServices.as: File not found.
    #include "NetServices.as"

    I have the flash 8 action script bible and it's chapter 36 on data integration
    uses imports but the example is with .php. I need a good example of the most up
    to date way to do what I need.

    Dave

    david_sternberg Guest

  4. #3

    Default Re: Flashing Remoting Help

    see if this helps:

    [url]http://www.flash-remoting.com/examples/MultipleCombo/[/url]

    --
    Azadi Saryev
    Sabai-dee.com
    Vientiane, Laos
    [url]http://www.sabai-dee.com[/url]
    Azadi Guest

  5. #4

    Default Re: Flashing Remoting Help

    Here you go.

    [url]http://www.asfusion.com/blog/entry/introduction-to-flash-remoting[/url]

    I believe that the first method that they show is how you would do in Flash 8.
    You must use the second method to remote in CF and Flashforms.
    Good luck.

    Mark



    Mark Forsberg Guest

  6. #5

    Default Re: Flashing Remoting Help

    David,

    I just thought about this code. This is the "modern" way, at least to my
    understanding. You might also want to try the Flash forum. They have a section
    on remoting as well.



    //Import Stuff
    import mx.remoting.*;
    import mx.rpc.*;
    import mx.services.Log;

    //Data type the components
    var name_txt:mx.controls.TextArea;
    var myGrid_dg:mx.controls.DataGrid;

    //Remoting Stuff

    mx.remoting.debug.NetDebug.initialize();

    var myLogger:Log = new Log( Log.DEBUG, "logger1" );

    //override the default log handler
    myLogger.onLog = function(message:String):Void{
    trace("myLogger: " + message);
    }

    //Create the service
    myService = new
    Service("http://localhost/flashservices/gateway",myLogger,"Phonebook.CFC.phoneDa
    ta",null,null);

    //Hander for results
    function onGetData(msg:ResultEvent){
    mx.remoting.debug.NetDebug.trace({level:"Debug",me ssage:"onGetData" });
    myGrid_dg.dataProvider = msg;
    }

    //Handler for errors
    function onDataFault(rs: FaultEvent){
    mx.remoting.debug.NetDebug.trace({level:"None", message:"Oops!: " +
    fault.fault.faultstring });
    }

    var pc:PendingCall = myService.getNetworkUsers;
    pc.responder = new RelayResponder(this._parent, "onGetData", "onDataFault");

    //Create Button to close swf

    var oNameListener: Object = new Object();
    oNameListener.click = function(){
    //trace('Mark');
    getURL("javascript:window.opener=self;window.close ()");

    }
    close_btn.addEventListener("click",oNameListener);

    Mark Forsberg Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139