System expressions
[quote:1is081g3]random(x)
Generate a random float from 0 to x, not including x. E.g. random(4) can generate 0, 2.5, 3.29293, but not 4. Use floor(random(4)) to generate just the whole numbers 0, 1, 2, 3.
If I understand correctly ...
it seems to work...
xmlCharacters.capx
The crossdomain.xml file only works with Flash applications...
Cross-Origin Resource Sharing
RegexReplace(Text.Text,"\s\s+","g"," ")[/code:ofs0oyh2]
Browser : Open URL in new window
EDIT> for PPTX file
Displaying files on your site
pptxFileTest.capx
you can also check
[PLUGIN] iFrame & InsertHTML
&
[Plugins] Pode HTML Pack
exactly...
if ajax POST then php GET variable..
and you create new table
try:
$user = $_GET['user'];
also.. remove dots from $user - mysql_query ("CREATE TABLE .$user. (
mysql_query ("CREATE TABLE $user (
this should work..
<?php $host = "xxx.mysql.com"; $login = "u33678"; $pass = "123456"; $dbname = "u33678"; $user = $_GET['user']; @header('Access-Control-Allow-Origin: *'); @header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); @header("Content-Type: text/html; charset=UTF-8"); $link = mysql_connect ($host, $login, $pass); mysql_select_db ($dbname , $link) or die("FUUUCK"); mysql_query ("CREATE TABLE $user (id int not null auto_increment,pole1 varchar(10) not null,PRIMARY KEY(id))"); ?>[/code:i4cv1kig]
for3loop.capx
but some characters is not loading, like ç , ~ and so on which is non english characters...
try to save your text file with UTF-8 Encoding
BitBalloon
so it must start in left-top corner ...
Set position to ViewportLeft(layer);ViewportTop(leyer) ?
angryBirds_dots.capx
Google Drive 502 Bad Gateway Error
[quote:21w8wmof]....
On Aug 31, 2016, we will discontinue serving content via googledrive.com/host/[id] and the webpages will not be accessible anymore.
...
Develop games in your browser. Powerful, performant & highly capable.
Can i simply use event or may i need a MySQL server ?
you need Ajax(in C2) to send "signal -I die"..php to add 1 to count and some place to store data..
in this example I use text file to read & write data..but mysql database is better choice..
fancy website
http://korbaach.pixub.com/test/deathCounter.html
php&txt file
deathCounter.txt
deathCounter.php
<?php $file = ('deathCounter.txt'); $death = file($file); $death[0] ++; $fp = fopen($file , "w"); fputs($fp , "$death[0]"); fclose($fp); echo $death[0]; exit(); ?> [/code:197hshgk] in deathCounter.html [code:197hshgk]<h2>Morts au total = <?php echo file_get_contents("http://korbaach.pixub.com/test/counter/deathCounter.txt"); ?></h2>[/code:197hshgk] [url=https://app.box.com/s/pmca18j6qn9vom53mg6te3yjl53myicr]deathCounter.capx[/url] open capx ..check death count on web page..kill player..refresh deathCounter.html page..
if you try somethig simple ..you will see that loopindex don't wait..
you need something like this
so call & compare loopNumber in loop..