English 中文(简体)
如何从行动说明中解答问题?
原标题:How can i make a SQL query from actionscript?

如何从行动说明中解答问题? 并实现所有成果

最佳回答

您必须打上一台服务器(例如:php),然后检索该文本的产出。

private var _loader:URLLoader;
private var _request:URLRequest;

private function loadData():void {
    _loader = new URLLoader();
    _request = new URLRequest("path/to/your/phpscript");
    _request.method = URLRequestMethod.POST;
    _loader.addEventListener(Event.COMPLETE, onLoadData);
    _loader.addEventListener(IOErrorEvent.IO_ERROR, onDataFailedToLoad);
    _loader.addEventListener(IOErrorEvent.NETWORK_ERROR, onDataFailedToLoad);
    _loader.addEventListener(IOErrorEvent.VERIFY_ERROR, onDataFailedToLoad);
    _loader.addEventListener(IOErrorEvent.DISK_ERROR, onDataFailedToLoad);
    _loader.load(_request);
}
private function onLoadData(e:Event):void {
    trace("onLoadData",e.target.data);
}
private function onDataFailedToLoad(e:IOErrorEvent):void {
    trace("onDataFailedToLoad:",e.text);
}

a 举例说:

<?php

    // defining main variables
    $dbHost = "localhost";
    $dbUser = "root";
    $dbPass = "";
    $dbName = "test";
    $dbTable = "data";

    // connecting and selecting database
    @mysql_connect($dbHost, $dbUser, $dbPass) or die(mysql_error());
    @mysql_select_db($dbName) or die(mysql_error());

    // getting data
    $data = "";
    $res = mysql_query("SELECT * FROM ".$dbTable." ORDER BY id") or die(mysql_error());
    while($row = mysql_fetch_object($res)) {
        $data .= "nname=".$row->name.", ";
        $data .= "city=".$row->city;
    }
    echo $data;

?>

为了改善工作流程,我建议研究AMF......。

。 AMF

问题回答

在我所知的灵活工作方面,没有真正相当于JDBC或ODBC。 很可能,这种只是真心实意的探索是试图实现的,因为灵活性/冲突通常是客户一方,而亚洲开发银行一般是服务器一方(共有)。 总的来说,你使用 Java、PHP、C#、ASP .NET、Adhur、C++或其他一些服务器辅助方案,以建立与亚洲开发银行的联系并处理问题。 回答你提问的最近一点是:rel=“nofollow”http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fb351e63e3d118676a5797-7fb4.html。 仅适用于AIR,而不适用于远程连接。 我并不完全确定有多少工作涉及联合银行,如接口/实施,以便与任何特定的非行第一航道连接,这部分工作取决于对房舍管理处有详细记录的情况。

http://www.ohchr.org。

Okay这样实际上在某种程度上用了我的话:

您——实际上不想从灵活性中牵线搭桥,特别是在向用户分发申请的情况下。 闪电/Flex应用可以很容易地分解成可读源代码,如果你重新连接,就会再次出现各种安全问题。 灵活地利用一个充满活力的网络预报系统,使用像PHP、Adhur、Perl或Node等服务器方语言,为你处理数据。

即使你的申请是内部的,它仍是一个更好的“纸面”概念,以保持下去。 避免直接操纵数据库。





相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Sorting twodimensional Array in AS3

So, i have a two-dimensional Array of ID s and vote count - voteArray[i][0] = ID, voteArray[i][1] = vote count I want the top 3 voted items to be displayed in different colors, so i have a 2nd Array -...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...

Red5 Security Tutorial

I am looking for a step by step tutorial on securing Red5 from intrusion. This seems to be a question that comes up alot in a google search, but is never really answered in a way that makes sense to ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

visible property of DisplayObject

For example I have a hierarchy of movie clips. mc1 is a child of mc, and mc2 is a child of mc1. Turns out that when I set mc1.visible = false; mc2.visible stays true. Is that supposed to happen?...

热门标签