ActionScript 3.0 :: Maintaining History Of All Actions?
Mar 3, 2009
I am working on a paint application, I am able to draw lines, draw shapes, erase. I need to implement undo and redo functionality. I plan to store history in a bitmap and put it in an arrayMy question is whether we can have an alternate solution other using bitmap class. How can I store coordinates of non straight line without using up lot of memory and processor.
View 3 Replies
Similar Posts:
Sep 26, 2010
I have a flash navigation menu and I was wondering: Is it possible to use the output window to make a interactive list of "buttons", so that a user can keep track of his/her progress ? How would one go about doing so? I can use the trace() function to capture the movements of the user, but how do I make it visible and interactive for the user?
View 2 Replies
Jan 28, 2011
In my appilcation i need to plot a graph same as in CPU Usage History (In windows see task manager). The data is available in the form of array collection or xml. I want to update the grph from right to left..
View 3 Replies
Sep 22, 2008
creating history timelines in Flash?
View 3 Replies
Jun 19, 2011
I have a series of frames one the timeline. Each frame has a graphic and a mouse click leads to the next frame. Think Myst.
[Code]...
When the middle frame is returned to, clicks no longer change anything. I believe that the actions of the 'left' frame are replacing the one's in the middle frame so then it is told to gotoAndStop to itself.
I'd like to know if that is indeed what is happening and how I can make it stop.
View 1 Replies
Feb 5, 2009
Im trying to do a history back button in flash. Im finding a bunch of scripts online and none seem to work. Anyone know of one that actually works with flash 8+ and in both firefox, safari, and IE???
View 1 Replies
Mar 27, 2012
I have a problem with a couple flash files where making changes doesn't update in the document, the history won't update, and saving the file after changes is like saving the unedited file immiatedly after opening it.
View 4 Replies
Aug 26, 2010
I am using the flex HTML component and I would like to clear the history of the control when it is taken off screen, so that when it comes back on again the history is reset.
The only thing I can think of at the moment is to set the HTML control to a new HTML control, although this is a bit of a pain.
View 1 Replies
Feb 17, 2009
Good day every one, i am relatively new to flash 8 and i am working on a flash project, not meant for the web, i am creating an interactive map app..the problem is when the user has navigated through a series of pages i cannot get them to go back to previous pages they have visited, and this pages can be randomly selected, keeping in mind it is not viewed in a web browser but a stand alone application.
View 0 Replies
Nov 18, 2010
Is is possible to remove history entry from swf address somehow?
View 0 Replies
Feb 8, 2011
I am currently working on a project similar to this link, thehideout.org.uk/refuge and require some help with scripting a button. The button is called "Hide my visit" on the above link. When clicked it takes you to an external link whilst hiding your browser history.
View 1 Replies
Apr 6, 2012
As a personal project, I'm working on a language-learning flash game.I'm looking at the information I'll need to store in various XML documents.I'm implementing a 'history' feature whereby, for any given word in the database, for any given user, a comprehensive history of data is stored. With this data, I can generate all sorts of fancy graphs to track any given user's progress.For example:You have been asked the word 'cat' 10 times. From data stored in the XML document, the game generates a graph of the time it took to answer each of those 10 times. (So in a perfect world, you see a nice downward curve. Congrats.)My question is how to organise the XML document (if that's the way to go with this) so that it is as efficient as possible.Right now, I can only see the brute force approach: have a limited number of predefined history states (say 99), and write data to these each time 'cat' comes up. Once they're full, overwrite.
Code:
<user#>
<word#321>
[code].....
View 3 Replies
Oct 26, 2009
How do I indicate the visit history on a flex tree component? I want to highlight the clicked/visited nodes to a different color and will not change after that, so that all the visited nodes will be one color. I tried adding an attribute to the underlying XML by
[Code]....
This code does retain the new color, but it also changes the color of nodes which are not visited at all. What am I doing wrong here? Is there any better way to achieve this?
View 1 Replies
May 22, 2009
I've got a Flex application that uses link buttons. As soon as I incorporated the link buttons (I assume) the Flex framework started putting history tracking elements below the app in the DOM. For example IE6-8 get an iframe element with id of ie_historyFrame, chrome/safari get a safari_rememberDiv and FF gets a firefox_anchorDiv.
Now, there would be no problem if these elements were hidden by the framework, but they're not. The sit underneath the Flex app (visually and in the DOM) and have a bunch of serialized history data.
I was wondering, is there a way to hide them through configuration or code? I know I could hide them via CSS but it just seems nasty that I'd have to use CSS for something that Flex is supposed to manage. I want the application to be site independent.
View 5 Replies
Sep 29, 2010
1. Can i put another set of actions in frame 2 of the actions layer?i tested but it doesn't seem to work..it has 836 rows of code and it's getting annoying when tryin to search for a function..
2. I am not that familiar with classes, i usually put all the code into movieclips or in actions layer.. i am not sure if i can call a function from a actionscript class..
3.I am curios if there is any way i could specify an alternative for the if statement like in this pseudocode:
if ( apple is not clean BUT is tasty)
{
eat(apple)
}
View 5 Replies
Jun 2, 2010
We have a Flash application that is running within an HTML file.For one page we call a legacy reporting system in ASP.NET that is within an IFRAME. This page then communicates back to the Flash application using cross-domain scripting (document.domain = "domain" is set in both pages. Now the kicker. Flash has history tracking enabled.This loads the history.js file that created a div tag to store page changes so the back and forward buttons work in the browser.Which works for Firefox and Chrome as they create a div tag.In Internet Explorer, history.js creates another IFRAME (instead of a DIV) called ie_historyFrame.When the ScriptResource.axd code attempts to access this with:[code]At my wit's end on this one.We have users who need to use IE to access this site. They are big clients who we cannot tell to just use Firefox.
View 2 Replies
Jan 22, 2011
I'm having a flex "design studio" for T-shirts, and I have made so that when a given itemId is passed in the URL (using #item=3), the corresponding item should be directly loaded.
[Code]...
View 1 Replies
Mar 31, 2010
I am deploying a desktop application using AIR, and I would like to store some user-specific data on the machine such as a history of his entries.
View 2 Replies
Aug 26, 2010
Is it possible to define the scenes and the frames in XML in Flash CS4, so that we can parse it in actionscript 3.0 and define the interactivity. I want to define all the UI elements and the event associated with UI like List control or button in XML format (XUL??) and then use actionscript to build the application logic. Are there some good examples?
View 1 Replies
Aug 11, 2009
I am creating a site in flash, and I have always had this problem when I make flash sites. How can I eliminate a scroll bar in the browser, and make the swf fill the entire browser window no matter what? Is it something I need to write in Actionscript? the HTML page?
View 9 Replies
Mar 16, 2011
What I want to do is to fill in a movieClip with information I get from the MySql database and then maintain that MovieClip throughout the site which has swfs and web pages. how it is best done and easiest? Would a FlashVar have to be used? Could I just load something and have it stay inside while everyone accesse it?
View 4 Replies
Jul 12, 2010
I've got an algorithm that takes more than several seconds to complete. I'm trying to implement it into a 60fps flash game i'm creating. I am wondering if there is some provision in ActionScript3 to interrupt a computation in order to update the frame and continue the computation afterwards. There probably isn't, so I'm assuming the best method would be to perform the computation for x milliseconds, measure what the frame rate is after, then adjust the time the computation will run for next frame if the frame rate is less than or greater than 60 fps. The drawback with this is that the game won't run at a steady 60fps...
Any other ideas on how to (optimally) perform a large computation in AS3 while maintaining the framerate? EDIT: For the curious (the calculation, perhaps I should have said algorithm): I'm creating a motion planning library for game AI objects (one use for motion planning). The algorithm is along the lines of a RRT (rapidly exploring random tree) that iterates thousands of times. Demo link:[URL] Click to motion plan. The circle can "thrust" at a fixed magnitude in any direction. Also - there is no linear velocity damping (i.e. friction).
View 2 Replies
Nov 25, 2003
I using FlashMX to read in a value from an ASP page into a dynamic text box. This works fine.
I then use a motion tween animation to tween into another image, and there I put another instance of the dynamic text box, with the same name, but the value doesn't populate the text box. It's as if it reads the variable into the text box, but if I do anything to the text box, it loses the variable and can't get it back.
Further, if I switch back to the first frame, the value won't populate either, I have to refresh the browser page to repopulate the variable (read the ASP page again.)
Is there a way to maintain this variable throughout the movie, so that I can re-use it?
View 4 Replies
Nov 25, 2003
I then use a motion tween animation to tween into another image, and there I put another instance of the dynamic text box, with the same name, but the value doesn't populate the text box. It's as if it reads the variable into the text box, but if I do anything to the text box, it loses the variable and can't get it back.Further, if I switch back to the first frame, the value won't populate either, I have to refresh the browser page to repopulate the variable (read the ASP page again.)
View 4 Replies
Jan 28, 2003
I have a project which, for all intents and purposes, attempts to create an online text editor/word processor. The key thing is that I need all multi line formatting to be retained and sent to the server. ie, if the user enters a bunch of text (all colors/bold/fonts and stuff are working great) which has a carriage return or a line wrap, I need a way of tracking that and inserting some kind of flag to let the server now to break to the next line at that point.this project is a client/server application so just storing the text string and expecting flash to be able to use the same size text box will not work.
I have created a function that detects keypresses and MOSTLY takes care of the carraige return issue (still not as solid as I'd like though). Basically, every time the user presses return, I store the length of the string and, when parsing the data for transfer, I insert newline chars at every index point where one is needed. This mostly works unless the user goes BACK and enters a return (still working on that little issue).But the word wrap part is killing me. I did find several discussions of using either total characters to determine how big the box is and where to break the line, or something along those lines, but here's the main issue with that:everything is dynamic. the user can change almost everything, from text font (so there will be variable font widths) text size (again, variable widths) to textbox size (so I can't go with a fixed pixel size to break the text). I've noticed that it was very easy to make a text box vertically dynamic, but the width seems to want to stay fixed (if set to multi-line) since the user will be changing this width, I'm just stuck.
if it means coding a huge set of functions that compares every possible font (i will be using embedded fonts eventually so they will be limited) with every possible size and then using that data to determine box size, that's fine, I'll do whatever I can to get this working, but there just has to be an easier way
View 4 Replies
May 27, 2010
I have recently purchased Pageflip 3.6 (http://pageflip.hu/) for a project at work and what I am planning on doing is implementing a guest book which i have created in flash.The guest book I created consists of a file upload (for images) a comment entry and a signature section (where the user has a choice between a bunch of fonts and writes there name) which are located on the left page of the flip book and then on the right page it displays the post (using XML).
Now the guest book on its own works like a charm, but when it is called into Pageflip the buttons for the upload/submit stop working and nothing happens.The way Pageflip pulls in the swf/png/jpg to fill its content is through an XML file.Pageflip does have hot spots and controls to switch pages directly within the book but I have disabled them so that you can only switch pages through the control bar, as I thought the hot spots were conflicting with the input for the guest book but it didn't do anything it still will not allow me to use the controls for the guest book.
I know this might be kind of confusing I hope i described my problem clearly enough and any help or input at all would be fantastic. I'm fairly green with actionscript but i'm the only one at my agency that knows how to use it so its tough on me to do these advanced things without anyone to bounce ideas off of
View 1 Replies
Feb 9, 2012
I'm developing an iOS flashcard app in Flash CS5 for a school project. I've got over 600 scenes, and my cards are structured in pairs so that one scene is the front of the card and the next is the backside with the answer. I've figured out how to get from scene to scene, but have had no luck trying to find how to randomize scenes while keeping them in pairs
View 0 Replies
Sep 7, 2009
I'm having a conundrum. I am trying to duplicate the link effect: http:[url]....The thing about that is that I am trying to create this for an HTML site as link transitions for a client. My issue is that the swf has to maintain size on ALL browsers and sizes. I've tried setting the html object sizes to 100%, but the video is smaller. Is there something I'm doing wrong?
View 3 Replies
Jun 5, 2009
I am working on a project in which I am suppose to maintain an array of movieclips, and I can also convert the movieclips into bitmap data. So I would like to know which one is the best to use either maintaining movieclip array or bitmap data array.
View 1 Replies
Jan 31, 2010
I am going to be utilizing a flash/jquery powered gallery on a webpage that is maintained and updated with an xml document. The xml data is used to add and sort images into a grid of small thumbnail images. i will customize this component so that when the user rolls over a thumbnail it will trigger jquery to replace a div using hide/show. My employer would like to try to create an adobe air desktop widget that will mirror the content of this gallery so that as entries are added to the site users can access the content automatically via the desktop. I was thinking there may be a way to utilize the same xml document to maintain the app as well as the gallery. As there is a fairly tight turn around on this project, i was wondering if anyone could confirm that adobe air apps can be maintained in this way, or how to approach this particular client request.
View 1 Replies