English 中文(简体)
在行动文本3.0和......PHP或
原标题:Counter in ActionScript 3.0 with...PHP or?

我正在为多个客户做这一闪光标,一项主要要求是有某种反响,这样他们知道点旗者被点击次数多。

I know how to do it in ActionScript 3.0, I make a simple var:int and i increase it +1 when a click is made on the banner. What do I do with the value of this var(say its 121) where do I store it online so its safe and can be changed by multiple flash banners(as3).

但是,当旗帜装上(直线网页)时,我如何节省这一信息,点击次数是最后一次装满时的。

Should I look into PHP for that ? I have no clue how to do this... some examples, tutorials, whatever works... would be much appreciated.(I am a designer, not programmer...please dont speak php-ish, or you know... :D)

我ve了一条轨道,找到了一些帮助,但我仍然感到困惑,而且其中很多并非第3号协议,因此,我觉得也许会陷入困境,因为我感到(2008年)......。

Thank you very much.

问题回答

你们不得不在某个地方(或者在非行,在文字档案中)储存价值。

I d 寻求PHP+MySQL的辅导。 如果你不喜欢PHP-ish,你也许会更好找到另一种解决办法:p

Example tutorial:

你们需要储存你希望从多个客户那里可以检索/更新的数据,储存在服务器上。

您可以使用任何服务器的辅助语言,使用数据库。

Server Languages : PHP, ASP.net, JSP, ColdFusion
Database : MySQL, MSSQL, PostgreSQL, Oracle, DB2 etc..

无论怎样组合,你都是舒适的。

一般而言:

  1. You have a web app that increments the counter in the database
  2. call the page using URLLoader from your AS3 banner.

<>Database

counter_table
-------------
counter     INT

http://www.ohchr.org。

$db = mysql_connect( localhost ,  mysql_user ,  mysql_password );
mysql_select_db( database_name );
mysql_query( UPDATE counter_table SET counter = counter + 1 );

<>AS3 Banner

// url request with your php page address
var scriptRequest:URLRequest = new URLRequest("http://www.example.com/script.php");

// loader
var scriptLoader:URLLoader = new URLLoader();

// load page to trigger database update
scriptLoader.load(scriptRequest);

你们是否还想收回班纳的点击次数的价值?





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签