Draw Application And Share Object?

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


Similar Posts:


Actionscript 3 :: Share An Array Between All Classes In An Application?

Aug 27, 2011

I want to share an Array which all classes can "get" and "change" data inside that array. Something like a Global array or Multi Access array. How this is possible with ActionScript 3.0 ?

View 2 Replies

Flex :: How To Embed Share On Facebook Button Into Application

Sep 9, 2010

I'm trying to duplicate the behaviour of the "Share on Facebook" button from Youtube. Basically, inside a Flex app I'll have a button and when I click it I want a popup that enables me to post something on the wall. While it is possible to make a call to javascript to open the pop-up I want to be able to set the images and the text of my posting. How I could set the images or text as a parameter to the sharer window?

View 3 Replies

Actionscript 3 :: Share TextArea Component In Multiple SWF - Runtime Share Library?

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

ActionScript 3.0 :: Share Size Properties From One Object To Another?

Mar 28, 2011

I want to set it up so the size properies will  pass over to the block (same object size - height and scale) but also  changing the collision properies so the player will be enable push the  block around the screen but I'm not sure how to implement such  functionality/feature. I've experimented with two ways so far; 1.) The enemy changes to a frame of a block when he dies (illusion of a  different object but the same object with a different frame on the  timeline) using the same size properies but I can't seem to the change  the collision properies from it's prior setting of causing damage and  re-bound/bounce to the player. 2.) The enemy is removed completely from the game and a new block object  is added in the same position where enemy died but I can't share/code  the same size properies to this new block object making obvious that is a  different object. Here is a code I've what I've done so far (which is attempting to do first approach);

[Code].....

View 13 Replies

Flash :: Share Same NetConnection Object Between Two Views?

Jun 11, 2011

Flex Mobile applications are view based. And I'm using Adobe Cirrus (im assuming its the same for any FMS netConnection) Does anyone know how to maintain a persistent netConnection between views in a flex Mobile Application?[code]I want to be able to trace(netConnection.nearID) on this view, go to another view and trace(netConnection.nearID) and get the same result. and be able to have a cirrusStatusHandler() function like I have a above to listen for cirrus events. Then be able to do netConnection.close() on another view if i wanted to to be able to close the connection.

Brainstorming Ideas what I was thinking I could do:I was thinking I could maybe set up the connection on the main ViewNavigatorApplication mxml file, but i have so much going on and being triggered based on netConnection status events it seems it might be really complicated to handle everything from that mxml file on each of the views. Maybe I could declare the netCon vars in the ViewNavigatorApplication mxml file, and just add event listeners to those vars on each view? But i'm not familiar with accessing vars that exist in the mainViewNavigatorApplication mxml file.I just need to be able to make the connection once, and then it stays persistent until I call netConnection.close()I guess I could use separate views where I dont need the netConnection and just have this particular view use "states" inside the view where the netCon needs to be persistent. It just seems silly be be using states since this is a view based application.[code]and the same in my Home View but i'm getting a null error when i try and call trace(netConnection.nearID) in the crationComplete function on profileView (which is after homeView) to see if it still has the same netConnection and should then be able to get the same nearID

View 4 Replies

ActionScript 3.0 :: Set Up Different Projects That Share An Interface Object?

Apr 9, 2010

i was wondering how you guys set up different projects that share an interface (interface object, not an UI element). i have several modules in separate projects that use an interface from the main project. right now i'm either doing it by copying and pasting the interface to the module projects or by adding the source path to the project.

View 4 Replies

ActionScript 3.0 :: Application To Draw Rectangle On Stage?

Dec 8, 2009

I'm learning ActionScript 3.0 and I made a small app to draw rectangles on stage. Now I want to drag&drop them around. I want to be able to click on an object, without triggering the stage.addEventListener(MouseEvent.MOUSE_DOWN, clickEvent); but when I click on an object, it also triggers that event. How can I save the click on object from triggering that event on stage?

