Flex :: Approaches / Libraries For Resize Dragging?

Jan 8, 2010

I'm currently working on a WYSISYG editor that allows the user to move, resize and rotate shapes by directly manipulating them. The resizing seems to be fairly complex when the shape is rotated. I got this working for non-rotated shapes, but it will take some trigonometric calculations to resize shapes that are rotated. The registration point is always is the middle of the rectangle because this makes rotating a lot easier. Before I start implementing this, I was wondering if anyone knew of any libraries or sample source code that does this, or could share some tips and tricks to calculate the transformations.

[Code]...

I attached a screenshot of what I'm trying to accomplish and another one that has some lines drawn onto it that should allow me to deduct the trigonometric calculations. The cross is the cursor.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Scale Or Resize The Image By Dragging And Resize Option?

Sep 19, 2011

I am working on image and i like to scale or resize the image by dragging and resize option.same working as "free transform tool" in flash (design part); i need same functionality in application.

View 7 Replies

Flash :: Resize AIR App Window While Dragging?

Apr 2, 2010

So I've noticed Windows 7 has a disturbing tendency to prevent you from dragging the title bar of windows off the top of the screen. If you try - in this case, using an air app with a draggable area at the bottom of the window, allowing you to push the top of the window up past the screen - it just kicks the window back down far enough that the title bar is at the top of what it considers the 'visible area.'

One solution would be to resize the app window as it moves, so that the title bar is always where windows wants it. How would you resize the window while you're dragging it, though? Would you do it like this?

dragHitArea.addEventListener(MouseEvent.MOUSE_DOWN, function(e:MouseEvent):void{
stage.nativeWindow.height += 50;
stage.nativeWindow.startMove();
stage.nativeWindow.height -= 50;
});

see what's going on there? When I click, I'm doing startMove(), which is hooking into the OS' function for dragging a window around. I'm also increasing and decreasing the height of the window by 50 pixels - which should give me no net increase, right?

Wrong - the first '.height +=' gets executed, but the '.height -=' after the .startMove() never runs.

View 3 Replies

ActionScript 3.0 :: Resize A MovieClip On Dragging Another Object

Feb 3, 2010

I am trying to basically migrate this: [URL] to ActionScript 3.0 or some how achieve the same resizing effect.

View 5 Replies

ActionScript 3.0 :: Resize Function - Dragging Out A Series Of Images From An Xml File

Aug 2, 2010

I could use some help with my resize function, basically I'm dragging out a series of images from an xml file, loading them into my loader_mc, and tabbing through the records with my previous and next buttons with the use of some caurina transitions (each image is positioned of stage in the x coordinate). All works a doozy, but I'm stumped with the resize thing, What I'm trying to achieve is to resize all images produced from the xml array proportionally ...I can't figure out how to do this.

I would be very grateful for any tips, advice, solution etc...so that I can learn how to do this, no probs with as2...but need to forget about that now. I've attached source files for anyone ...code so far, the bit that I cant work out is commented

[Code]...

View 1 Replies

Flex :: Changing A Flex Movie To Use Runtime Shared Libraries And Losing Text In Charts?

Dec 3, 2009

I'm creating a small size Flex movies which contains two line charts, at the moment the size of the release build swf is 343KB, which is too large for our needs.

I've tried changing the loading of the SWC file to Runtime Shared Libraries, but I found that this removed the text of the charts (the text for the x and y axis). Why would the text be removed when the Framework linkage is set as a Runtime shared library?

View 1 Replies

Flash :; Approaches To Opacity Tweening Elements?

Mar 6, 2012

I'm working with a Flash (CS5) presentation, so I have a "Next Slide" button on my app. Sometimes, I want to be able to fade in certain elements when I hit "Next Slide".My current way of doing this:

Create a MovieClip from a Rectangle with an opacity tween from 100 to 0 (with ActionScript to stop() at first frame).Copy and paste the MovieClip over the place where I want it to fade in, and give the instances a unique name.Add actionscript to the relevant keyframe of the slide with just rectangle1.play().This works fine when running. The only disadvantage is that once I have one of these rectangle MovieClips on my page, I can't see what's behind it, making it annoying to design the presentation.

View 1 Replies

