Flex :: Line Weight In Canvas Object Changes During ScaleX Animation?

Jul 13, 2011

I am currently working with a Canvas object on which I am drawing curves using the curveTo() function of the canvas' corresponding Graphics object.The following animation is being performed on the Canvas object's scaleX attribute.<mx:AnimateProperty property="scaleX" fromValue="1" toValue=".5" duration="1000" />At present, this transformation is also scaling the line weight down by some arbitrary value. Is there any way to perform a scaleX transformation on the Canvas without it modifying the line weight of the lines drawn in the canvas?

View 1 Replies


Similar Posts:


Drawing - Erase Line In Flex Canvas Drwing?

Dec 8, 2011

I am making a flex whiteboard application where lines are drawn over an image here is the scenario:

1: main canvas holding the background image and drawing canvas
2: user can move image by dragging image
3: user can draw over image, which is actually drawing on canvas over image.

I'm having problem on erasing lines like it eraser in paint. Searched evry where but didnot find a way to erase drawn lines

[Code]...

View 1 Replies

Possible To Prevent A Stroke's Weight From Scaling With Rest Of Object?

Nov 4, 2009

I want to animate a person moving off into the distance, but while I want the size of the figure to get smaller, I don't want the weight of the lines that comprise the image to scale down, too. I made this little sample of a person skating (poorly) away from the viewer, and I'd like the line weight to be 9 points in the first frame and the last frame. Is there a setting that allows me to exclude stroke weight when scaling and resizing an object?

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

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

Flex :: Give MS Word Like Interface To User To Expand Or Contract Display Object's Like Canvas, Images

Dec 9, 2009

How to give a ms word like interface to a user so that he can enlarge and contract the display objects like Images, canvas, Hrules etc. at runtime in an web application?

View 1 Replies

ActionScript 3.0 :: 'scaleX' Is Moving The Object And 'x' Does Nothing?

Nov 3, 2010

Im trying to get a shape i have created to 'grow' and 'shrink as it enters different frames. Ive imported tweenClasses and i think i have everything done properly, only the scaleX and scaleY properties seem to change the position of the shape as well as its size, so instead of it just growing, it moves from the side of the stage toward the centre while growing. Out of curiosty, i decided to try altering just the 'x' and 'y' properties but they dont seem to do anything. heres the code i have:

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var infoBox:Shape = new Shape();

[Code]....

View 4 Replies

Scaling Onstage MovieClip With "scaleX" Breaks Timeline Animation?

Nov 3, 2009

I'm scaling onstage MovieClips via AS properties "scaleX" or "scaleY", which kills any kind of animation the clips have within their container MovieClip, be it Classic or Motion Tweens. When I don't scale the MovieClips, they animate fine. I'm able to tell the clips to "gotoAndStop" on their own internal frames, and that doesn't affect their animation within their container clip. I'm referencing the clips via AS w/ their instance names defined in the IDE. I've also tried different clips and recreated them, getting the same behavior.

Is it possible to scale a clip via AS and still have it animate within its container timeline? Does applying an AS property to an onstage instance somehow dissassociate it from other timeline properties?

View 2 Replies

Flash :: Scaling Onstage MovieClip With "scaleX" Breaks Timeline Animation?

Nov 3, 2009

I'm scaling onstage MovieClips via AS properties "scaleX" or "scaleY", which kills any kind of animation the clips have within their container MovieClip, be it Classic or Motion Tweens. When I don't scale the MovieClips, they animate fine. I'm able to tell the clips to "gotoAndStop" on their own internal frames, and that doesn't affect their animation within their container clip. I'm referencing the clips via AS w/ their instance names defined in the IDE. I've also tried different clips and recreated them, getting the same behavior.

Is it possible to scale a clip via AS and still have it animate within its container timeline?

Does applying an AS property to an onstage instance somehow dissassociate it from other timeline properties?

View 1 Replies

Flash :: Flex - Statically Embedding Of Assets File Weight?

Mar 21, 2012

When embedding assets of any size in the following manner -

[Embed(source="../../assets/Assets.swf", symbol="LargeButton")]
public static const ButtonAsset : Class;

it looks like the resulting SWF size jumps up ~2.8KB (in addition to the size of any assets that are actually embedded).

So I have a few related questions:

