�����������֡��
A little text to describe your forum 
֡  
 ѤҪԡ(Register)��Ѥ���Ҫԡ(Register) 
 ���������   ����   ªҪԡ��ª�����Ҫԡ   ���������� 
 ǹ(Profile)��������ǹ���(Profile)   к礢ͤǹ�������к������礢�ͤ�����ǹ���   к(Log in)�������к�(Log in) 
Important Notice: We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024. If you wish to migrate to our paid hosting service, please contact [email protected].
�Ըա���Ѻ��� �觤�� �ҡ flash

 
Forum ١͡ سöͺ    Ǣ͹١͡ سö ͵ͺ    �����������֡�� -> +�+WEB+�+
��ҹ��Ǣ�͡�͹˹�� :: ��ҹ��Ǣ�ͶѴ�  
����� ��ͤ���
ryuozero
Site Admin


�������: 13 Jul 2005
�ͺ: 1145

ͺ�ͺ�����: Fri Apr 15, 2011 8:15 am    ����ͧ: �Ըա���Ѻ��� �觤�� �ҡ flash ͺҧͤ

�觤�ҵ���èҡ asp.net, PHP,txt ��ѧ Flash AS3
function shownum(){
loadVariables("shownum.txt?t=1252468789796",_root.num);
}

setInterval(shownum,1000);
/////////////////////////
���ص�� Textfile ��˹������������ҧ���

&test1=ok test1&
&test2=ok test2&
&test3=ok test3&

�͹��Ŵ����ҡ����¡�Ẻ����Ѻ

myLoad = new LoadVars();
myLoad.load("pic.txt");
myLoad.onLoad = function(ok) {
if (ok) {
trace(myLoad.test1); // �ͧ �ʴ���ҷ����Ŵ��
trace(myLoad.test2); // �ͧ �ʴ���ҷ����Ŵ��
trace(myLoad.test3); // �ͧ �ʴ���ҷ����Ŵ��
}
};

////////////////////////

�觤�ҵ���èҡ asp.net, PHP,txt ��ѧ Flash AS3
����觤�ҵ���èҡ Text file ���� asp.net ���� PHP ��ѧ Flash AS3

Code � Asp.net :
Response.Write(topic=�������ѹ���&news=���Ǥ�Ѻ����)

Code � PHP :
echo 'topic=�������ѹ���&news=���Ǥ�Ѻ����'

Code � Text File :
topic=�������ѹ���&news=���Ǥ�Ѻ����

� Flash AS3 :
function URLLoaderVar() {
var loader:URLLoader = new URLLoader();
configureListeners(loader);

var request:URLRequest = new URLRequest("http://localhost/TestWeb/testload.aspx?id=")
try {
loader.load(request);
} catch (error:Error) {
trace("Unable to load requested document.");
}
}

function configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(Event.COMPLETE, loadvarComplete);
}

function loadvarComplete(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
trace("completeHandler: " + loader.data);

var vars:URLVariables = new URLVariables(loader.data);
//��ҵ�������
trace("����÷�� 1 = " + vars.topic);
trace("����÷�� 2 = " + vars.news);
}
���仢�ҧ��
٢ǹ 觢ͤǹ  Email
���§�ӴѺ��ͤ����ͺ�ҡ��͹˹��:   
Forum ١͡ سöͺ    Ǣ͹١͡ سö ͵ͺ    �����������֡�� -> +�+WEB+�+ ��Ѻ���� GMT
˹�� 1 �ҡ 1

 
价��:  
�س�������ö���ҧ��Ǣ������
�س�������ö�����ͺ
�س�������ö��䢢�ͤ����ͧ�س
�س�������öź��ͤ����ͧ�س
�س�������öŧ��ṹ


Powered by phpBB © 2001 phpBB Group
-- Template created by dav.bo=> PurpleStylus --


For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!