登录后使用ActionScript 2.0 [英] POST Login with ActionScript 2.0

查看:263
本文介绍了登录后使用ActionScript 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个pretty的基本的Flash网站为客户和我有一个问题编程的客户端登录的功能,他想。目前,如果我浏览到该网站,点击客户端登录,它带我到一个登录页面。我需要这个工作的方式是 - 闪存内,使用ActionScript 2.0 - 让用户输入自己的用户名和密码,点击登录,它提交POST变量到客户端登录网页的形式作用

I have created a pretty basic Flash website for a client and am having an issue programming a Client Login feature that he would like. Currently, if I navigate to the site and click Client Login, it takes me to a login page. The way I need this to work is -- within the Flash, using ActionScript 2.0 -- have the user enter their UserID and Password and click to login, which submits POST vars to the form action of the Client Login website.

这是可能的/法律从不同的域呢?我怎么会去这样做,假设这是可能的吗?

Is this possible/legal to do from a different domain? How would I go about doing this, assuming it's possible?

推荐答案

试试这个:

myVars = new LoadVars();
myVars.username = username.text;
myVars.password = pwd.text;
myVars.onLoad = function(success) {
    	trace("yay!");
    else {
    	trace("try again");    
    }
}
myVars.sendAndLoad("login.php", myVars, "POST");

这篇关于登录后使用ActionScript 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