Flash :: Achieve A Smooth Painted Curve For A White Board App?

Feb 23, 2010

I'm building a simple white board app in ActionScript 3. Most white board or painting apps in ActionScript tend to use an interval, timer, mouseMove event, or enterFrame event to track the mouse position and paint lines or brushes in between the tracked points.

What I'm trying to achieve is the nice smooth painted line that a program like Photoshop can render while painting with the brush tool. In Photoshop, no matter how fast you move the mouse around the canvas, the painted lines always end up with a nice smooth curved edge. In my app, using any of the methods mentioned prior, there is always latency between the function calls that render the brush to the stage. Thus, using any of those techniques can result in a sharp cornered line when moving the mouse very quickly in a circular manner.

This is no surprise to me, I just have no idea how I could achieve a smoother line like Photoshop's brush tool. Mind you, the brushes for my app are mostly based on shapes and do not or cannot use the drawing API to draw continues lines. In other words, graphics.curveTo() is not an option. I am also rendering the Sprites or Shapes generated by the brushes to a BitmapData instance.

View 4 Replies


Similar Posts:


Flex :: Video - White Board Application Development?

Oct 27, 2010

I want to develop a white board application using flex.. Can anyone tell what are the requirements and how to develop it. My plan is to develop online class room. There should be text chat, video chat, voice chat, save current class and so on.

View 1 Replies

Flex :: Share Text Area In White Board?

Jun 29, 2011

I Created a white Board in Big Blue Button.In that white board i created a text Field.. Now i want to Share the Text Field.

View 1 Replies

Actionscript 3 :: Creating Text Field In White Board?

Sep 16, 2011

I have to create a white board in Flash Action Script 3.. I'm unable to create the text box property in the white box. When i open the swf i need a text box property with whch i can create a text box field where ever the user wishes.

View 2 Replies

ActionScript 3.0 :: Building Random Shaped Close Smooth Curve

Sep 30, 2009

I need some tips, algorithms, code samples, whatever relative to building random shaped close smooth curves, that have no intersections, not many "close to intersect" parts. Pretty much like on the image attached. If there are any algorithms for the same task but allowing intersections - would be great to know too.

View 4 Replies

Flex :: Creating Simple Live Drawing / White Board Application?

Jul 9, 2010

How do I create a simple live drawing board/whiteboard functionality using flash as3, and flash media server 3.5.

View 1 Replies

Flash :: Function For Extrapolating Points On A Spline Curve Or Hermite Curve Similar To Keframe Interpolation?

Aug 26, 2011

I was hoping someone could help me working out some advanced data reformatting. What I'm hoping for is a function where I can input a value along with an array of key positions like so:

