第 27卷 第 6期 2013年 12月 商洛學院學報 Journal of Shangluo University V01.27 NO.6 Dec. 2013 基于 PHP的 Flash與 MySQL數據庫通訊的實現 聾彥 。 (商洛學院 計算機科學系,陜西商洛 726000) 摘 要 :根據新媒體 網絡動畫的要 求 ,研 究 了 nash和 PHP的結合 原理 ,提 出了 loadVariables 語 句通過 PHP與外部 數據 通訊 的方 法 .分析 了該方 法接 收和發 送數 據 的具 體操 作過 程 。給 出 了具體實現 ,通過成績查詢實例 來測試 ,結果表明,該方法在不影響動畫效果的情 況下,增強 了動畫的交互性 。實現 了數據的讀寫操作 。具有 良好的穩定性和安全性。 關鍵詞 :PHP:Flash;MySQL;loadVariables 中圖分類號 :TP392 文獻標識碼:A 文章編號 :1674—0033(2013)06—0053—04 Im plem ention of PHP-based Flash Accessing to MySQL Database LI Yan-guang (Department of Computer Science,Shangho University,Shangluo,Shaanxi 726000) Abstract:A method of the communication between PHP and external data for loadVariables statement is proposed according to the requirement of the new media network animation. The combination principle of PHP—Flash is studied and operation process of receiving and sending data is analyzed. nle implementation is given. Experimental results show that the approach can not influence the playback effect of the Flash.and it can enhance the interactive animation.The data of read—write operation has realized,the mehtod has features of good stability and security. Key words:PHP;Flash;MySQL;loadVariables Flash是一款二維動畫創作平 臺,從其 出現 給人們留下深刻印象是它的“閃”“動”的特點。 但隨著 網絡技術 的發展和普及及 Flash技術 的 發展,單純動畫 已不能滿足人們的需要 ,怎樣 結 合 Flash的原有特 點和增強它 的互動性需進 一 步探討 。王艷歌【l 給出 Flash通過 ASP訪 問 SQL Server數據庫 ,實現 了動態交互效果的動畫 。張 靖闥把 Flash中的動態文本框作為變量暫存數據 來實現簡單的交互式,存取動態文本和輸入文本 相應的文本框起著至關重要的作用 ,探討了如何 正確使用它們 以及合適賦值方法的不同選擇。王 田等[3]通過 ASP連接 Access數據庫來實現二維 動畫的交互