Flex :: Create A Canvas Of 1k X 1k Pixels With Zoom In An Specific Area?

Jan 25, 2012

I'm developing a web app using Flex. This app allows to draw forms in a Canvas (like MSPaint in Windows).Now, I want a new feature on it: an infinite canvas. The user should be able to drag the main Canvas and this should be infinite in X and Y axis. Consecuently, this Canvas should be resized in real time.

Obviously, I don't want to create a Canvas of 1k x 1k pixels with zoom in an specific area to give the feeling of an infinite drawing area.

EDIT:I just read that Flash/Flex Flash/Air supports canvases up to 4056x4056 px, not infinite.

View 1 Replies


Similar Posts:


Flex :: Zoom A Canvas Through Hslider?

Jun 19, 2009

i am required to zoom a canvas through Hslider. The problem is after zooming the canvas i cannot scroll to the extreme left and top of the canvas i.e some part of left and top canvas are not visible. i cannot find the reason. The source code for the example is given below.

[Code]...

View 3 Replies

Flex :: Zoom Canvas Using Matrix?

Mar 31, 2011

I was wondering how you can use the matrix to increase the component of the canvas!

View 1 Replies

Do Not Allow Editing At Specific Area In Text Area In Flex

Nov 10, 2011

I just want to do not allow editing at some area of text area in flex. How it can be done?let suppose text length in text area is 50 characters, i want to allow editing if cursor position is less than 15, and if cursor position in text area is greater than 15 it should not allow user to add more text in text area.If user press any key it should not add any character in text area.[code]

View 1 Replies

ActionScript 2.0 :: Draw *only* On The Board Area (a 450 X 350 Pixels Area) Instead On The Whole Movie

May 30, 2004

However I'd need to be able to draw *only* on the board area (a 450 x 350 pixels area) instead on the whole movie... how to "tweak it?" Here's the fla: [URL]

View 8 Replies

Flex :: How To Restrict Drag And Drop Area In Canvas

Apr 19, 2011

I have a canvas,lets say of dimensions 500x600. I have some controls inside that canvas.User can rearrange the controls by drag and drop. But I want to restrict the drag and drop within that canvas. For example: There is a button in the canvas. User can drag and drop the button anywhere inside the canvas.But if the user tries to drag the button out of the canvas boundaries, it should stick in the canvas boundary. How to achieve this?

View 2 Replies

Flex :: Place An Image In Specific Coordinates On Canvas?

Nov 30, 2009

I know that the question may seem very easy. I am trying to display an image on canvas.I need to do it in AS, and also I need to locate image in specific coordinates.

View 2 Replies

Flex :: Apply A Filter To A Specific Area Of A DisplayObject?

Aug 14, 2009

Is there any way of applying a ColorMatrixFilter to one rectangular area of a DisplayObject, leaving the rest untouched? The DO is a container, and the user interacts with objects in it, so taking snapshots to change its appearance isn't an option.

View 2 Replies

Flex :: Unable To Create Snapshot Of Canvas?

Nov 6, 2009

In my application a canvas object has height = 90 px & width = 86400 px (indicating number of seconds in a day [60 * 60 * 24] ). The canvas is scrollable and the user can add or delete components in that.Now, I want to have snapshot of the whole canvas & shrink it to size 910x30 to draw taken snapshot in another canvas.Can anybody tell me how to take snapshot of such large Component?I have tried to take snapshot in BitmapData object but as it max width is 2880 can not give whole canvas snapshot.

View 3 Replies

ActionScript 2.0 :: Check An Area Of A Scene For The Presence Of Pixels?

Feb 28, 2011

how I can check an area of a scene for the presence of pixels of a specific colour.

View 1 Replies

Flex :: Dynamically Add Different Items To ThumbContent Canvas And Use Scroller Canvas To Scroll

Jun 5, 2009

I have the following code in my flex project.

[Code]...

I want to dynamically add different items to thumbContent canvas and use scroller canvas to scroll. I see than the height of thumbContent bigger than 7977 it truncate from scrolling. So - I see the scroller canvas with empty space on top. Then I scroll to bottom - I see the content of thumbContent and at bottom scrolling I see empty space too.

View 1 Replies

ActionScript 2.0 :: Expanding Canvas Area (500px In Height)?

Jun 14, 2007

Is it possible to expand my canvas area, for example, 500px in height with AS?

View 2 Replies

Flex :: Skin A Canvas With Image And Scale It To Size Of Canvas In It?

Apr 9, 2011

I'm trying to skin a canvas with an image (which is essentially a custom border for the canvas). I've been trying the backgroundImage style as well as the borderSkin style. I can't get the image to scale to the full size of the canvas though. I was wondering what the best way to go about this is.[code]...

View 2 Replies

Actionscript 3 :: Detect And Erase Specific Pixels From An Image?

Feb 17, 2010

Is it possible to detect (dynamically) the white pixels of an image and delete them? Actually i have some images that i load on stage but they are square without the actual image be a square sized. So i want to make the hit area exactly the shape of the image and not the whit border they have.

View 2 Replies

ActionScript 3.0 :: Tween Zoom Out Of Area?

May 6, 2010

I want to build a map like google map with drag, zoom in/out effect. I also want to use tween effect. I want to zoom or drag inside a bounding rectangle. But when I apply tween, the map zoom out of the bounding container_movieclip. How can
I apply tween effect but clip inside the bounding area(like google)?

View 1 Replies

ActionScript 3.0 :: Zoom The Area Wherever Cursor Is Placed?

Aug 8, 2011

I want to zoom the area wherever my cursor is placed. I don't want all the area to be zoomed. How can I achieve this?

View 5 Replies

ActionScript 3.0 :: Increase/decrease The Stroke To A Specific Thickness In Pixels?

Oct 12, 2009