function remap(percentage:Number, keypoints:Array) { ...

The array would start with the minimum and end with the maximum point, with nested key points along the way. For example, I would input something like remap(0.25, [0:0,80:50,100:100] ) and the function would 'imagine' a spline curve graph from (0,0)-(100,100) with a key point of (80,50), then return the y value that is 25% along that graph.

View 1 Replies

ActionScript 3.0 :: Curve A Dynamic Text From A Straight Line To Circular Curve?

Sep 9, 2009

I want to curve a dynamic text from a straight line to circular curve (using a slider). I have placed the characters of the string in each textfield created at runtime.

View 3 Replies

ActionScript 2.0 :: Plotting On A Curve - Return The X And Y Of A Point Along That Curve?

May 10, 2007

I have a curveTo an anchor point and a control point.Then I have a function that will return the x and y of a point along that curve if I give it a number as a percentage of the curve (0 to 1).It looks like this, and works perfectly..

Code:
function drawOnCurve( interval:Number, x0,y0,x1,y1,x2,y2)
{
interval = Math.max( Math.min( 1, interval ), 0 );[code]....

x0,y0 are the start point, x1,y1 the control point and x2,y2 the final anchor point.But... I want to give it a _y value instead of a percentage (interval) and it return where on the curve that would intersect.

View 2 Replies

ActionScript 3.0 :: Textfield Painted Into Bitmapdata Bug ?

Jan 24, 2009

If I create a simple Textfield and place it on the stage, it looks good.If I take the same Textfield, and paint it into a BitmapData (first putting the Textfield into a Sprite so I can paint it), the resulting BitmapData is not the same, pixel for pixel, as the original textfield on the stage.refer to the attached image for a zoomed in view on the differences in the aliasing. What can I do to keep the two pixel-for-pixel identical?

Code:
private static function doTest( stg:Stage ):void
{
var tf:TextField = new TextField();[code]....

View 1 Replies

ActionScript 3.0 :: A Board Game - Get Classes To Putting Together A Board Game?

Mar 22, 2010

where to get classes to putting together a board game, free of course.I do not want to use them actually but get the idea of how mine would incorporate into the classes.I have a board game where I want each square on the board to know if it is occupied or not, to change its color, and to keep track of what is actually happening with it.

View 2 Replies

Brush Transition - Image Display As Being Painted On Screen

Nov 17, 2010

I am trying to create a transition where an image looks like it's being painted on screen, much like the brush transition in the link below. [URL]. Can I create something this on a timeline without action script? I also want to maintain the brush stroke and diagonal look when wiping to a new image.

View 1 Replies

ActionScript :: Custom Flex/ UIComponent Keeps Getting Painted Multiple Times During A Resize?

Nov 19, 2010

I've created a custom uicomponent and whenever the browser or its specific container is resized, a repaint occurs but the contents of the component get drawn again and again and again...So, if I move the container I'll end up with multiple circles drawn on top of each other but offset depending upon where the container is when the repaint occurs.My updateDisplayList code is below.Do I need to do some sort of clear so that it doesn't contiuously getting duplicated like this?

override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
trace("height: " + parent.height);
trace("width: " + parent.width);

[code].....

View 1 Replies

ActionScript 2.0 :: Smooth Resize Onclick And Animation To Be Smooth?

Feb 9, 2004

I have a movieclip that I want to be resized when a button is clicked. I want the animation to be smooth as if it had weight though. I read the tutorial on this but I need something slightly different, I would rather it where I can just refer to a function that is set in another movieclip. That way I could easily refer to it again and just set the height, width, and if possible, x, and y.

And my second question, is how to keep the border of my movieclip that is going to be resized the same thickness. I want the inside to be resized but the sides to stay the same width but move to stay on the edge.

View 8 Replies

Professional :: Flash Achieve The Same Effect As The Link?

Jan 19, 2010

I am asked to prepare an interactive and dynamic presentation in the area of enterprise architecture. The source of data should store in database. The effect I want to achieve is something as the link below. Can Flash do it (I guess so but still want to confirm)? But I could not find any similar Flash samples on the internet [URL]..

View 2 Replies

Professional :: Way To Achieve Function Within Flash CS4 / Cs5 For That Matter?

Nov 29, 2010

I can reflect an image in both Photoshop and Illustrator. In Photoshop by flipping either horizontally or vertically.In Illustrator by using the "dedicated" Reflect Tool.Why can I not reflect...or flop an image in FLASH?Is there a way to achieve this function within Flash CS4 or cs5 for that matter?

View 3 Replies

Flash :: Jquery - How To Achieve Glow Effect Apart?

Nov 26, 2011

Is it possible to make a glow effect any other way then flash? I want to get rid of the whole flash menu and use something browser friendly.I am looking for alternatives or similar effect.

View 3 Replies

Actionscript :: Achieve Volume Slider Effect Like On Vimeo In Flash?

Apr 15, 2012

The video player (aka moogaloop) on vimeo.com has a neat visual effect for the audio volume slider. There are a number of sound bars that rise and fall when the mouse hovers over them. The volume level is shown by a blue filled area under the bars with pixel precision.

how can the multiple masks (bars) be used to cover a single blue rectangle?

Update: Masks in flash: "the mask item acts as a window that reveals the area of linked layers beneath it [...] A mask layer can contain only one mask item". How do I get multiple masks to clip over one layer?

View 1 Replies

ActionScript 2.0 :: Achieve Ribbon Effect At The Beginning Of Flash Template

May 1, 2010

I was just wondering if anyone knew what software was used to achieve the ribbon effect at the beginning of this flash template: [URL]

View 2 Replies

Message Board Creation Using Flash CS3

Aug 29, 2009

I am building an ambitious site especially for someone new to the Flash.I want to create a fully functional Flash Forum.Only problem is I have not found 1 site with information on how to build one and the only thing I did find was something called the Flash Forum Engine. It is a 3rd party software suite that allows you to build a Flash Forum BUT! it costs 1000 Euro's or $2000.

View 4 Replies

ActionScript 2.0 :: Flash Message Board?

Sep 25, 2006

how to make a basic message board in flash... I just basically want people to be able to leave a quick note on my website if possible.

View 1 Replies

Attach Text To Curve / Path In Flash CS3?

May 25, 2009

How to attach text to curve or path in Flash CS3 to look like this:

View 1 Replies

Flash :: Create A Discussion Board / Forum Using It?

Aug 28, 2009

I checked the WWW and used search here but I keep ending up with dead ends or inactive sites.

Is it possible to create a forum using Flash?

View 4 Replies

Actionscript 3 :: Representing A Monopoly Board In Flash?

Aug 1, 2010

I'm brand new to Flash (and game programming, really), but want to learn a bit of it. My overall learning project is to create a Monopoly clone in Flash. nfortunately, I'm struggling to get over even my first hurdle-how to create the board graphically, and how then to deal with it in the code. So far, my thoughts are to break the board down into the different sizes of tiles (the normal property ones, the corner 4 and a large one for the middle section), then somehow place these all in the correct position relative to each other and keep that positioning correct as the pieces (and thus the camera view) move about the board.

Is this a good approach, or is there a better one? where I can find a tutorial specifically on creating board games in Flash (any sort really, wouldn't have to be Monopoly but just a game that has a board which tokens move across - and preferably which has to pan as well).

Also, as an aside, is there any way to have a dynamically coloured rectangle in a flash MovieClip (like you can have dynamic textboxs)? I ask because it would be useful if there was, as I could generate every property tile with just one MovieClip which took a name, a value and a colour...

View 4 Replies

Flash :: Line Chart Possible To Achieve Using Adobe's Built In Charting Component In Flex?

Jan 13, 2012

I'm new to Flex/AS3. I've attached an example line chart below. I want to know if this type of graph can be created using the standard line-series chart available in Flex (Flash Builder 4.6), or whether there's something drawn below that is non-standard and would therefore require some rather involved customization. The key features are:

-Different line styles and colors (dashed, dot-dash, solid, thick, thin, opacity)
-Placement of units (y-axis "seconds" and x-axis "Hz")
-x-axis zoom/pan control bar below graph (move knobs in and out to set x-axis min and max plotted values)
-Log x-axis scale, linear y-axis scale
-Data Tip (or, some call it tool tip, not shown below)
-SI units for x- and y-axis tick labels.

My guess is that everything should be pretty standard to accomplish using Adobe's built-in charting (with the possible exception of item 6, see below). Is that a good assumption?I'm particularly concerned about the x- and y-axis tick labels (item 6). For example, the x-axis tick marks as a number would be:1, 10, 100, 1000, 10000, 100000, 1000000, 10000000 but they need to be replaced with SI units, where k=1000, and M=1000000, so the corresponding marks would be (replacing the numbers above with the strings below)"1", "10", "100", "1k", "10k", "1M", "10M".The same goes for the y-axis, where p represents 1e-12, and n represents 1e-9.I can create an algorithm that accepts a number and outputs a string to do the SI unit conversion. But given that, is there a way to easily manage the tick mark labels to replace the default numbers with such strings?

View 2 Replies

ActionScript 1/2 :: Change The Background Color To White And Should Also Display The Text ''white'' In The Dynamic Text Box

May 20, 2009

I'd like to be able to click on each of the buttons and have the background color change and also have its color name loaded in the dynamic text field. E.g. Clicking the white square would change the background color to white and should also display the text ''white'' in the dynamic text box. I've sorted out the colour changing part with the following code:

[Code]...

View 4 Replies

Flash Not Allowing To Curve / Distort Rectangle Edge?

Dec 31, 2011

With the select tool, I placed my mouse over the edge & it changed to the little curve sign, but when I dragged it, it just moved the rectangle. Same thing when using the transform tool.

View 3 Replies

ActionScript :: Flash - Implementation Of Elliptic Curve Cryptography ?

Jul 14, 2011

Does anyone know if there is a (preferably efficient :-) ) implementation of elliptic curve cryptography for ActionScript? The only library I know of is as3crypto, which offers great implementations for symmetric cryptography, hashing and several other cryptography-related operations, but it has only RSA for public key cryptography.

View 2 Replies

ActionScript 1/2 :: Flash Game High Scores Board

Sep 29, 2010

I know this is a subject that gets covered a lot as i have found a ton of tutorials that show a million different ways to create a high scores board on a flash game. So I decided to go out on a limb and pick a tutorial out to try. Well I have now tried 3 different ones and have yet to get a working high scores board with my game. [URL]

That is the link to the most recent attempts to creat my high scores board. When I finished everything the way the tutorial said it seemed like everything would work and then it just didnt. After spending oh about 40 plus hours trying to make a high scores board I am getting very frustrated. My game is scripted in AS2 and I have access to mysql and can set up unlimited databases.

View 7 Replies

Flash :: Drawing Board In Professional CS 5.5 Installed Or An Extension?

Sep 20, 2011

Is there a drawing board in Flash Professional CS 5.5 installed or an extension? I want to use it to display a text string, and the user would be able to draw above the text. For example I could display a question and the user would be able to circle the right answer. Is it possible?

View 1 Replies







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