ActionScript 2.0 :: Express The Limit As An Independent Variable Approaches A Value

Sep 18, 2009

I need to express the limit as an independent variable approaches a value, but I don't know how to phrase the syntax for such a procedure, or for that matter if it is even possible; for the record, I am using Flash 8. Is there a way to express limits in flash, and if so what is it?

View 6 Replies

Java :: Approaches To Creating Screen Capture Functionality On A Web Page?

Oct 11, 2011

I have read the various posts here on SO regarding screen capturing, but none seem to be answering my situation.On our website (inside a web page), essentially here is what I would like to be able to do.

User clicks on a 'capture region of screen' button.They get some sort of draggable/sizable box they can use to define the area to capture the captured area gets converted into a (preferrably) .png image is uploaded (or at least made available to upload - maybe saved somewhere).I realize this is not doable with javascript alone.So,I am open to a Java or Flash solution, and/or even a commercial solution (a drop-in java applet that I can add to our site).

View 1 Replies

Flex :: Flex 3 Resize The Label And Text When Resize The Window?

May 11, 2010

i am creating flex 3 component when i re size the window i need to re size the labels and text.how to do this?

View 1 Replies

Flex :: Where Are The Libraries? Can I Clear The Cache?

Jul 15, 2009

Where are the signed, cached flex libraries on a windows / mac / linux system? They don't appear to be in my browser cache... so where is adobe keeping them? I found the files. But can I clear the cache? After trashing the files in windows, I don't see the files get downloaded again (with fiddler).

View 2 Replies

Actionscript 3 :: Circular Dependencies In Flex Libraries?

Sep 21, 2009

I have two Flex libraries that reference each other. Both use link type "External", and I manually load then with the Loader class.I'm getting the error "A cycle was detected in the build path of project: foo".

View 2 Replies

Flex :: Mxml - Any Good Wizard Libraries ?

Sep 25, 2009

I'm looking for a good "Wizard" library in Flex before rolling my own. The important features are: Multiple custom input panels in sequence. Ability to prepopulate the data fields using an object, but cancelling at any point leaves original data unmodified. Ability to move to back and forth in panel sequence without losing data.

View 3 Replies

Flex - Determine If Mx Classes/libraries Are Supported?

Feb 25, 2011

I'm writing a helper class and I want it to be used in both flex and pure actionscript projects. For example:

