ActionScript 3.0 :: Loading External Images To Senocular's Transform Tool?
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
Similar Posts:
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
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
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
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
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
Jun 21, 2010
I have masked the video clip. The masked clip is working fine. But the Actionscript 3, which contains 2 more SWF external movie clips not loading those files. Once I remove the mask they start working.
View 9 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
Apr 13, 2010
I am making a flash site of all of my lingerie that I sell. There are over 200 pictures that amount to over 20 Mb. I would like to know if placing these images externally would be better than trying to put them in the flash movie file?
View 1 Replies
Nov 15, 2008
I'm loading a external image and want a preloader for this progress.I found this code for a preloader, but how do I connect it so it preloads the image?
View 3 Replies
Apr 15, 2009
I'm new to AS3 but trying to learn. Please be kind and forgiving. I just want to load an external image. I have been cruising the Web for days. Why doesn't this work:
var imageLoader:Loader = new Loader(); imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoadComplete); var request:URLRequest = new
[code]......
View 2 Replies
Sep 1, 2010
I am trying to change the images the following calls up. (Using CS4 and AS 2.0)
onClipEvent (load)
{
imageProperties = _root.getCurrentImageName(0);
loadMovie(_root.url + imageProperties.name, this.cont.pic);
[code]....
I get that I could find the image in the directory and just change it out with the same name/pixel size, but I'd also like to add more images to this particular project with the same conditions.
View 1 Replies
May 27, 2008
I am trying to load external images and .swf's for the first time and was wondering if anyone had any tips, or tutorials they could send my way. I am working with large imagery inside a flash banner animation and I know there has to be a quicker way to get them to load.
View 7 Replies
Apr 1, 2010
I have just started messing around in flash and made a pretty cool site (...design wise, the action script part is my major problem right now) which is suppose to go online sometime soon. I used the following script to load an external SWF into my main SWF: (I placed this script in the main timeline of my 'main' movie on frame 100 or something)
[as]
if(this.contentHolder == Number(this.contentHolder)){
loadMovieNum("content1.swf",this.contentHolder);
} else {
this.contentHolder.loadMovie("content1.swf");
[/as]
The external swf is al working fine, the preloader, buttons and thumbnails behaviour. All except for one thing: the photos wont load when i click on the thumbnails. The external SWF is a photogallery with thumbnails. The script for the small thumbnails is as following: (I placed this on the first frame inside a movie clip of a movie clip which is staged in the main timeline).
[as]
var frameNum:Number;
function photoChange(){
_root.photos.gotoAndStop("img"+frameNum);
_root.photos.fader.gotoAndPlay(2);
} btn1.onRelease = function(){
[Code] .....
View 1 Replies
Sep 25, 2009
First of I'm using Flash CS4 and AS 3.0 I'm trying to make a photo gallery for my website. I have the gallery all setup and made and now I need a preloader for loading my images. Right now my gallery is setup like this:
-A list of clickable thumbnails. (20 thumbnails)
-A UILoader
-You click a thumbnail and it loads an external image into the UILoader.
Actionscript: I have an array with 20 images. I have 20 different event listeners for each thumbnail.
The eventlistener looks like this:
thumbs.thumbs1.t1_btn.addEventListener(MouseEvent. CLICK, loadP1);
The function looks like this:
[Code]....
The UILoader is inside 2 moveclips because of a transition effect I have. The buttons are also 2 movieclips deep because of motion tweens.specific reason.
View 2 Replies
Aug 25, 2008
I want to rapidly load an image over and over again. Basically it's from a security camera that has a web server running. on it, and it stores the current image in a file called now.jpg. I can do this from AS2 fairly easily as I can just keep calling a loadMovie() on the image, replacing the old one. At one point, I had what looked like 15fps going with that. BUT, with AS3, I can't seem to get this going very fast at all. It takes at least a second to load each image. I am using the code attached to do this. It uses an interval to load, but could be done through other methods. I can run the video out of the security cam into a converter and bring it in USB with the Video() and Camera() classes, but that only gives me 640x480. The camera is actually able to generate 1280x1024 images, which is what I am loading with my AS2 code. So,any ideas as to rapidly load these images? The web server on the camera can display a live image by using javascript to keep loading the image. There must be a way to do it in AS3 if it can be done in AS2 and javascript.
View 4 Replies