ActionScript :: Create Own Undo/redo Classes?
Jan 17, 2011
i've been unsuccessfully attempting to create my own undo/redo classes that work well with any type of possible undo and redo commands.
for example, my simple class works perfectly with undoing/redoing x and y positions of display objects or undoing/redoing values of sliders, etc., but things get dicey when i try to tailor my classes to also work with things like adding and removing items to a list.
is there any well known and well documented solution for general undoing and redoing for actionscript (without Flex)?
View 1 Replies
Similar Posts:
Sep 5, 2009
How to implement undo/redo functionality? Actually I have a painting canvas in flash in AS3.0. For it I need UNDO/REDO functionality as user draws.
View 2 Replies
Dec 2, 2009
Im wondering how to implement undo redo functionality with a TextArea. I already have an undoredo framework functionality working, now I have two questions.When do I start/stop a new undo/redo command, eg when a user hits undo, how far back do I go. How do I implement this(1.) in a normal TextAreay thinking:I thinking that I should create a new undo command, when anything but a alphanumber+space is hit. To do this I would use the keyDown event and test if the key is alpha num if it is not I will reset the command.
View 3 Replies
Nov 16, 2011
I am going to create an application in that i have to implement an Undo and Redo feature. In the application there will be multiple objects located on stage and user can customize the position of the objects. But when user clicks on Undo the object go back to their default position and after clicking on redo object will move on the new position. So my question is how can I apply these feature in my application? Is there any library or any third party classes?
View 3 Replies
Jan 21, 2010
Loads an image to an Image component Transform the image (rotate, flip) with the Matrix Apply filter(s)
Now I am thinking about to create some undo redo functionality. Each time I do a transformation / add an filter I want to be able to go back to the previous image (before the action).
My thought is to have an Array and add the previous bitmap to the stack. But I see that there are some differences between transformations and filters I have also seen the ImageSnapshot and whot i can do and it looks like what I am after.
View 1 Replies
Apr 11, 2007
i'm making a drawing tool in flash with the ability to draw shapes, put text, etc. i need to incorporate undo/redo facility in it. is there some efficient way to go about it? or will i have to go the hard way, remembering in some way the last three actions performed by the user in an array or stack or something??
View 2 Replies
Aug 7, 2010
I wnat to make my movie clip undo redo how to make them in flash application similar to Microsoft office 2003 application..
View 1 Replies
Nov 24, 2009
1. Can I create an UNDO button to my runtime editing website?
2. Can I create a REFRESH button which will only refresh the current frame?
View 2 Replies
May 3, 2009
I somehow hided the frames:How du i undo that?
View 2 Replies
Nov 21, 2010
what is the meaning of top level classes. and how to create toplevel classes.
View 1 Replies
Jan 17, 2009
In AS1/2 I would use functions to create class-like structures;
it would be nice to be able to, for the sake of convenience, use classes on the timeline
View 3 Replies
Feb 7, 2011
Is it possible to create Abstract classes in AS3?
In other words, is it possible to declare a virtually pure method in AS3?
For instance, from my C++ knowledge, is it possible to do something like this in AS3[code]...
View 2 Replies
Apr 5, 2005
does anyone know the format for setting up classes in AS? Also I was wondering if anyone knows if there is "type." A type in some programming languages is exactly like a class but its much easier to call into a program. Okay right now I just need to find out the format for classes
View 5 Replies
Jan 12, 2011
I have a problem with functions, i'm creating a painting app in flash as3. i want to draw two different style a pen and rectangle.
When i draw pen style in first frame there is no problem, but when i click rectangle style in second frame it is drawing with both style. How can i stop or kill other function?
How do I make both of the not drawing. And How can i undo my last action in drawing?
[code]...
View 4 Replies
Feb 22, 2007
I have developed an small application in flash 8. It is creating xml at runtime and add new nodes,delete particular nodes at run time. I want to use undo option in this application.
View 5 Replies
Dec 7, 2009
When I try to do this in an AS CDATA block, it tells me I can't have a class declared within a class (the MX:Application itself). Makes sense. But where and how do I do it?
View 2 Replies
Feb 12, 2009
I was wondering if anyone knew how to create a .swc library file that could be used in Flash or Flex?I want to compile a custom package of classes into a .swc for use and download,
View 1 Replies
Oct 31, 2006
I m new to Flash. I need to develop Flash application for mobile devices.I have created a class and using that class i created a movieclip.
I have created one more class. And whenever the enter key of the mobile device is pressed i need to create a movie clip using the second class.
How to do this?
[Code]...
I dont know what's the problem? I want to remove or unload the previous movie(Which shows a piechart) and to load another movie(which shows details in a table).
View 2 Replies
Mar 29, 2005
how can I create event handler for a class that I wrote myself?
Example:
Code:
class blah {
var ladida:string;
function blah () {
[Code]....
How is it possible to create an event handler, like lame.onChange? When the variable inside the class is changed, how would i be notified?
View 5 Replies
Mar 11, 2005
if I can create an array of created Classes. can only create an array of values, not objects.
View 1 Replies
Apr 30, 2010
I created some Combobox and, when you select each item, a Movieclipappears with a different width,height and name.When it's in the scene you can Drag it to the position you wish.I made two button:Undo(), Redo()for the user who wish to make a previous action,in other words,put the Movieclip to its previous place.I try something with some Arrays that capture the different position when Drag is stopped.I place a Shared Object for registring all the previous position but I don't know how to make it work.So,I show you my code.function of the combobox:
Code:
ComboBoxclassic.addEventListener(Event.CHANGE,select);
function select(evt:Event)
[code]......
View 0 Replies
Aug 5, 2005
i'm currently devolping a drawing board out of flash but i was wondering instead of erasing all the pen lines drawn just the last pen line drawn,im using kirupa drawing board tut for the all erase just stuck to gewt the last line erase done
View 9 Replies
Aug 11, 2010
How can I set up a project in Flash Builder for creating a collection of classes that is not an application by itself? When creating an Actionscript project it forces having a main application file, as well as sets up the whole bin-debug folder and such.
For instance, if you wanted to start coding something like Tweener, Papervision, or some other set of classes that doesn't publish to an application, how would you set up the project in Flash Builder?
View 4 Replies
Jan 20, 2012
I know global variables are supposed to be bad but is it possible to create global classes? I am creating an application and I want to have one class that handles sound. From any class I would like to be able to say soundhandler.playSound(); without having to pass references all over the place. It should just know it is there.
View 1 Replies
Feb 14, 2012
I have been looking all over the internet for a tutorial to which will show me how to re-create this effect on images.[url]...
I dont want to install these 3rd party components, because the project I am working on at present, may in future need to be edited by other designers/developers.
Is there anyway to do this just via scripting?
View 1 Replies
Aug 3, 2007
I'm still struggling with the complete concept of custom event handling within AS3. I know I am close to a complete understanding it's just not falling into place yet.[code]...
View 6 Replies
Jan 27, 2010
i'm trying to find something that can boost Flash display performance. I nicely ended up with WebGL, promoted by the guys behind OpenGL. I wonder if the WebGL can in any way be ported or used with actionscript 3.0. I saw someone have created plugin to use flash with Unity 3D, but it's a little complicated to manage and too little "tricky" for me. How hard could be create WebGL extensions or classes for actionscript? Any guru here that want to start doing something?
View 0 Replies
Feb 25, 2011
I've rarely used static variables or methods when creating external classes, but I have on occasion, and it's very useful when I need global access to a value. I've seen negative criticism on the use of the "static" keyword, but never understood why. Is there a right and wrong way of using it, or is this not true? I'd like to use it in a context similar to classes such as MouseEvent or TextFieldAutoSize, where there is a list of values globally accessible for identification purposes.
It allows better code readability, and also allows for easy customization in the future. The value of TextFieldAutoSize.NONE is "none", but as long as a programmer used the reference TextFieldAutoSize.NONE and not the string literal "none", Adobe could change the value of TextFieldAutoSize.NONE to be "hahahahaha" and everything would still work just dandy because (TextFieldAutoSize.NONE == TextFieldAutoSize.NONE) is still true even though ("none" == "hahahahaha") is not.
Is there any kind of negative impact on using static variables this way? Or even functions for that matter? I'd just like to clarify this before I go and build a large project around the idea this is perfectly okay.
View 0 Replies
Mar 5, 2012
let's say I have a function in a package like this:
ActionScript Code:
package{
function traceObject(target:Object){
trace(target);
}
}
Now, I want to use this function in every flash application just like I do with
ActionScript Code:
import flash.display.*
1) How can I do that?
2) Can I have classes and constants in the same package too?
View 9 Replies
Mar 11, 2005
I was wondering if I can create an array of created Classes. I have a feeling that I cannot, and that you can only create an array of values, not objects.
View 2 Replies