Is this because flex_sdk/frameworks/libs/core.swc must be statically linked? Is there any way to get around this restriction, perhaps by cherry picking the necessary files and compiling them to a SWC file?? Note that in the app I am writing file size is critical.

Is there a command/plugin that would allow for the transcompiling of vector graphics (drawn in the Flash Professional Authoring Environment) into raw ActionScript 3 ?

Use cases compelling this feature are improved workflow - would allow designers to draw assets in Flash Professional, compile to an asset SWF, and then be able to embed those assets (versus having to take the time to load them at runtime, or going to the effort myself to write them in ActionScript).

View 1 Replies

Actionscript 3 :: Programmatically Altering Font Face, Size, Weight And Color Of A Flex Label/Text Component?

Dec 24, 2009

I can change the color of the label in Flex Builder, I can even BIND the color to a variable and that works, but I can't find the Color PROPERTY in order to change or reference it programatically! What is the ActionScript 3.0 code to change the font or color of a piece of text in a Flex RIA - or is caring in what color your text appears too bizzarre a request for a RIA? I wrote whole applications after just minutes of "learning" flex, how come it's taken me three days and I still can't change the color of my stupid label?

View 1 Replies

Flex :: Get Mouse Events From A Spark Line Or Path Object?

Nov 11, 2010

I'm drawing an arrow as a <s:Path> and I need to get notified when the mouse is over it. How can I do that?

The arrow is an element of a Group container.

I tried registering for MOUSE_OVER events for both the container and the arrow and none seem to fire...

View 3 Replies

Flex :: Add An EventListener To A MoiveClips/Sprites's ScaleX Change Event?

Jun 5, 2010

How can i trigger an event for the scaleX property change of the movieClip or Sprite in Flash AS 3.

View 1 Replies

Flex :: Does The ScaleX ScaleY Makes The Width And Height Change

Aug 31, 2011

Am working in flex 4 the sample mxml is

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"

[code]....

on the perpendicular clicks it shows as like the second click. does the scaleX scaleY affects the width height?

View 2 Replies

Actionscript :: Flex - Setting ScaleX / Y In Mxml Effect The Components Size

Jan 1, 2010

I'm playing around with the scaleX/Y in the canvas tag and have noticed some strange behaviour. When I set scale in in mxml the width and height of the canvas are adjusted accordingly. For example if I have a canvas like this: <mx:Canvas width="1000" height="1000" scaleX="0.1" scaleY="0.1" />

The canvas now appears on screen to have a width and height of 100 and if inside my creationComplete callback I check the width and height property they are indeed 100. But if I do exactly the same thing except I set the scaleX/Y property from actionscript the canvas on screen appears to have a width and height of 100 as expected, but when I check the width and height property of the canvas they are still at the previous values of 1000.

View 1 Replies

Drag A Copied Object Around A Canvas?

Mar 10, 2011

I am able to drag a copy of an object and drop it on the canvas, using drag-drop manager functionality in Flex.

The original object remains unchanged and a new copy of the object is created. However, If i further want to drag this copy and position it differently on the canvas, I find that the object is not draggable.

Since this copy is created at runtime, I am not sure how I can achieve to drag it? [code]...

View 1 Replies

Actionscript 3 :: Flex: Move One Object To Specific Position With Animation?

Jul 14, 2011

how to make one object move to a specific point with animation in Actionscript ( not MXML code ) ? ( Flex 4.5 )

View 4 Replies

ActionScript 3.0 :: Unable To Make An Image As An Object On The Canvas

Apr 30, 2010

I have an app wer i drag and drop images onto a canvas and then move them on the canvas to arrange them appropriately. After that i shud be able to click on those images and draw connectors between them as the user seems required. But after dragging and dropping the images on the canvas and arranging them, when i click on the image i am getting a typeerror 1009 error, i.e, "cannot access a property or method of a null object reference".

Actually after arranging the images, i add an event listener to the image(proxy) on the canvas:

image.addEventListener(MouseEvent.CLICK, mouseClickk);
image.addEventListener(MouseEvent.DOUBLE_CLICK, mouseUpp);
MouseClickk Function:

[Code].....

View 0 Replies

ActionScript 3.0 :: Moving Object Down Into Center Of Canvas Then Grow Large?

Oct 30, 2009

I made a pact that I'll use only AS3 from now on but.. The tweening class is confusing me. Take a look at this: [URL]. Finding code that will make the earth move down into center of canvas and simultaneously grow larger?

