Welcome, Guest
  • Author Topic: What do I need - Where to start - Help pls  (Read 4212 times)

    JorgeV

    • Server what's that
    • *
    • Posts: 2
      • View Profile
    Hi,

    I've been reading your tutorials and downloaded the amfphp files v.1.9 beta. Looking at the tutorials, hello world and then loading dynamic data and I'm confuse as to what I need in order to accomplish what I need.

    I need to access MySQL database in a remote server using Flash. The first thing I need is to display on my main screen is a table with a list of events. The user will pick one event and be directed to a screen to edit the record. Once finished the user is back to the main screen and the table should be updated.

    For one tutorial indicated to use the remote components - I am using flash CS3 and those components are for flash mx. I'm also new in Flash are they compatibles? Can I install them on CS3?  ???

    Also one of the tutorial examples uses this class:
    org.amfphp.remoting.NetServices

    Where do I get this class from? I cannot see it on the amfphp files?  ???

    Hope you can help me in direct me to the right path!  ;D

    Thanks for your help in advance!

    Jorge V.

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: What do I need - Where to start - Help pls
    « Reply #1 on: 11/19/09, 18:07 »
    CS3 does not need, in fact cannot use the remoting components of MX.

    Just do the sample for AS3.

    The job, youd like to be done, is a system consisting of several steps.

    Nowadays programing is asynchrous - which means, several things can happen in different order and parallel.

    So you have to fetch events, to trigger functions.

    Do it step by step. Every step is more or less independant from each other.

    Reading a list, fetches the results from the table - start edit reads a single record, save writes a single record.

    All these functions must be included in your service file at the server.
    happy flashing
    8)
    Ronald

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: What do I need - Where to start - Help pls
    « Reply #2 on: 11/20/09, 10:29 »
    If woy want to use Remoting with AS3, follow http:/0www.flash-db.com/Tutorials/helloAS3

    Jorge

    JorgeV

    • Server what's that
    • *
    • Posts: 2
      • View Profile
    Re: What do I need - Where to start - Help pls
    « Reply #3 on: 11/21/09, 20:07 »
    Hi,

    I've done the sample helloAS3 and I'm getting this error that I'm not sure if it's related to the security crossdomain or configuration of my server.
    I have an apache server running locally with php on it.

    This is the error I get when run the remoting.html. My apache server crashes even when I call on charles the service.
    Also do I need the person.txt file before running this? where would be created on the services directory?  ???

    SecurityError: Error #2028: Local-with-filesystem SWF file file://C:\www\root\sample_vo\remoting.swf cannot access Internet URL http://localhost/amfphp/gateway.php.
       at flash.net::NetConnection/connect()
       at remoting_fla::MainTimeline/frame1()


    I'm getting an idea now of what is involved following this helloAs3 example. But I cannot make it run  :(

    Thanks in advance for your help.

    Jorge V.

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: What do I need - Where to start - Help pls
    « Reply #4 on: 11/22/09, 02:30 »
    never ever call a local file via file system
    you even have to load the swf file via http://localhost, otherwise you receive a sandbox violation, because you are calling from a different domain.

    The final solution will reside on a real server - and there is no local file system access for users.
    happy flashing
    8)
    Ronald