标签: flash

多人在线Flash游戏,有可能吗?

前段时间我使用右键单击并在Flash世界中提供真正的功能甚至不可能,3天前我发现通过javascript是完全可能的,可行的

那么,是否有可能制作出像多人电脑游戏一样的Flash游戏?我的意思是,真正的在线游戏,没有延迟,没有滞后.

我听说Flash中的网络代码很糟糕,但是,你知道,我认为这也是关于右键点击...而且我完全错了:).

谢谢.

flash multiplayer actionscript-3 netconnection

-2
推荐指数
1
解决办法
2884
查看次数

AS3阵列问题

 var firstarray:Array = new Array();


 function traceArray(arr:Array){    
  for(var i:int = 0; i < arr.length; ++i) {
       trace(firstarray[i].matrix);    
  } 
 }



 for (var i:int = 0; i < 10; ++i) {   
  firstarray.push({ matrix:[1,0,0,1], prod:i}); 
 }

 var secondarray:Array = new Array();
 secondarray = firstarray;
 secondarray.push({ matrix:"hello" });

 traceArray(firstarray);
Run Code Online (Sandbox Code Playgroud)

应该跟踪结果

1,0,0,1 1,0,0,1 1,0,0,1 1,0,0,1
1,0,0,1 1,0,0,1 1,0,0,1 1 ,0,0,1
1,0,0,1 1,0,0,1你好

要么

1,0,0,1 1,0,0,1 1,0,0,1 1,0,0,1
1,0,0,1 1,0,0,1 1,0,0,1 1 ,0,0,1
1,0,0,1 1,0,0,1

arrays flash actionscript-3

-2
推荐指数
1
解决办法
179
查看次数

(PHP/MYSQL)mysql_real_escape_string不能正常工作

最近,我在插入某些字符串时遇到INSERT INTO无法正常工作的问题.我发现原因是包含撇号的字符串,这些撇号会弄乱我的代码.要解决这个问题,我一直在尝试使用mysql_real_escape_string(),但它不会做任何事情.我读到它应该在每个"危险"的特殊字符之前插入\,但是当我回显时mysql_real_escape_string()它的结果显示我前后相同的字符串,没有\ s.我该如何解决?这是我的代码......

<?php 

include "connect.php";  //connect.php connects to the database.

mysql_real_escape_string($_POST['username']);
mysql_real_escape_string($_POST['password']);
mysql_real_escape_string($_POST['sdNamer']);
mysql_real_escape_string($_POST['sdTrunk']);
//$_POST['username'] and the rest is the data entered by the user. 
$username = $_POST['username'];
$password = $_POST['password'];
$sdName = $_POST['sdNamer'];
$sdTrunkest = $_POST['sdTrunk'];

$sql = "INSERT INTO users (username, password, user_bio, starterDeck, Trunk) VALUES ('$username', '$password', 'User', '$sdName', '$sdTrunkest')";
//INSERT INTO won't work, because $sdTrunkest has string that contains an apostrophe, and mysql_real_escape_string isn't doing anything about it.
mysql_query($sql); 
exit("result_message=Success");
?>
Run Code Online (Sandbox Code Playgroud)

php mysql flash mysql-real-escape-string insert-into

-2
推荐指数
1
解决办法
1万
查看次数

使用Facebook PHP-SDK时语法错误,意外'{'

我正在尝试在Facebook上获取我的团队的Flash项目,但我无法使用任何PHP-SDK示例.我已经按照几个例子,比如github上的这个新例子(这里).但是,我一直得到一个解析错误:

解析错误:语法错误,第36行的/home/content/r/a/s/rashomon/html/projects/facebook/test/hellomyflash/index.php中的意外"{"

我下载了最新的PHP-SDK.这是我的文件结构:

.../hellomyflash/

   index.php

   src/base_facebook.php

   src/facebook.php

   src/fb_ca_chain_bundle.crt
Run Code Online (Sandbox Code Playgroud)

我在index.php中改变的唯一两行是appId和secret.

index.php:

<?php
/**
 * Copyright 2011 Facebook, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License. You may obtain
 * a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" …
Run Code Online (Sandbox Code Playgroud)

php flash facebook oauth facebook-php-sdk

-3
推荐指数
1
解决办法
974
查看次数

Flash横幅无法在IE/chrome中工作

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1000" height="309" id="FlashID" title="iMathSmart">
                       <param name="movie" value="new_banner_animation_30_days_free_trial_ver_final_08_logo_border_01.swf" />
                       <param name="quality" value="high" />
                       <param name="wmode" value="opaque" />
                       <param name="swfversion" value="11.0.0.0" />
                       <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                       <param name="expressinstall" value="Scripts/expressInstall.swf" />
                       <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                       <!--[if !IE]>-->
                       <object type="application/x-shockwave-flash" data="new_banner_animation_30_days_free_trial_ver_final_08_logo_border_01.swf" …
Run Code Online (Sandbox Code Playgroud)

flash internet-explorer google-chrome banner

-3
推荐指数
1
解决办法
1938
查看次数

闪光和动作死了吗?

嘿,我想问一些更具哲学性的东西.当我13岁的时候,我学会了编码为as2.是的我想做游戏.今天我已经老了,我有一个问题.动作脚本开发死了吗?作为Kongregate和其他门户网站声称的游戏的API之王不是动作吗?在那种情况下,闪存是什么?

哦,引发这个问题的链接就是下面的一个链接,其中Scala,一种新的创新和工作实验语言被证明更适用于我亲爱的动作中的所有统计数据.

http://www.ohloh.net/languages/compare?measure=projects&percent=true&l0=actionscript&l1=-1&l2=scala&l3=-1&commit=Update

Thnx花时间回答

flash programming-languages actionscript-2 actionscript-3

-3
推荐指数
1
解决办法
5128
查看次数

SWF文件无法在IPhone/IPad上运行

我的网站上有一个swf文件,它在Iphone/Ipad上不起作用

有没有办法在我的代码中处理这个.swf工作

谢谢

html iphone flash css3 ipad

-4
推荐指数
1
解决办法
9283
查看次数

Actionscript 3.0到Actionscript 2.0

我需要将这段代码降级为Actionscript 2.0.我不是Flash方面的专家.有帮助吗?

function resizeHandler(e:Event):void {
    g1_mc.x = 0;
    g1_mc.y = 0;
    g1_mc.height = stage.stageHeight;
    g1_mc.width = (stage.stageWidth - 550) / 2;
    g2_mc.width = (stage.stageWidth - 550) / 2;
    g2_mc.x = stage.stageWidth - g2_mc.width;
    g2_mc.y = 0;
    g2_mc.height = stage.stageHeight;
    bigPic.height = 800;
    bigPic.x = 0;
    bigPic.y = 0;
    activator.width = 500;
    activator.height = 200;
    activator.x = (stage.stageWidth / 2) - (activator.width / 2);
}

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler);

stage.dispatchEvent(new Event(Event.RESIZE));

// Set variables for numbers we …
Run Code Online (Sandbox Code Playgroud)

flash actionscript actionscript-2 actionscript-3

-5
推荐指数
1
解决办法
1520
查看次数

如何在 as3 中使用 .jar 文件

我们在 Flash AS3 项目中使用 .jar 文件吗?我需要在我的项目中导入 .jar 文件吗?

谢谢

flash actionscript-3

-9
推荐指数
1
解决办法
1476
查看次数