View 21 Replies

ActionScript 1/2 :: Setting Drag Drop Action For Object On Canvas

Oct 15, 2009

I'm new to flash and I am just trying to create a draggable object. Easy right? Sure looks like it should be simple.

So I do this:
on (press) {
startDrag (this);
}on (release, releaseOutside) {
stopDrag ();
}

Then I do Test Movie and when I click and drag, the ENTIRE CANVAS drags. The object I set the action for AND every other object on the canvas moves.

View 5 Replies

Flex :: Changing ScaleX/scaleY On Parent Scales The Children But Doesn't Update Height/width Property?

Nov 23, 2010

I have created a custom component - MyImage - that has two children including a Bitmap as well as a Sprite.My display object hierarchy is as follows -

mx:Canvas
view:MyImage
mx:Bitmap

[code].....

View 1 Replies

Actionscript 3 :: Flex - Possible To Have Flex DataTips On Canvas Rather Than Chart Objects

Jan 17, 2010

Flex charts, like AreaChart, have wonderful built-in support for displaying data "tool tips" when a user hovers over a point supplied in the data of a graph. You can hover over any of the bar graph examples on this page for a demonstration. I have a graph situation where I optionally draw in some dots as reference points on CartesianDataCanvases supplied to my AreaChart through it's <mx:annotationElements> and <mx:backgroundElements> tags.

I would like to have the same hover data-tip functionality that the AreaChart has, but applied to these dots. I realize that I am just drawing on canvas, and that no actual dataProvider supports these dots, but if there was a way to supply the CartesianDataCanvas with an array of data values or something to that effect,

View 1 Replies

Regex :: Replace Contiguous Line Feeds Or New Line Characters With A Single Newline In Flex

Dec 26, 2011

I need to replace multiple contiguous new line/line feed characters in flex with a single new line character.

Example:

The string

"My name is blah blah

My name is blah
"

Should be converted to

"My name is blah blah
My name is blah
"

Hope the example makes it easier to understand.

I am using a component to render it.

I guess using regex would be the easiest way to do this, but still it would be great if people can point me out to references/examples to get this done with ease.

I am using flex 4.5.

View 2 Replies

Flex Get Canvas Id?

Jan 20, 2010

I'm developing an engine to generate components.I been wanting to get my xml script that read and create a component to be load into 'content' canvas. I not sure how do I get the addChild work correctly as in 'content'.addChild instead of the one shown below:[code]

View 1 Replies

Create An Animation Of Line Drawing Itself?

May 15, 2009

How can a create an animation of line drawing itself.

View 1 Replies

Create An Animation Of A Line Drawing Itself?

May 15, 2009

How can i create an animation of a line drawing itself.

View 1 Replies

Flex :: Reading Large CSV File Line By Line?

Oct 8, 2010

I need to read a large CSV file (8-15 MB) and generate a LineChart in Flex AIR. Since Chart need data in structurd format like XML. When I read CSV and convert it to XML object 8 MB file size become 24 MB XML object and not able to graph.

Best solution is to read Line by line and read only part of data. How can I acheive this in Flex AIR ? Is it possible to read line by line in Flex.

Otherwise what are the best ways to draw a graph in FLEX using large data.

View 2 Replies

Flex :: Scroll A Canvas Up?

Dec 27, 2009

The basis for the chat window is a canvas. I've got that showing, but how do I make it scroll up? I want to clip the window so only the last 15 lines are shown.[code]...

View 1 Replies

Aligning The Canvas To The Right In Flex?

Dec 8, 2010

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas width="100%" height="100%">
<mx:Canvas backgroundColor="#A8A8A8" height="100%" right="0" top="0" width="100">
</mx:Canvas>

[Code]...

My code above works absolutely fine, until i resize my browser window to a size below 800px width. When the browser window is make of lesser width than 800px, the canvas with background color #A8A8A8 is on the right of the window, but the problem is, when I move the scroll bar, the canvas should remain on the right of the window. Which does not happen, and that is what my problem is.

How can I solve this issue. What should I do to keep my canvas be on the right=0 all the time.

View 1 Replies

Flex :: Lie Two Canvas At One Tab Navigator?

May 18, 2011

I want to lie two canvas at one Tab Navigator. when I use <mx:local it created multiple tab.

View 1 Replies







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