PDA

View Full Version : SOLO+PHP+MySQL


kusalacitta
11-25-2005, 04:36 PM
Hi all...
I build data-driven app. The back-end server I used is PHP and MySQL. I've tried to make the app with SOLO mode (the application have to go through Login process) but at the time when I try to request the data, there is no data appears and the proccess can not be run.
Even though I've set the dataset proxied attribute to false, but I can't set the autorequest attr to true because I need to wait the login proccess first before loading other data (need to call doRequest when the input has been valid)
I think the autorequest will automatically work when the app completely compiled so it's make the dataset.doRequest method send the request without valid data.
Hope someone here can help me. PLease..

Thank you

hqm
11-25-2005, 07:12 PM
add a crossdomain.xml file on your back-end server; Flash 7/8 has a security model which requires this in order to fetch data.

Mine says

<cross-domain-policy>
<allow-access-from secure="false" domain="*"/>
</cross-domain-policy>


at the server root

kusalacitta
11-26-2005, 02:30 AM
hi hqm,
My application has been work in SOLO mode. Thanks for the solution :)

If you don't mind, I want to ask you about inputtext component.
The inputtext runs some methods inherited from LzText for example getSelectionPosition() and getSelectionSize() method, but the return value from this method must begin with running the setSelection method. So how if I want to get the length of selected text from inputtext? Is possible to do this? If not, how to handle the selection method and get the value from the selection text?
Because getSelectionPosition() and getSelectionSize always return -1 when I try to solve this problem.

Please help me...
Thank you!!

kusalacitta
11-26-2005, 07:32 PM
Is there anyone here know how to get the length of the selected text? How to use getSelectionSize and getSelectionPosition method?

Thanks for the help