A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Question with flash remoting and the result object

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Posts
    21

    Question with flash remoting and the result object

    Hello,

    Every where I have looked for flash remoting tutorials and tips is using amfphp and not CFCs. I have everything set up correctly, I just cannot figure out how to get anything out of the result object.

    I found an article that was saying I could get the number of columns by doing:
    rs.serverInfo.columnCount;

    However it produces this error:

    TypeError: Error #1010: A term is undefined and has no properties.
    at CustomClasses.roster::roster/:nResult()

    I tried to access a couple other properties I found in some articles and I get the same error, can anyone tell me why this is happening?

  2. #2
    Junior Member
    Join Date
    Mar 2007
    Posts
    21
    I figured out my problem.

    its serverinfo not serverInfo, all the tutorials I found had it spelled as serverInfo

  3. #3
    Senior Member joshstrike's Avatar
    Join Date
    Jan 2001
    Location
    Alhama de Granada, España
    Posts
    1,136
    Feel free to use my AS3 remoting class package, it handles all the recordset parsing for you, turns them into objects as well as walking arrays and sub-arrays, distinguishing different types of results from AMFPHP and giving verbose readout...

    http://www.joshstrike.com/strike_remoting.zip

    Cheers,
    Josh

  4. #4
    Junior Member
    Join Date
    Mar 2007
    Posts
    21
    Hey Josh,

    Thanks for those classes!

    I did download it and gave it a look before I even made this post (the power of search engines). I never tried using it though because I thought it was for those only using AMFPHP and not for those using CFC's (like I am). Maybe I'm just really confused on the entire subject, but I have figured out a way to parse the data out, just not dynamically. I think I will give your classes another look, and it may answer a few other questions I have.

  5. #5
    Senior Member joshstrike's Avatar
    Join Date
    Jan 2001
    Location
    Alhama de Granada, España
    Posts
    1,136
    I don't think it would be a big stretch to rework the phpAccess class to work with CF...but I don't really know much CF so I'm not sure...but if you do add that kind of functionality, I'd love to see it!

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center