Have Multi-users Online?
May 27, 2010
Example: If my SWF has a simple 2D charactor sprite, which moves around on a 2d background... What will I need to make it so that a player has to create an account and sign in, and then others can do the same and they can all see each other in the room. I have been unable to find resources on what it takes to turn a flash game into a chatroom or an "MMO".
View 3 Replies
Similar Posts:
Apr 21, 2010
I want to make a script that will list online users when they enter a page.Simple way is record newly entered users into MySQL and list them for example every second.But I don't think it's a good idea with tons of users like in a facebook app come in and out of the page.There would be a way with Flash and PHP sockets but I really don't want to use Flash either.So is there any option left?
View 2 Replies
Apr 30, 2004
How to make users online counter with AS and php.Sample: if in my page are 5 users and one of them close browser my page show online 4 users!!! and when another people come then show online 5 users
View 2 Replies
Apr 30, 2004
How to make users online counter with AS and php! Sample: if in my page are 5 users and one of them close browser my page show online 4 users!!! and when another people come then show online 5 users!!
View 2 Replies
May 30, 2009
i make good Online Mulit Drawing example for you herethere is a Socket Server that i made, and swf to.
View 2 Replies
Aug 12, 2003
i'm trying to create an online brochure that users design with products/images they've selected. users will be able to drag a thumbnail to a pre-designed area, then swap them around to their liking. currently i'm in the beginning stages and just learning the power of actionscript.
i've attached two sample .fla files i've been working with. the first sample i have two thumbnails drag to a target and enlarge to a defined size. the second sample i used a tutorial from flashkit --- drag drop swap. it works but the as is not up-to-date. i'm trying to incorporate the two ideas together but get bizarre effects. most of the examples i find are close but no cigar.
View 7 Replies
Sep 30, 2009
I have bought a chat package, and over 9 months i am running into the problem hat it is gooing slow with more users online. So i decided to install the "flash debug player 10" and check what exacly is happening. Within 2 minutes the flashlog.txt (error log of debug player) was 195KB I will now paste the error messages that are dumped into flashlog.txt tha occur the most and i think it seems as if the error message comes from a loop, because there are so many of these warnings:
[Code]...
View 2 Replies
Aug 27, 2004
Is it possible to creat a invisible mc with in 2 other invisible mc's and if so would there be any complications. Im trying to do something similar and it gets to the second layer but then doesnt want to load the third inv-mc. Like loading an external swf to a container mc then in that same mc have another external load and then another.
View 3 Replies
Sep 29, 2010
I know that flex does not support multi threading however, I would like to clear a doubt.I have two events that call a same function. Suppose the two events occur at the same instant (or in quick succession) will the handler be called twice, one after the other or there is a chance that if the handler function is taking too much time to execute the same handler can start executing simultaneously.
View 3 Replies
Nov 27, 2011
First my AS2 code:
txt.html=true;
txt.htmlText="This is an example: www.sample.com is not www.othersample.com";[code]....
First question is why my flash function always replace only first url? What I'm trying to do is send string from flash input textfield by PHP to mySQL table. Then, when flash will load it again all urls in my flash textfield will be clickable.Of course I can use preg_replace in PHP:
$comments = $_POST['comments'];
$comments = preg_replace("/([^w/])(www.[a-z0-9-]+.[a-z0-9-]+)/i", "$1http://$2", $comments);[code]....
I can also use some PHP function which will check whether sended data from flash already contains clickable url's, but if I need add another link in edited string, preg_replace not fire then...
View 2 Replies
Apr 27, 2003
man this site is awsome, i have learned so much. but unfortunantly i have run into a new problem. i have
for (f=0; f<10; f++) {
duplicateMovieClip(_root.guy, "guy"+f, f);
}
for (s=0; s<50; s++) {
[Code]...
only problem is, is that when the movies get duplicated, the numbers aren't right (ive done some testing and found that it is almost as if it is keeping the same variable in all the loops as the same, and is running the loops backwards (wierd)) anyways, apparently i dont know the for loop as good as i thought. i have tried rereading the for explenation, but nothin is clicking as to what i am doing wrong. any help or explenation would be great. (also, as a side question/statement-when i duplicate movieclips, they dont keep thier instante name in the duplicated ones, which is bad becuase i need to do hitTest and other things with the duplicated movieclips. any help with this would be great)
View 3 Replies
Apr 1, 2009
What is a better way of writing this.
function fade() {
_root.mcBlue1._alpha = 50;
_root.mcBlue12._alpha = 50;
[code].....
View 1 Replies
Sep 10, 2009
i got a problem with building a Menu for my website, i'm using CS3, Actionscript 3 and i've a lot of buttons for one page, but i don't really know how to code them, because i juz know how to code single Button example :
btn1.addEventListener(MouseEvent.CLICK, goToEnter);
function goToEnter(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.exaple.com"));
}
so this is for single button, how if there are 5 buttons?
View 2 Replies
May 13, 2011
I have exported a page from InDesign to FLA that contains an InDesign multi-state object (MSO) and when I bring it into Flash and export as a SWF, the MSP just cycles through all the contained images. There's an Adobe KB that states that this is a known issue and that ActionScript can be used to stop the MSO from cycling. Does anyone know the ActionScript used to stop this?
View 1 Replies
Dec 24, 2011
I have swf file containing a game with english language. for question sake will call it mygame.swfNow what I want to do, is to take the fla file and translate it to french and german and save to differen swf files.So now i have:English - mygame.swfFrench - ygame_fr.swfGerman - mygame_gr.swfSame game, different language.My question is: what is the acceptible / good way to contain text in fla file so it will be in one place? like hashtable or some array?I am developer, just not flash developer this is why Im trying to consoult Im not interested in keeping data in external files (xml), I want everything to be keept within swf.
View 1 Replies
May 7, 2010
I need to change language in a flash site, How can i change?.for example I want to change total language into Fracis in this site
View 1 Replies
May 24, 2010
If u have any tutorials, books or links related to this type of code, please forward me for this or my mail id - swamy.webdesigner at gmail.
View 1 Replies
Jun 15, 2010
I have a combobox with multi selection. when i click on add button, which ever data is selected in the Combobox, those data has to be displayed in the another comboBox.
[Code]...
View 1 Replies
May 5, 2011
I am currently playing around with flex, I have C++ background, so I am not used to AS3.The problem is in the main*.mxml file I have fx:script block and I try to define a multidimensional array like that:
public var Board:Array = new Array(25);
I use a function to initialize the 2d-array:
public function initBoard():void {
var i:int;
var j:int;[code]....
This function gets called later on in the main loop to init and reset the "board" why doesn't it work. The only difference to the AS3 documentation is that it gets done in a function.
View 2 Replies
Sep 22, 2011
I am considering using the MultiPowUpload control from element-it on a project, as well as perhaps on a second. Does anyone have any feedback on that particular control? Does it actually work as advertised, handle errors well, etc?Multi-select of files (from a single 'browse' click, not multi-textbox)Progress bar (client requirement)ueue for upload (it's ok if it can only upload immediately)
Feedback from server - custom error messages (permissions,etc)Pass the session ID automatically, but I can use a URL hack for the upload page too Be able to remove files from the queue Support large files (~50MB, really up to 300mb would be perfect) Accessible/usable JS api
Can change the view style a little bit at least! Localizable - we need english, chinese, italian, and possible a few others Resume incomplete transfers (eg, connection dropped, so on, not required, but ++)I've been working with all of these below, and gotten most of them working in demo pages, finding issues as I go along.
[code]....
PL UPLOAD WON - for now! If we get complaints, or find it doesn't work in our real life scenarios, then we'll consider switching to MultiPowUpload. But it is good enough, and we can write some JS to do a few of the missing things. With chunking I had no problems with 300mb uploads. Yay.
View 1 Replies
Feb 9, 2009
I can push into an array just fine, but now I have an array created by a for loop. It has 30 numbers in it.
Now I want to go back and add another dimension to each element in the array.
So I might have (1,2,3,4,5,6....)
and I want to go back and add ([1,"Susan"],[2,"Matt"],[3,"Marc"]... I read somewhere that I need to loop it and first make each element and array and then push into arrayName[0].push as a loop, but that doesn't seem to work either.
View 4 Replies
Jul 24, 2009
I am currently making a game involving matchsticks. i have the dragging of the matchsticks working. But now i would like to know how to check if 2 (or more or less depending on what level) of the possible matchsticks are dropped on the target. When the right matchsticks are drop in the right places i will put in an action like "gotoNextFrame" or make the continue menu visible.
View 9 Replies
Sep 20, 2009
How to add multi functions to a button ?[code]...
and by first_btn I wanna to disable one of the second_btn functions on press .
but the rest of second_btn functions remain work.how to do this ?
View 3 Replies
Sep 30, 2009
Way to build a multi-gallery using XML.Just tell me how to structure the XML file, and the proper approach of accessing and loading in the images of each separate set of images.
View 0 Replies
Mar 9, 2010
How do i traverse multidimensional array so i can turn this into value objects :
Code:
<accordion_nav>
<item branch="PATIENT TYPES" level="1" treeID="10.00">[code]......
so each items has a propery of branch, treeID, and level?
View 0 Replies
Aug 21, 2010
how to code actionscripts3.0 for multi images with different hyperlink on Flash CS4?I tried but only 1st image work. There is error for 2nd and 3rd image
View 1 Replies
Dec 4, 2010
I have this type of XML file name "test.xml"[code]...
I have to get the "post" title as button. if post doesnt have "post_child" then it will show the value inside other container_movieclip. But if it has post_child then it will show button withpost_child title as text on button inside the other container_movieclip.
View 0 Replies
Dec 19, 2010
I'm doing some application on the multitouch, everything is working fine, everything can be rotate, expand (pinch) but only one problem...all my text field disappear when I rotate it... but somehow the textfield will reappear when I rotate it back to its original angle (180 degree)...
can anyone tell me what to do so that my textfield will not disappear when I rotate it?
View 1 Replies
May 10, 2010
I need to make player like this one URL...Is there a tutorial for this on this site already? If not does anyone know any good tutorials?
View 3 Replies
Jul 25, 2010
I think im missing something really simple here. I'm just trying to sort a multidimensional array.
Code: Select allvar array:Array = new Array();
var num1:Number = 10;
var num2:Number = 20;
[code].....
View 3 Replies