ActionScript 3.0 :: Multiuser Pictionary / Can Share Drawing?
Mar 9, 2009
I'm trying to make a multiuser (Flash Media Server 3 compatible) version of Pictionary in AS3.(Using Flash CS3).The part that is particularly confusing me is "how can I refresh the drawing on the screen of the user who is not currently drawing?"Looking at them both they are not drawing "real time" but instead refreshing the drawing every second or so. That would be fine for me... I just can't figure out how to share the drawing. (Essentially taking a snapshot of the current state of the drawing and sending it to the other players.)Currently I'm trying to send mouse position data to the SharedObject and then back to the drawing tool but this just creates a data lag and it doesn't show on the other player's screen.
View 2 Replies
Similar Posts:
Aug 8, 2011
How can I make a Flash Application that can be shared? Shared in the sense of like a paint box. If someone is painting there then the painting must be shown to all users. This means each user can write and edit in the paint box at the same time..
View 1 Replies
Feb 6, 2012
There are several flashbased painting/sketching online apps that allow multiple users to paint simultaneously. Some examples: [URL]For a project, we want to implement something similar. The question is, whether we need to start from scratch or whether there are any libraries available that could facilitate development (especially the networking part).
View 1 Replies
Jan 12, 2011
How to share TextArea Component in multiple swfsaylib.swf (has TextArea Componenet)main.swf (Import TextArea Componenet from lib.swf)section.swf (Import TextArea Componenet from lib.swf)
View 1 Replies
Jul 15, 2011
I need a custom multi-user multi-chatroom app to extend an existing Flex app that I have.
I obviously wouldn't like to develop it from scratch, but focus only on the customizations and integration.
Are there any products (free or commercial) that provide multi-chatroom functionality from which I could start?
View 3 Replies
Nov 9, 2010
i've tried to simulate a pencil tool, for drawing above a imagem, but the drawing is below the picture. How fix it?
[Code]....
View 3 Replies
Jul 22, 2009
Basically I've got a reasonably complex drawing object in a fla and I want to reproduce it in a class definition using the drawing api. However obviously this is a tedious task, so is there some trick or automated method of doing this?
Last time I needed to do this it was a drawing of an arrow and I ended up writing down x,y,width,height values for everything but this one has curves in it which I don't have experience with drawing anyway.
View 2 Replies
Sep 28, 2009
I cannot get this to work. Without the "var drawing", "var drawing being true or false" and the "if statement", it works fine. But I need to add the "var drawing" so that you can only draw if you turn it on by pressing the "draw_btn" button. Note, I do not get an error, the script "apparently" contains no errors. Here is the code:
ActionScript Code:
var drawing = false
_root.createEmptyMovieClip("myLine", 0);
[Code].....
View 3 Replies
Jan 13, 2012
I've created a drawing tool which allows the user to draw on the canvas, the problem is that if I try to draw over a movieclip nothing happens. Is there a way I can allow for the user to draw over movieclips? For example if I had a background of paper?
Here's the code I'm using for it:
// This code is for drawing the lines on the page
//1.
var drawingLine:MovieClip = new MovieClip();
addChildAt(drawingLine,0);
[code]....
View 8 Replies
Feb 18, 2009
I need to draw on stage about 40,000 4x4 squares each a different color. The color is determined by an xml file. I have this working in as2 and have converted it to as3 the problem is the amount of time it takes to draw is causing cs4 to time out. I have extended the script time out to 60 seconds. In cs3 as2 it would draw the squares in about 15 seconds. I was hoping as3 cs4 would improve performance but seems to be the opposite. I have tried several methods such as adding children and various drawing variations. the bellow seems to work the best, but is still causing flash to crash.
ActionScript Code:
import flash.display.DisplayObject;
import flash.display.Graphics;
import flash.display.Shape;
[Code]...
View 9 Replies
Jan 3, 2009
I have the details in my flash and swf file, but I'll explain what's happening. If you click on the green "i", it opens a window, you can drag the window by the top bar next to the exit and minimize. But unfortunately, if you close this window and open other (duplicate of MC), you can not move the window like you can on the original. My guess is that the AS does not carry onto the duplicate; I am stuck right here, if I can get this fixed, it will fix a lot of my other animations. I've been trying to search for this on Kirupa, but there are no results
Code:
on (press) {
bn = "window" add n;
[code]........
View 2 Replies
Dec 2, 2004
I'm wondering if you can either specify a specific path of where to save your S.O.'s? I'm trying to share a S.O. between two swf's. I know they get saved here:
Code:
C:Documents and SettingsusernameApplication DataMacromediaFlash Player#SharedObjects
and right now they reside under two seperate folders (named after the two swf's) under the localhost. The script for retrieving and saving, as well as the S.O. name are all the same for both files although the swf file names are the same.
View 2 Replies
Jul 13, 2009
Let's say I have 2 buttons at the beginning and 2 different endings, but same sequence in the middle, how can I click on button 1 > same middle > ending 1 ; as well as button 1 > same middle > ending 2. Surely I know I can do it by duplicating frames, however it seems not right if I have more buttons and more endings.
View 3 Replies
Aug 30, 2009
Is there any way to exchange data between 2 swf's?
View 2 Replies
Mar 17, 2011
I wonder if it is possible to share live video streaming between applications on the FMIS. and also if it's possible SharedObject sharing between applications.
View 1 Replies
Jul 15, 2009
I am developing a Flex / Flash application which talks to an ASP.Net / C# backend. Is there any way I can share code between the two?The server provides a reasonably interesting domain model which the client is designed to maniuplate. Ideally I would like to be able to define this domain model once and have both sides use it for consistency. I am after all the benefits that come with being DRY.I'm new to Flex but the sort of thing I had in mind was some intermediate language that compile to both C# and ActionScript.
Update:I currently have a basic REST style web service which sends XML serialized versions of the objects down the wire to Flex. This works fine but what I am really interested in is being able to share simple business logic that goes along with these objects. There are certain business rules that need to be processed on both the server and the client and is possible I would prefer not to have to call back to the server for performance reasons.
View 7 Replies
May 11, 2009
I've followed the documentation (I think) but it doesn't seem to work. I have a root document which loads a bunch of swfs created off a 'template' that uses two fonts. Rather than embed the fonts on each swf I though I'd embed them in the calling document and share them. The documentation explains to export them for sharing and give give them an identifier string and a URL. AS3 however doesn't permit the identifier string so I assume this is supposed to work with the class name.
As for the URL I'm giving it the name of the compiled root document (home.swf). I then copied the fonts from the calling document's library to the library of one of the called documents. I then told the pasted font symbol properties to import for runtime sharing and added home.swf to the URL field. The swfs are all in the same directory but when I compile the home.fla and call the swf there is no text visible. No errors show up.
View 8 Replies
Oct 2, 2009
[url]...I added clear button, which clears all lines from user's whiteboard, but every other user who is connected to whiteboard, still sees lines. But when other users refresh the page, lines are gone too. That means I'm able to delete data from shared object, but I don't know how to update other users' whiteboard.[code]...
View 2 Replies
Apr 26, 2011
I want to share a list of visitors of chat room with SharedObject. I was going to put and array into shared object's field. Is it possible? And also I was realized that it is impossible to synchronize shared array correctly. If two visitors will add themselves to the list simultaneously, then one can be lost.Is it possible to synchronize access to shared object somehow or the only way is to write server side function to control the array?
View 1 Replies
Jul 9, 2009
I have a Flex application that I'm working on for a new job. It's sort of a training wheels application -- I'm learning the language, and this isn't an app that needs to talk to a service in order to do its job. There are a few instances of combo boxes throughout the application that share the same set of possible values (say, a selection of states: "In Progress", "Rejected", "Complete") that I want to have use the same data source.
What is the best way to manage this?
View 2 Replies
Sep 24, 2009
Lets say I have two swfs A and B, and at runtime, swf A loads swf B, and I wish to share code between them, to minimize file size and download times.
If swf B has some code (say. com.blah.HelloWorld), I tell the compiler to have swf B's source in swf A's classpath, but only do a compile-time link and not actually compile com.blah.HelloWorld into swf A
This works, and I have tried it, using a the -includes and -externs compiler options.
However, My problem is that I wish to do this the other way. i.e. swf A and B (and potentially swf C) all need com.blah.HelloWorld, but I want com.blah.HelloWorld to be compiled into just swf A, have it as an external reference in swf B ( and potentially C as well.)
I tried doing this using the externs and includes, but I get ReferenceErrors when I do this.
I want to do this without a having a separate rsl, so I can reduce the number of http requests.
View 3 Replies
Mar 24, 2010
creating an AS3 Facebook share button? I need to be able to customize the title, description and picture.
View 3 Replies
Apr 16, 2010
Are IDs attributes shared between different modules in Flex ?
i.e. I have a text area with id="text1" in my menu.mxml file.
And I want to write on it from another module mainArea.mxml
The debug gives me error, so how can I share different components ?
View 1 Replies
Apr 19, 2010
I am trying to share encryption between Action Script and C#. My task is to decrypt the following message within C#
f1ca22a365ba54c005c3eb599d84b19c354d26dcf475ab4be775b991ac97884791017b12471000def05bb77bfe9c3a97d44ef78c9449f12daf6e25b61ab1a281
It uses Rijndael encyption , ECB mode (electronic code book), Key: Pas5pr@se , 128 bit key size and block size.
View 3 Replies
Feb 14, 2011
I've got a Flex 3 website. How do I add a Twitter share button?
View 3 Replies
Oct 24, 2011
we all know its possible to make a share button for face book which allows users to share whatever item. but when we are directed to that page the user has two options. press the "cancel" button which of course closes the window, or to press the "share" button which then adds the item to the persons wall.
what i'm trying to do is determine if that share button has been pressed. see because when they press it i want my swf to trace out a message saying "thanks for sharing my item" and while i can redirect them to the page i have no way of knowing if they shared it or not. my idea was to use an enter_frame event and try and see if any data was being sent via php. because thats what the button would be doing when pressed. but i haven't had any luck making that work. here is the code so far. its a tutorial as the focus is at my problem:
[Code]....
View 1 Replies
Dec 6, 2011
I have a Singleton class instantiated in Main.swf located at domainA. The file loads Game.swf from domainB via LoaderMax [URL]. When I try to access the Singleton I guess this is not the same as the on instatiated in Main.swf.
View 2 Replies
May 22, 2009
I have an AS2 swf that has an array that is updated when a user clicks on items on the screen. The array stores the currently selected items. This As2 swf is hosted by an AS3 swf loaded in using Loader class and a local connection between them is managed by swfBridge. I want to know what the best way for both AS3 and AS2 swfs to share this array is? or how can I call a function in the AS2 (client) swf and return the array to the AS3 (host) swf when it needs to read the items from the array?
View 1 Replies
Jan 25, 2009
Just made a website with a movie trailer in it, FLV. Used a standard video component but the person I'm doing the site for wants their to be a button to allow other people to share and links to embed the video.
Is there a component that has this built in (for Flash 8) or is there another easy way to provide this info? Or what would be the code to embed just an FLV?
View 1 Replies
Jul 11, 2009
how can I share a libary over multiple swf's? Case: I made a few different swf's which all use one or two components, is it possible to create a shared libary, so that only one swf, the main swf, has to compile these components? Otherwise every swf is 20kb bigger than needed
View 1 Replies