So, I have a movie clip which consists of a filled vector circle with a stroke. Is it possible to increase/decrease the stroke to a specific thickness in pixels with actionscript whilst the swf is playing?

View 5 Replies

ActionScript 3.0 :: Zoom And Move The Viewing Area Around On The Site Layout?

Mar 13, 2009

I'm trying to create a site where all of its sections are laid out side by side and the user can zoom into each section to check it out, just like this site: [URL]I have the actionscript that allows the user move the viewing area around, but im not sure how to incorporate the zooming into it. What I need might be something different entirely. Here's that:

on (release) {
_root.motionx = -950;
_root.motiony = -700.0;
_root.motionScale = 100;
}

View 2 Replies

ActionScript 2.0 :: Tween Class - Move To Screen Area And Zoom Nav

Feb 11, 2006

I'm trying to achieve a simplified version of the move to screen area and zoom nav similar to: [URL]. I've read and completed the macromedia tweening tutorials [URL] and gained overview of tween class etc., So, I created an example (credit :sophistikat) using the macromedia tween class:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
myBtn.onRelease = function () {
//first move to center in one second witih no delay
main_mc.tween("_x", 50, 1, "easeinoutElastic");
main_mc.tween("_y", 50, 1, "easeinoutElastic");
// and in 2 seconds scale closer
main_mc.tween("_xscale", 150, 1, "easeinoutElastic", 2, true);
main_mc.tween("_yscale", 150, 1, "easeinoutElastic", 2, true);
}

The script in layer 1, the bt in layer 2 and the main_mc in layer 3 - all correctly 'instanced'. But not working - the main_mc isn't moving and then zooming in when btn is clicked.

View 3 Replies

ActionScript 3.0 :: Zoom Specific Building In A DIGITAL MAP?

Jan 16, 2012

I have created a DIGITAL MAP but i have a problem. It goes like this, whenever you click the buildings in the MAP it will automatically "ZOOMS IN", it "ZOOMS IN" in that specific building that you have clicked.

View 3 Replies

Android :: If Its Zoom In Or Zoom Out On Flex / Air TransformGestureEvent

May 13, 2011

Using flex / air 2.6 working on an Android device, I am using a canvas with a TransformGestureEvent for zoom in on a map. The listening of the efect is working ok, but I canīt seem to find the information on wether the user intended zoom in or zoom out (fingers getting closer or getting apart).I expected the intention of the gesture to be identifiable with the offsetX and offsetY properties of the event, as you will do on a swipe gesture event. But I always get 0 for both properties, no matter how I do the gesture in the device.How can I know if the fingers getting closer or getting apart in a gesture zoom event?

View 1 Replies

ActionScript 2.0 :: Zoom In On A Picture At The Specific Spot Where The Mouse Is Clicked?

Nov 11, 2003

i'm trying to zoom in on a picture at the specific spot where the mouse is clicked. ie if the mouse is clicked in the lower left corner, the pic gets bigger from there, not the center of the pic.the only way i can think of to do this is to reset the registration point to the clicked position. is this possible?

View 12 Replies

Loading Video Into Specific Area?

Mar 18, 2009

how do I load video into the movie area like in the pic? where I can click on a box on bottom and the video for that will load in movie area?

View 1 Replies

ActionScript 3.0 :: AddChild Within A Specific Area?

Sep 12, 2011

I have created and added my enemyHolder class with

width:800
height:262

to this class I am adding a bunch of squares using this method

ActionScript Code:
for (var i:int = 0; i < enemyNum; i++)
{
enemy = new Enemy();

[Code]....

I thought this would only add the child within the dimensions of my enemyHolder, but they are being spawned everywhere! I'm sure it's just something with my x and y placements, but I can't figure it out.

View 6 Replies

ActionScript 2.0 :: Right Click In A Specific Area?

Dec 1, 2006

Does anyone know how in the world to make the menuItems that appear on right-click be different depending on where the user's mouse is over?

View 2 Replies

Flash - Limit The Following Cursor To A Specific Area?

Nov 10, 2009

I have a flash cs3 file where I want a mask to move on the y axis (up and down) when the user is scrolling over the navigation area.

In my code, I have:

maskMC.startdrag();

How do I limit the area where the mask will move, then make it return it back to it's original position when the user moves away from the specific area (in this case the navigation).

View 2 Replies

ActionScript 2.0 :: Export A Specific Area Of The Stage?

Aug 30, 2009

I would like to export a specific area of the stage. So, for example. My stage is 400 x 400 and I would like to export only 100 x 100 of the stage at xy 0 pos.

View 6 Replies

IDE :: Draw In Specific Area - Custom Cursor?

Sep 4, 2009

I'd like to be able to use a pencil image (custom cursor?) to draw in a defined area - its the 'ol pencil drawing a line idea on a pad. I don't know how to define the area? I've tried creating either a btn or mc instance called pad_mc & trying rollOver/Out which confines the pen but not the line. This is what I have so far, which works (ie it draws the line) but obviously it goes everywhere, not just over the mc of the pad.

Code:
createEmptyMovieClip("Line",1);
Line.lineStyle(1, 0x666666, 65);
onMouseDown = function () {
Mouse.hide();
pen_mc.startDrag(true);
[Code] .....

Also, I've got an onClipEvent on my pen_mc to try & define where its allowed to be dragged.

View 2 Replies

ActionScript 3.0 :: Add An EventListener To A Specific Area Of A Picture?

Jun 16, 2011

Is possible to add an EventListener to a specific area of a picture ?

View 1 Replies

IDE :: Create A Grid Containing Pixels In Flash?

May 10, 2009

How can we create a grid containing pixels in flash . for example A square contains a matrix of 4X4 pixel grids and these gids must be visible like sudoku board.

View 1 Replies







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