Welcome, Guest. Please login or register.
Did you miss your activation email?
02/08/12, 08:05
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Flash Remoting with AMF (Moderators: Flash-db, Musicman, Jorge Solis, papachan, nothingGrinder)
| | |-+  What do I need - Where to start - Help pls
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: What do I need - Where to start - Help pls  (Read 3441 times)
JorgeV
Server what's that
*
Posts: 2


View Profile
« on: 11/19/09, 16:59 »

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?  Huh

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?  Huh

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

Thanks for your help in advance!

Jorge V.
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6162


View Profile WWW Email
« 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.
Logged

happy flashing
Cool
Ronald
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« 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
Logged

JorgeV
Server what's that
*
Posts: 2


View Profile
« 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?  Huh

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  Sad

Thanks in advance for your help.

Jorge V.
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6162


View Profile WWW Email
« 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.
Logged

happy flashing
Cool
Ronald
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything