ActionScript 3.0 :: Using 3.0 To Remember User Actions?
Oct 3, 2010
I have seen similar threads, but I am trying to recreate something I saw on a similar site where the user can record actions such as clicking buttons to produce sounds and stop the recording and then replay what the notes that they played.
I realize that I will need an array of some sort, but I am trying to work it out and I can't seem to get my head around how do replay actions such as the site example above.
View 1 Replies
Similar Posts:
Sep 22, 2011
I request my user from mic and camera setting on my website with Flash, but the remember checkbox does not show, so every time my user logs in he's requested once again for permissions, how can I make the checkbox show to avoid this?
View 1 Replies
Nov 16, 2009
I would like a Flash application to remember the settings that a user on a specific machine or specific browser has earlier set. This is possible, right? What's the most neat way of doing this? Using some kind of a flash cache?
View 3 Replies
Apr 13, 2004
I'm trying to learn shared objects by attempting a basic function. I would like to have an .sol file remeber what buttons are clicked on by a user and assign an alphavalue for the buttons that have been clicked. Here's what I have..
[Code]...
View 8 Replies
May 6, 2007
I'm just trying to store a simple cookie that will remember the score for the next time the user plays the game (the score governs if an option is visible or not)It all works fine until I close browser/reload the page, at which point the shared object seems to disappear, any clues?
Write:
Code:
var rem_score:SharedObject = SharedObject.getLocal("score");
rem_score.data.score = new Number(score);
rem_score.flush();
The problem prolly lies in my write code but ill post the reading aswell just incase there is a problem with that too
Code:
var rem_score:SharedObject = SharedObject.getLocal("score");
if (rem_score.data.score != undefined) {
this.remdscore = rem_score.data.score;
if (rem_score.data.score >=30) {
[code]...
There is another point it is read but it is the same sort of thing as the above.
View 1 Replies
Jun 1, 2010
i have a problem:i am doing website for making banner.i do it in flash + actionscript 3.0. the user can draw, add pictures,shapes, text, colors and ,and motion tween.i need that all the actions that the user is doing will transfer to .swf file.how can i do it?
View 1 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
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
Feb 16, 2009
i need to stop a flv from playing again until the next day ( needs to be AS3).
View 2 Replies
Dec 3, 2010
I want to let the button remember the previous frame where I was from:
For example , btn.onPress = function (){go to the previous frame I was from}
View 5 Replies
Apr 20, 2009
i have designed button which will change position after press on it i have used the script :button1.onPress=function(){button1._y=-300;action1._y=110;}that is working but the problem is whenever i give a link to it like go to another frame or go for some url. it work but after comming back to its previous stage it shows no difference that means i need a button which will indicate that it have been pressed.
View 1 Replies
Sep 26, 2011
In AIR, I'm create a nativewindow component that will generate a set of togglebutton, as each time the code below is run whether I open a nativewindow, the togglebutton will be reset to the default state. How do I make the state persistent?
for(var i:int=0;i<10;++)
toggbtn.label = "Power "+1;
stage.addElement(toggbtn);
}
View 1 Replies
Sep 27, 2011
I have this code for sharedobject:
var mySharedObject = SharedObject.getLocal("republicofcode");
mySharedObject.data.clientID = my_vars.clientID;
mySharedObject.data.question = my_vars.question;
[code].....
View 1 Replies
May 15, 2010
I have some rectangulars movieclips each filled with different colors and a function that changes their color when the mouse is over them. How can i remember the initial color of the movieclip so that when the mouse is not hovering the movieclip it return to their initial color.
View 3 Replies
Oct 6, 2006
I have a map of my country (Greece) and i want to place pins on it to point out the places i have been, links to photos etc, files etc. how to make my programm to remember where i've placed those pins. Should i save the x,y location of the every pin to a table at a database for example and fetch them at loading?
View 3 Replies
Oct 28, 2006
just wondering if it is possible to be able to remeber the timelines position:example:
- the user is say on frame 5 or whatever frame the user is up to (its a quiz senario);
- the user then clicks a link which takes them to frame 15
- when the user clicks on the back button this will take them back to the page which they were viewing whatever that may be for each user.
is this possible or is there any tutorials about it where i can learn this?i have seen one example of it being done where it remebers what level you where at but i ca't remeber where i saw that example/tutorial
View 11 Replies
Oct 25, 2008
I have this code.
for (i=1; i<6; i++) {
this.attachMovie("myMovie","unit"+i,i);
this["unit"+i]._x = i*100;
this["unit"+i].onRelease = function() {
trace("Unit number " + i + " was pressed");
};}
I want to trace the number (i) of the button that is pressed. But no matter what button I press, I always get the value '6' on my trace. Isn't there a way to store the a value for i in each movie clip attached?
View 3 Replies
Oct 20, 2011
I am just trying to create a simple escape the room game. I have a main frame with all the objects and another layer with different views. What I want to accomplish is, e.g.If a panel with buttons is clicked you go to the next frame, which shows a zoomed in panel with buttons. Then you enter a code and if it is correct you go back to the main frame. As the code was correct a drawer, which was previously closed opens and a new item is added to your inventory.This is my code for the room with the drawer:
Code:
drawer3_mc.enabled = false;
drawer3_mc.addEventListener (MouseEvent.CLICK, foundObjectScrewd);
[code].....
View 3 Replies
May 18, 2009
I am making a game for the university I attend. I am having students choose between college and high school by two buttons to see if they choose the correct answer. Then I want it to display the number correct on a result page I will have them print out for the instructor of their freshman seminar class.Can flash remember if a specific button was clicked? I have each button with a unique name and could it tell which one was clicked to help me figure out results?
Otherwise, I was wondering if there was a way I could have flash keep track of "points" so I can display the number correct. Would it be possible if I gave each button a numeric value and somehow added up the numbers from each button to put over a total score of 12 (that's how many questions there are)? Could it be done in a dynamic text field?
View 2 Replies
Mar 15, 2011
IShockwaveFlash and cointerfaces have not any way to
1) programmicaly allow use camera and remember choice
2) disable context menu?
View 1 Replies
Nov 3, 2005
when a user inputs some text and if it comes back as an Undefined Error i want it to show what the user typed in so they can see if they misstyped,
Dynamic text feild is called = remember and the Text Input box is = vrm_ti
CODE:
remember.text = vrm_ti.text;
View 3 Replies
Nov 6, 2006
i'm trying to remember a selected state on frame 5 and when i return back to that frame i want it to still be selected. here is my code so far:
Code:
var back:Object = new Object();
back.click = function(oEvent:Object) {
oEvent.target.selected = oEvent.target.selected;
};
q1.addEventListener("click", back);
i know its probably a little bit wrong but yeh i have this code on my back button in frame 20.
View 1 Replies
Nov 14, 2006
I cant remember the URL to a site with actionscript class resource. Had a look in Sen's lists but couldnt find it.
it had a red and grey rocket in the top right corner with the classes and examples listed underneath and something like locos.tweens in the title
View 3 Replies
Aug 21, 2007
I have a working shared object. The visitor types a password into an input text field and hits go. The next time they go to the log-in it pulls the shared object out and prepopulates the input text field. How can I add a "checkbox" (Remember Me) option to the process. I'd like the visitor to have the option of whether or not they want to be remembered.
My current code looks like this:
On frame 1 Actions Keyfame:
pw_babytalk = SharedObject.getLocal('babytalk');
if (pw_babytalk.data.pword != undefined) {
password_txt.text = pw_babytalk.data.pword;
}
stop();
View 1 Replies
Apr 16, 2009
Imagine a strip of film, where each square of the film is an object in flash, and one of those squares are displayed at any one time. Remember Viewfinders? yeah, that.
Let's say the bolded square is the object you are currently viewing. If I click a button that travels to a square on the left, I want the program to remember that my original frame now lies on the RIGHT side of the stage even though it isn't seen. So when the user clicks back to that original object, it will fly in from the right. And vice versa.
I'm very new to ActionScript. I've taken C++ and know HTML. I would imagine you do something like create an array and make every object assigned to a number in that array. And then you assign starter values for each object. i.e., everything on the left gets the variable "left" and everything on the right of the stages gets "right" for some variable named "Position" or whatever. And when the position changes, so too will that variable change.
View 1 Replies
Feb 20, 2011
All the walkthroughs I've seen specify either desktop, local files as the initial view when calling browseForOpen.
Is there a way to have the air application remember the last location a file was loaded from and default back there?
If necessary I suppose the path could be written to the local db, but even still, I do not know how to get the filepath of the loaded file.
View 1 Replies
Dec 20, 2011
As we all know SuperTabNavigator is an open source component from the flexLib which gives an advantage over Flex Tab Navigator that we can close the tabs from the close button on each tab with the use of SuperTabNavigator. Additinaly there is a button to the right of the tab navigator which shows a list of all tabs which are open at one time and we can select any tab from that button which is a PopupButton.
Now what happens is when we close a tab, it disappears from the PopupButton drop down list as well. But in my case I want the drop down to remember the closed tabs even so that when I click on that closed tab it opens again in the tab navigator. I am relatively new with Flex and ActionScipt
View 1 Replies
Aug 27, 2011
I want to be able to create and place objects on the stage dynamically and remember their location. I'm guessing the best way would be saving the object type and location in an array? Just wondering if there is a better way before I start coding.
View 1 Replies
Oct 22, 2006
I am trying to make my buttons do this (<-- Link). What I can't figure out is how to make the button stay red after the user clicks it and then go back to white when the user click on another button. Here is my file (<-- Link) so far. and here is my Code:
[Code]....
View 3 Replies
Feb 17, 2009
when I do linkage on a symbol and export it for AS3. Then I edit the symbol, for instance go in and modify anything inside, a shape, etc... the next time I try to publish flash, i get an error multiple constructor definitions found. constructor may not be defined in <Script/> code.I think may be it's because flash does not remember to delete the previous export and creates another one. The only way to resolve this, is to delete the entire symbol and re-create it.
View 1 Replies