public static function listenToPositionAndSize(control:DisplayObject):void
{
if (mxLibrariesSupported)
{
control.addEventListener(mx.events.ResizeEvent.RESIZE, onControlResize);
control.addEventListener(mx.events.MoveEvent.MOVE, onControlMove);

[Code]...

EDIT: One simple reason to do this is: if you check the above example, I would prefer mx.events.MoveEvent.MOVE (if available) instead of flash.events.Event.ENTER_FRAME for performance issues.

View 3 Replies

Flex :: Libraries That Support Image Editing?

Mar 8, 2011

I'm looking for something that will support image rotation, multiple image layers, cropping, etc., and allow the client to customize which features are to be shown.

View 1 Replies

Flex :: Can't Automate Some Objects Which Uses Degrafa Libraries

Jun 15, 2011

In our application ,we have diagrams which make useof degrafa libraries.When this application is automated with flexmonkey any operation done on these diagrams are not recorded nor played back.

Rest of the application like filling the textfield and dropdown are working fine.

Is there any way I could automate these degrafa diagrams like clicking on it or changing the description.

View 1 Replies

Flex 4 / Apache Ant - Cannot Load ActionScript Libraries

Jun 26, 2011

I have been searching google, Apache Docs*, and FlashPunk forums looking for an answer to this: I cannot get Ant/Flex to find and compile a folder of libraries in *.AS format.

Here is my build.xml.
<project>
<!-- Flex SDK Properties -->
<property name="FLEX_HOME" value="/opt/flex"/>
<property name="MXMLC.JAR" value="${FLEX_HOME}/lib/mxmlc.jar"/>
<!-- Project Properties -->
[Code] .....

Results in many errors of the type "Definition net.flashpunk.masks:Grid could not be found" even though when I open the directories I can see the *.AS files right there. I decided to use Ant because neither FlashDevelop for Windows nor Eclipse for Linux seemto work for me.

View 1 Replies

Flex :: Large Project - Convert Swc Libraries To A RSL?

Jan 9, 2012

my Flex project has grown to over 1 Mb in size in release mode and now I am trying to cut it up into modules.

One of my SWC libraries is fairly large and I want to use it in multiple modules, so I think I can turn it into a RSL? how can I go about turning the SWC library into a RSL? I am building with Flash Builder (Flex).

View 1 Replies

Actionscript 3 :: Three D Libraries In Flex Application For Game Development

Feb 10, 2012

I am beginner in flex as3 applications. I need to develop a 3d game using flex will you the some 3d engines used for flex applications.

View 2 Replies

ActionScript 3.0 :: Use Public Libraries That Depend On Flex Classes?

May 28, 2010

I work with Flash CS4 and lately I've been looking for certain classes to ease my work. To be more precise Atom/RSS2.0 parsing classes. But the best result I found needed me to work with FLEX. Now I can't get this to work with flash CS4. There's no apparent way to make this work. I can build my own parser or look for one that doesn't need Flex. But it looks like the future is more FLEX oriented.

EDIT : I know how Flex Code and SWC files should work. But every time I try to use them I get some bizarre error about missing classes and methods that are part of FLEX but not included in Flash...

View 1 Replies

Flex :: Flash - Resize Children When Parent Is Resize?

Jul 29, 2009

I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size.

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="40" maxWidth="40" xmlns:myComponents="myComponents.*"
horizontalScrollPolicy="off"

[code].....

View 2 Replies

Flex :: Resize Event And Resize Effect Of A VBox?

Dec 8, 2010

I'm having a little issue with the resize event and resize effect of a VBox.

I have something like this:

<mx:VBox id="container"
backgroundColor="0xFFFFFF"
backgroundAlpha=".9"
paddingTop="15"
paddingLeft="15"

[Code]...

View 3 Replies

Flex :: Acoustic Echo Cancellation In Flash Using Native Libraries

Feb 4, 2010

I have to implement AEC in Flex video conferencing application. I know that it can not be done directly in Flash. I'm thinking to write a native application or library that will do AEC outside Flex.

As far I know Adobe Connect Pro is using some external library that do AEC. I'd like to follow this direction and do something similiar.

There comes two possibilities in my mind:

1) Independend custom AEC filter.

The custom AEC filter will be run in the background and will be processing all data from microphone and sound card and doing AEC. The echo signal will be the data that is to be played but delayed in a temporary buffer, something like this: aec(input, delayed_input, output).

I don't know if it work, because Flash microphone input doesn't know about my custom input and the same with the speakers. But how it is done in WinXP/Vista that have AEC at the system level?

2) AEC filter interacting with Flex's NativeProcess.

The filter will be run by NativeProcess. Flex app will pass microphone sound, received remote voice to the filter and return voice with echo removed and then Flex will output this to the speakers. Will it be correct?

If the 2) method is OK then I have following questions:

I will start with Speex's AEC so in what format should be the data pased from Flex? If I choose Flex Speex codec for sound compression can I pass it directly to the speex library? Will be the performance OK? Calling NativeProcess library every sound frame buffer can be time consuming I think. Why there is no AEC implementation in AS3 that can be used directly from Flash? As far I know to do AEC you must have echo data and microphone data (in Flash 10 there is direct access to the microphone). There is definetly something that is stopping doing it like this but I don't know what it is yet :) Is there some free AEC implementation or a DSP library with in except Speex's that I can use?

View 2 Replies

Flex :: Resize Datagrid On Browser Resize?

Sep 28, 2010

I have a datagrid that occupies 100% of browser screen. I want the grid to automatically resize when the browser is resized to small or full screen.

View 1 Replies

Flex :: Why Do Charts Axis Values / Labels Not Show Up When Using Runtime Share Libraries

Nov 10, 2009