Here's the code:
Main.as
package {
import flash.display.Sprite;
import flash.events.*;
public class main extends Sprite {
var startX, startY, endX, endY: Number;
function main() {
[Code] .....

View 0 Replies

ActionScript 3.0 :: Sockets - Flash Application And Windows Application Works For String Buffer But Not For Object?

May 6, 2011

I want adobe sockets to send "customized" class object to a server socket(WinSock2). I used socket.writeObject(myClassObj). Actually My flash application and windows application works for string buffer but not for object.

Code:
//Flash
var buffer:String = "God Bless Us";
socket.writeUTFBytes(buffer);

// WinSock2
iResult = recv(ClientSock, recvbuf, recvbuflen, 0);

Is there anything I must do before writeObject() is used.?

View 3 Replies

Actionscript 3 : :Improving Slow Performance Of Drawing Application Using BitmapData.draw()?

May 27, 2011

I am using a custom Flex skin to create an active blur/frosted glass effect on the background of floating Panels, TitleWindows, and other containers (similar to http:url....). There is a background image in the Application skin, and potentially any number of other components above and below the active blur component. Here's some relevant code within the skin:

public static const BLUR_FILTER :BlurFilter = new BlurFilter(16, 16, BitmapFilterQuality.HIGH);
private var _bitmapFill :BitmapFill = new BitmapFill;
private var _matrix :Matrix = new Matrix;[code]....

Unfortunately, the performance of this when the component is being resized, and especially when moved, is poor. There is noticeable drag delay and overall slowdown, and this is with only one popped-up TitleWindow in the test application. There is especially poor performance when components inside the TitleWindow are changed (button hover states, etc.)I've attempted to optimized a little bit by avoiding reinstantiation of the blur filter, bitmap fill, and matrix, but this has had little or no effect. I removed the blur at one point, just drawing the Application to a bitmap, and the performance is still poor, so it's clear that it's mostly the BitmapData.draw() call.

I've read about using scrollRect and cacheAsBitmap, but I'm not sure where to apply these properties (or other optimizations I'm not aware of) within the Application or its components.

View 2 Replies

Actionscript 3.0 :: Add A Non-visual Object Like My SndManager To The Application Object?

Apr 10, 2010

Lets say I have a visual component (button) and a non-visual Object that receives a message and generates music in realtime (using an internal Sound object, etc). What's the best way to make the connection in OOP/AS3? In other languages, I've used to add the objects to a top level object (something like the Application object) and let them see each other. Example: Add button to App, add SndManager to App. Click on button, notify App, make App invoque the play() method on the SndManager.I'm asking you this because the above example looks odd to me. In fact, I'm not sure if I can add a non-visual object like my SndManager to the Application object.how can I bridge this?

View 1 Replies

Flex :: Draw All Elements Of Display Object?

Apr 1, 2011

I am trying to save a component as a JPG file and I can't seem to get the BitmapData.draw() to give me the pixels I'm expecting and instead I am seeing a plain white rectangle when I open the resulting JPG file. I am first creating an object which contains an image and a caption (the MultigraphCanvas below) and when I display the object as a pop up it looks perfect -- however when I try to draw it as a bitmap and then encode and save it as a JPG I don't end up with the same image I can display on the screen. [code]...

View 3 Replies

ActionScript 2.0 :: Masking Draw Object Effect?

May 19, 2004

i have a simple .fla here which by using masks appears to "draw" a wavy box... (kinda choppy, just made it fast for example), what i am wondering is if there is a same way to achieve this effect through actionscript (not just draw a box, but to reveal any picture or shape, for a "drawing effect")[URL]. i'm kinda newish to AS, not much more then basics.

View 4 Replies

Professional :: Draw, It Keaps Convert To A Drawing Object

Aug 24, 2011

how to turn that "Drawing Object" thing off! I cant even fill it in! (the thing i draw) Im using Flash Pro CS5

View 1 Replies

Actionscript 3 :: Draw Shadow Without Filter On Graphics Object?

Sep 27, 2010

I have a complex graphics data on a sprite or a shape (no matter which is exactly). But I want to draw shadow (inner too) for one Rect ( [10, 10, 240, 25] for example) or another path.

[Code]...

View 1 Replies

Flash - Draw A Bitmap In Graphics-Object At Any Position?

Mar 30, 2011

Is it possible to draw a Bitmap to a Graphics-Object like

this.graphics.beginBitmapFill(bitmapData, matrix, false);
this.graphics.drawRect(0, 0, w, h);
this.graphics.endFill();

with an offset?

A simple moveTo(x, y) call before beginBitmapFill does not work :/ Neither does changing the x and y value of drawRect... (That just seems to have the same effect as an translation with the matrix...) Additionally I don't want do draw that thing in a separate Graphics-Object and add that one into the other...

View 2 Replies

Actionscript 3.0 :: Draw Outline Of Object Or Get Bezier Points?

Jan 10, 2009

I am struggling with an issue where I want to create a function that draws an outline of any object and I want to use this outline as curve path so I can animate objects on this path using Tweener. Like that:

Code: Select allvar path = new Array();
path.push({x:300, y:0});
path.push({x:200, y:400});

[code].....

View 4 Replies

ActionScript 3.0 :: Draw Border For Even/uneven Shape Object?

May 25, 2011

how to draw border for even/uneven shape object? it is stored in a movieclip

View 0 Replies

ActionScript 2.0 :: Images - If Alpha Is Set To 0 Does Flash Have To Still Draw The Object?

Oct 2, 2003

All the images have to be in timeline 1 on different layers(they all have to be in timeline one........).I have a frame, it has a lot of images on it, with them all set to _alpha = 0;

on a button press the required image has its alpha set to 100;

however this means there will be a lot of images on the screen at once....

If alpha is set to 0 does flash have to still draw the object, is there a better way ?

View 5 Replies

Flex :: Draw A Circle Inside Border Container Using Graphics Object?

Apr 5, 2011

My basic requirement is to draw a circle inside a BorderContainer with the layout set to BasicLayout.I run this method in the CREATION_COMPLETE event of the BorderContainer object.[code]I know I must be missing something VERY basic here. Can I just draw like this OR should I draw in some other event? I know that I can create a Ellipse object and easily add it to the border container but I would like to know how I can do this using the graphics object.

View 3 Replies

ActionScript 2.0 :: Have A Function Draw A Box Around An Object By Finding The Objects Instance Name Via A String?

Jun 5, 2006

Is there a way to have a function draw a box around an object by finding the objects instance name via a string?

such as:

Code:
function BoxObject(object) {
//code to draw a box around the object
}

and then juts have an object with an instance name, like "my_mc" and then call the function on a keyframe like:

BoxObject("my_mc");

View 10 Replies

ActionScript 2.0 :: GetBounds() - Get A Movie Clips Coordinate Bounds And Use The Minimum And Maximum Values Of X And Y To Draw Rectangle Around The Object

Apr 11, 2007

I'm having a little difficulty getting to grips with the getBounds() Movie Clip function. I assumed the getbounds() method simply got the boundary coordinates for the movie Clip, that one could use to draw a rectangle. This is what I'm trying to do;I'm trying to get a movie clips coordinate bounds, and use the min and max values of x and y to draw rectangle around the object. Simple right? But in my case, I'm getting some unexpected results. I wonder does ther registration point of the object determine the coordinate values? Also are the coordinate values local to the clip instance or global to the stage?

[Code]...

View 5 Replies

ActionScript 3.0 :: BitmapData Draw() Method - Draw The Bitmap On The Stage At Design Time?

Mar 18, 2009

I am using the draw() method of the BitmapData to encode a jpeg of part of the image. Now this should be easy enough given the object I want to draw to the bitmap is on the stage at design time so I know its location and dimetions exactly! Heres the code I have in place.

Code:
var myBitmapSource:BitmapData = new BitmapData ( street.width, street.height, false, 0x333333);
myBitmapSource.draw(street, null, null, null, new Rectangle( 96, 5, 571, 450 ), true );

I know for a FACT that no part of the street clip I am drawing out is in negative space, and it's registration is (0,0). However, it cuts off A lot of the top of my image. y=5 in the above rectangle is where I need the top to be, but it cuts the top off of the image... even if I change it to 0, it has no effect.

View 2 Replies

ActionScript 3.0 :: Youtube Api Draw - Error #2121: Security Sandbox Violation: BitmapData.draw

Jun 30, 2011

I'm making something that requires me to draw() the youtubeplayer Giving me this pretty error:

[Code]...

View 4 Replies

ActionScript 3.0 :: BitmapData.draw() Failing To Draw Entire MovieClip?

Dec 15, 2009

I'm trying to do some lean blitting for an object that rotates by rotating it once at startup and capturing a BitmapData snapshot of each 5 degrees. The problem I'm having is that the draw() method of the BitmapData object is only picking up pixels in the MovieClip that are below and to the right of the registration point. If I change the MC so that the registration point is in the top left corner, I sometimes get what looks like most of the pixels, but the entire object rotates into and out of the frame, since it's rotating around the corner and not the center.

View 5 Replies

Modify Application To Use The Soundchannel Object?

Oct 23, 2009

so I have a lot of classes in actionscript 2. But I need to modify my application to use the soundchannel object for audio monitoring. as far as i know this is only in actionscript 3. so it it possible to write one class in AS3 and leave the rest in AS2?

if not is there a conversion tool which can make the process easier?

View 2 Replies

Flex :: Set SWF Object To Background Of Application?

Jan 13, 2011

I am Creating one application in which I want to set one swf as my application background.

I am able to set background but it is only coming with some area only.

It is not coming in the whole application.

It is not scaled in the whole application background.

I am using 9-slice scaling with that background SWF.

View 2 Replies

Java :: Can A Flash Object Be Exported To An Application

Mar 2, 2010

Is it possible to play a Flash object/file into a jframe < netbeans > / any java application ?

View 1 Replies

Actionscript 3 :: Movieclip - Draw Line Without Using The Draw API?

Apr 5, 2012

I need to be able to draw a thick patterend line between 2 points in AS3, I can't use the draw API because it doesn't all me to actually put detail (pattern etc) into the thickness of the line, I thought about perhaps using the line to create a bitmap version and then using that as a mask, but I remember many years ago seeing some examples that use a movieclip as a source for a line.

View 1 Replies

ActionScript 3.0 :: Remove All Object In Stage When Application Closing?

Oct 12, 2010

i need to remove all object in stage when application closing,how i will get Exit Event for application(not for AIR).

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved