ActionScript 3.0 :: Senocular Transform Tool With Dynamic Sprites And Loaded Images?
Jul 20, 2010
I'm using the Senocular Transform Tool to allow the user to scale an image that is loaded in. The demos work fine with sprites that are already on the stage.My setup is PureMVC and the images are loaded in, then I turn the loader content into a Bitmap and put that into a Sprite.I mimmicked the source files and added the TransformTool onto the stage level then I make the target the Sprite with the image inside.This all works and when I click on the image the TransformTool pops up and is the right size and shape. Unfortunately as soon as I try to scale or move it using the tool the image skews and scale in huge increments and goes off into the wrong directions.
I tried adding the Bitmap to the Sprite with the registration in the middle. I tried using a transform matrix to move the registration point to the center.
View 3 Replies
Similar Posts:
Apr 29, 2011
how to load an external image with fileReference and loader into a movieclip such that it can be transformed with senocular's transform tool.Here's what I have so far: (It places the image down but I cannot transform it)
ActionScript Code:
var fileRef:FileReference = new FileReference();
MovieClip(root).loadBtn.addEventListener(MouseEvent.CLICK, openClick);[code].....
View 1 Replies
Mar 14, 2007
I've been using Senocular's free transform tool: [URL] in tandem with an image upload (using the fileReference class) so that users can upload an image and the transform it.
The free transform class has a function that allows you to restrict the scaling of the movieClip that you apply the free transform to, but it works on a 'scale' rather than specific height and width properties. My problem is, that I don't know what he dimensions of each uploaded image will be, so if it's restricted to a scale, some images will be allowed to be bigger than others....
View 4 Replies
Jun 26, 2009
I'm having trouble with loading in an external image that I can transform with the Senocular Transform Tool class. I have managed to load in the picture but the transform class doesn't seem want to grab it. Eventually I want to us the FileRef to upload the image but I just need to figure out how it works first. Here my code to load in the external image
[Code]...
The transform class can grab the other movieclips but it doesn't want to grab the new image loaded in from the code above.
View 1 Replies
Dec 27, 2010
Has anyone a chance to make custom skin for new transform tool v2 beta? Or can anyone guide me for a starting point?
View 0 Replies
Mar 11, 2010
I am a teacher I used the senocular transformer tool "action sript 3.0 Transformer tool [url]... to create a program for my students I want to add a reset button to it may anyone help me to do so?
View 3 Replies
Oct 13, 2009
how can I modify the code in Senoculars Free transform tool so it resizes on width/height basis instead of scaleX / scaleY like in the current version?
View 2 Replies
Jul 16, 2009
I am using senocular's transform tool AS3 in one of my projects.I am having a problem in customizing the tool, I need the movieclip to be drag only with in a rectangle.
View 2 Replies
May 1, 2011
Does anyone has a modified version of this awesome tool that can limit the dragging of the objects to a given area? me in the right direction on how to accomplish this, which class i need to modify.
View 1 Replies
Oct 15, 2008
I am using the senocular transform tool for scaling, rotating etc... skew is disabled in the tool. I Have tried many ways to flip the display object horizontally and vertically. he function I am using is given below. It works fine when the display object is not rotated. When it is rotated and then flipped it outputs a skewed inverted display Object.
function flipHorizontal(dsp:DisplayObject):void
{
var matrix:Matrix = dsp.transform.matrix;
matrix.transformPoint(new Point(dsp.width/2,dsp.height/2));
[code]....
View 1 Replies
Oct 15, 2008
I am using the senocular transform tool for scaling, rotating etc... skew is disabled in the tool. I Have tried many ways to flip the display object horizontally and vertically. he function I am using is given below. It works fine when the display object is not rotated.When it is rotated and then flipped it outputs a skewed inverted display Object.
function flipHorizontal(dspisplayObject):void
{
var matrix:Matrix = dsp.transform.matrix;
[code].....
View 1 Replies
Jun 19, 2011
i am using senocular transform tool in my flash, anyone know how to force user to scale image proportionally without pressing shift key?
View 2 Replies
Jul 6, 2009
Working with senocular Transform Tool - How to remove/disable tool for objects Im new to AS3, and i have to use it for my current project. I have used the AS2 Transform tool extensively, but needless to say, the AS3 version works entirely differently.
The way i understand it, the tool applies to and every Sprite , movieclip on stage
[Code]...
View 2 Replies
Mar 1, 2012
I'm quite new to Flash and ActionScript. Anyway, I wrote my own XML Slideshow, that's working great. The problem I have is that I can't add an 'envelope' effect to the images that are loaded as sprites. I know I can use 'envelope tool' if I break the image apart (ctrl+b) but I need to do it dynamically via AS. Is there any way to do it. Rotating the X/Y/Z axis doesn't do what I need.
View 2 Replies
Jun 27, 2010
I am fiddling around with Senocular's Transformation Tool classes, which allow for a MovieClip to be transformed (rotated, resized, skewed, etc) upon click. Just one tiny problem. I need for the MovieClip registration point to always be centered, so that when I do begin transforming in any way, it transforms from that centered registration point. Here is a picture - I need this done in As3 rather than simply creating a new MovieClip symbol and selecting the center for its registration point, as these pictures are loaded dynamically.
View 6 Replies
Jan 13, 2004
I've gotten pretty far with my file. I have successfully been able to load higher resolution tiles when a user either draws a box of an appropriate size (area 50-100% of total loads low quality tiles, 25-50% of total loads medium tiles, 0-25% loads high quality tiles). The tiles also load correctly when the slider on the zoom tool is pushed up and down. Here is my problem:
1) I can't figure out how to call the SetScale function (defined on the slider MC) so that when the user draws a box on the main map it zooms into that scale (see the functions half way down the AS layer on the main timeline where the calcArea is calculated).
[Code]...
View 14 Replies
Jan 27, 2012
I'm trying to get familiar with design patterns, modularity, unit testing and etc... (with ActionScript). I'm developing a simple "Free transform tool" right now, just as a exercise, but I don't like the solutions that I come up with so far, so I'll try to walk you trough my line of thoughts. When I come up with the idea I was thinking "What to write so I can test this great Unit testing framework FlexUnit", the first thing that I saw was guess what.. a free transform tool. :) When I was thinking about the architecture of the tool I run every scenario trough "How can I write unit tests for that thing?", so I come up with some kind of twisted MVC meta pattern:
A view that's holding all components (rotation area, drag area, resize buttons)A model (or something like that) that holds the necessary logic (setSize, setPositiom, rotateAroundCenter, etc..).And a controller that add listeners to the view components, update the mouse cursor when its over a component, get the mouse coordinates when is interacted with a component, do the calculations and call methods from the model that will update the view and the object that is benign transformed.
I was thinking: "Ok its flexible, i can switch M, V or C at any time, I achieved my main goal, because I can make lots of unit test for the model, where the important calculations are, so its great..".I just have started implementing it, but I think most of those thoughts are wrong. Yes I can change the view and add new skin but it's not flexible at all, if I want to add "skew" (or any other) functionality I should rewrite (or If I'm lucky just extend) M, V and C.Yes I can make bunch unit test for the model but controller's calculations will be hard to test.
So now I'm thinking for something like the Decorator pattern that will allow me to create whatever combination of controls i want to use and keep their logic separated, but I want to have the option to re-skin the controls themselves and to keep the logic separated so I can do the tests.I realize I want to create some kind of "ultimate transform tool", but I'm really trying to push my limits and learn something.
View 1 Replies
Dec 6, 2011
When I try to rotate using Gradient transform tool, I can't rotate my gradient 45 degrees or 90 degrees. nap to objects is enabled and holding shift also doesn't work.
View 5 Replies
Aug 3, 2010
My Text is visible before rotating it to verticle position using Free Transform Tool. But when once it is rotated to verticle position the text disappears from the Stage. And it is not an animated Text as well?
View 4 Replies
Sep 2, 2009
after i done all the animations and i want to paste it another fla. the movie clip animation positions not in the stage anymore, after i click on the timeline of the movie clip, it set path the movie clip to -8000+ X and Y. even i want to set to any number, it pop out invalid position. i have to use mouse drag the number back to position that i want. it's totally drive me crazy... really unstable.. sometimes i open back my fla, the movie clip position run too and i need to use transform tool double click set back to 0.
View 3 Replies
Feb 6, 2009
I have a free transform tool simulator that rotates an image when the middle top button is clicked and held. The image rotates to 180 and then stops. Does anyone know why it is getting stuck?I have enabled viewsource for the code. the method is in WidgetEditor.as
View 3 Replies
Jan 9, 2007
I'm working on a navigation bar based off of senocular's amazing XML drop-down menututorial. I've managed to make the menu horizontal, and changed the boxes from rectangles to squares. All of that works fine. Now I need to figure out how to add an image to the inside of each element, and I can't figure out how to do that. I've addedCode:curr_item.image = curr_node.attributes.image; to the AS, and added an 'image' movieclip inside my menuitem, but that doesn't appear to work. Here's my complete actionscript:
Code:
GenerateMenu = function(container, name, x, y, depth, node_xml) {
var curr_node;
[code].....
View 2 Replies
Aug 15, 2010
i'm trying to resize dynamic loaded images, they are loaded from a xml file into a existing movieclip in _root. When I try to resize using _height and _width the images just don't show in the swf. I searched the forum and found that _xscale and _yscale works, but I really need to resize the image with _height and _width
View 4 Replies
Mar 1, 2009
I need to dynamically create 7 movieclips (or sprites, doesn't matter to me) to hold 7 loaded images.
Here's the snippet of what I have:
Code: Select allfunction loadImages(e:Event):void
{
//create XML and image loader
var X:XML = new XML(e.target.data)
[Code].....
As you can see, the images are being loaded in from the source designated in the xml, and then I try to store each of them in a newly created movieclip. I want to have: image0, image1, image2... each with the loaded image, but I can only ever get the last image to show up.
View 4 Replies
Jun 16, 2005
loaded images dynamiclly in my flash movie and now i want to make them behave like buttons. I mean, I want [onRelease] function to work. I am sure i am doing something wrong because i cannot make it work.
View 6 Replies
Jun 29, 2010
so it all starts with this brilliant and self explanatory piece of code [URL] i need to get it working in as3, as i am integrating the code into a flash project. and need it on that main timeline. i would ideally like to do this without using xml.
View 1 Replies
Apr 10, 2011
If I am to import an image and I wish to use it as a sprite or something like that; How do I remove the white areas? For example, if I was going to create a custom cursor or something like that, an I was to use this image: Image - how would I remove the white areas, so that they are transparent. I would also like to know if it is possible to set where the center of rotation in an image is?I do all my image work on Photoshop, if that is of any significance.
View 1 Replies
Oct 29, 2010
How do i add the same images to 2 sprites?The below code doesnt give an error but only adds the image to 1 sprite[code]...
View 2 Replies
Nov 21, 2011
I'm designing a calculator-like application in Flash for a school IT project. I made the layout in photoshop, and want to lay out the buttons with sprites (was just on CSS so addicted to those things xD ). I've tried googling and have found something like you can use sprites like buttons (which is good), but I can't figure out how to apply bitmaps to sprite backgrounds vs. plain colors.
View 13 Replies
Mar 15, 2011
I don't know if the title is misleading as the image I'm loading is actually a sprite image consisting of a multi-state button. I want to load this image and split it into several display objects (sprites?) in AS3, to create a SimpleButton with an over and down state.
Right now I'm just loading the image with Loader and URLRequest, and then creating a sprite from the loaded content. Is this possible or is there any other way of doing this, without having to load two separate images?
View 1 Replies