I have developed a flex application using the data visualization components. I am now trying to optimize the application and one of approaches I am trying is to use Runtime Shared Libraries.I have configured Flex Builder to deploy with Runtime Shared Libraries and have added the .swz file for the framework, datavisualization and rpc share libraries. After deploying, my application loads, however my axis values within each of my charts are missing. The axes themselves are shown, however they do not have their label units displayed. The series themselves are displayed too.I have tried this using the 3.4 SDK and also the 3.2 SDK within Flex Builder. I also tried compiling flex using the mxmlc ANT tasks and got the same results.I made sure that the framework RSL is getting loaded first and I also made sure that the global flash cache has been cleared before I tested.I can see from my access logs that the .swz files are getting loaded the first time I make a request for my application, so I am confident that I properly cleared the flash player global cache.

Does anyone know why my axis values would be missing only when I deploy with RSL??? Switching back to Merged mode, my application works fine and it is only when I deploy with RSLs that I get the issue.I have also tried to compile using only the framework RSL and not the datavisualization or rpc RSLs (keeping them in merged mode) and I get the same results, no axis values.

View 1 Replies

Javascript :: Client Technology Choice - Any HTML5/Canvas Libraries As Capable As Flash/Flex?

Jan 7, 2011

I built a prototype in Adobe Flex, they (customers) liked it. Everything was fine until they later told me that iPads / iOS needs to be supported too.I checked out Adobe's Packager for iPhone. We're evaluating that and we will know if it works out in a couple of days. (We need to get through Apple's red tape and certificates raj so this angle is delayed by a few days!)

There is a growing voice for using HTML5/Canvas as a technology platform itself. And despite being quite proficient in Flex, I think this makes sense.

I'm in need of a HTML5 library that can:

Render "widgets" i.e. containers with forms and components(this should be easy and possible using POHJC - Plain old HTML,JavaScript and CSS )Provide a Tree like control for laying out some data Provide a Canvas where data structures can be represented as basic shapes Provide drag and drop capabilities between Trees, Buttons and Canvas Provide some sort of Tab Navigator container (I guess JQuery works here) Interact with back-end services (JSON/XML calls will be okay, but mapping directly with back-end entities will be awesome!)Renders on latest versions of major browsers, Android OS and iOS (WebKit for mobile?)

I'm ready to give JQuery & JQuery UI a try. I looked at Sencha / ExtJS but it seems we need to maintain two code bases one for normal browsers and the other for mobiles (is that correct?)Single code base, I don't want to suggest to them that multiple code bases for the client need to be maintained. That's a last resort option and would lead to complete ruling out of HTML5 with Flash apps and native apps being developed.Canvas capabilities - I don't want to work with raw canvas and shape tags. This too is a last resort option. Is there any abstraction available?

View 2 Replies

Flash - File System, Native Process Utility Libraries For Adobe AIR/flex Applications?

Dec 20, 2011

I am looking for utility/helper classes for Adobe AIR/actionscript 3.0 file system and native process utilization. Could someone point me to opensource library projects specific to Adobe AIR..

View 2 Replies

Dragging Components In Flex?

Apr 3, 2010

so I am trying to drag around some images in a canvas. I am adding eventlisteners to the components and calling startDrag() and stopDrag() to pick them up and stuff:

component.addEventListener(MouseEvent.MOUSE_DOWN, component.startDrag)

The problem is that it is selecting the image at its (0,0) location and not where I initially click on it. So there's a sudden "jump" when I click on the image. It is not smooth.

I noticed that startDrag() has two default parameters, one of them is lockCenter and it is default to false. Maybe do I set it equal to true somehow? (I don't know how to pass arguments to my second parameter in addeventlistener)

Another question: if I want to add more conditions to it, like make a new function that uses component.startDrag(), how do I pass the component to this function while adding event listener to it at the same time? for example: I want to do:

component.addEventListener(MouseEvent.MOUSE_DOWN, some_other_function);

where some_other_function uses component.startDrag();

View 2 Replies

Flex :: Dragging A Image Within A Loader?

Mar 23, 2010

I am having trouble in dragging a image within a loader. I am able to do zooming and rotating image but not moving image with mouse. Purpose is when I zoom a image info is out of boundaries and so is hidden. To see that info users should be able to drag the image any way they want.

View 1 Replies

Flex :: Prevent In Drag And Drop, Dragging Onto Self?

Oct 19, 2009

I was wondering, if I have two list boxes, and I want to drag and drop between both of them, how do I prevent the user from dragging onto the same list (thus duplicating the item? I cannot have a situation where that is the case

View 5 Replies







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