Can Flash Remember Buttons Clicked For A Game

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


Similar Posts:


ActionScript 2.0 :: [Flash 8] Making Buttons Remember After They Have Been Clicked

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

ActionScript 2.0 :: Shared Object - .sol File Remember What Buttons Are Clicked On By A User And Assign An Alphavalue

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

ActionScript 2.0 :: Store A Simple Cookie That Will Remember The Score For The Next Time The User Plays The Game?

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

ActionScript 2.0 :: Buttons To Stay Orange Once Clicked And Only Roll Out Back To Grey When The User Has Clicked On Another Button In The List

Feb 7, 2007

I've got about 6 buttons laid out, one on top of the other in a list format. In their normal state the buttons are grey in colour, when I rollover them, the buttons flash and turn to orange. Now, what I need to happen is this: I want the buttons to stay orange once clicked and only roll out back to grey when the user has clicked on another button in the list. I've been told that the best way to do this is via adding a listener, however I am a little unsure as to how to go about this. I've checked the flash help file and have a basic understanding of how listeners work...but can't really wrap my head around applying it to this situation. Perhaps I will need to have all the buttons as separate broadcasters?

View 2 Replies

ActionScript 2.0 :: Buttons That Stay Clicked Until Another Is Clicked?

Feb 8, 2011

I haven't been able to find a solution that fits my project. I am working on a 50 state map, where I need each state to stay down once clicked, but go up when any other state is clicked. [code]...

View 9 Replies

ActionScript 3.0 :: Flash - Ending A Piece Only When All The Buttons Are Clicked?

May 2, 2011

ending a piece only when all the buttons are clicked.

Code:

stop ();
nature.addEventListener(MouseEvent.CLICK, buttonClick);
function buttonClick(event:MouseEvent):void{
gotoAndPlay("label 1");
}

[code]....

View 2 Replies

ActionScript 3.0 :: Keep These Buttons Enabled After The Next, Prev Buttons Are Clicked?

Jul 23, 2011

-Alright so I have made a next, and a prev button. That navigate the timeline inside an mc "tabs_mc." This mc ison the the main stage.-When the next and prev buttons are pressed they goto 1 of 4 frame labels on this timeline inside tabs_mc.-When one of these lables is reached an mc "thumbs" appears on the screen / stage.-These mc's "thumbs1, thumbs2, thumbs3, and thumbs4" contain buttons that SHOULD be clickable.-But are not after the prev, and next buttons are press. They are before the next, and prev button are press, but not after.

way this is or even better how to keep these buttons enabled after the next, prev buttons are clicked?I thought of making some sort of boolean to tell the each button that is needs to stay "true" after prev, and next are pressed.But I'm a beginner so I don't know where to start.Heres the next, and prev button code:

HTML Code:
//Button Listeners
/////next_mc.buttonMode = true;

[code].....

View 2 Replies

AS3 :: Flash - Finding Out What Button Was Clicked From Looped Dynamically Added Buttons?

Jan 12, 2012

have a loop that creates buttons. Each button stays on the screen, but scrolls off, meaning there are at any one time upto 4 buttons on the screen. There are a total of 241 buttons.t is to my understanding that using an array will allow me to access these buttons later, and that is great, but I can not find a way for it to tell me exactly which button was clicked.Am I missing something very simple here?

if (canAdd == true)
{
canAdd = false;

[code].....

View 1 Replies

Flash - Getting Togglebutton Remember State?

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

Flash :: Sharedobject Don't Remember Data?

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

ActionScript 2.0 :: Can't Remember Flash Class Site?

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

ActionScript 2.0 :: Flash Shared Object (Remember Me) Box

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

IDE :: Flash Does Not Remember To Delete The Previous Export And Creates Another One?

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

ActionScript 3.0 :: Flash 'remember' Where A Movie Clip Has Been Moved To?

Nov 3, 2011

how i can make a draggable movie clip remain in the position it was dragged to, when moving to another frame, then returning to the first.

here's an example,

say on frame one i have a circle movie clip and an image of a square, to begin with the circle is nowhere near the square, but I've added code that means it's draggable, so you drag it next to the square then click a button that takes you to frame two

then when you've done whatever you can do on frame two and want to return to frame one the circle would be back where it started (as in nowhere near the square).

How could I make it so when you click to go back to frame one, the circle is where you dragged it (e.g. next to the square)

View 3 Replies

Flash :: Professional - Player Remember Window Position After Exit?

May 18, 2010

How about make the Flash Player remember window position after exit? So that it opens in our preferred position everytime?

View 1 Replies

Actionscript 3 :: Flash - Prompt User To Remember Camera And Mic Settings

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

ActionScript 2.0 :: Making Flash To Remember User (In Browser Cache)

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

ActionScript 3.0 :: Buttons Not Workng When Clicked?

Nov 20, 2009

[code]the page im trying to access is named home and the button is b19_btn, the rollover, up & down states work.But when clicked it does nothing and the output doesnt show any errors?i added trace("clicked")and dont recieve anything in the output window??

View 2 Replies

ActionScript 3.0 :: Some Buttons Have To Be Double+ Clicked?

Oct 5, 2010

buttons are programmed identical but some of them have to be double or tripple clicked (depending on the level they are in) in order to access the designated location.What does it mean? Is there an error in code and something has to be rearranged differently?all of the top menu buttons work with a single click, except for the first one "about us" which has to be double clicked.

View 28 Replies

ActionScript 2.0 :: Check If All Buttons Are Clicked?

Jan 18, 2007

i need a very simple interactivity to work on .. i have 6 btns on stage and only when all are clicked i want my next event to take place ..say i want to trace("done ") when all are clicked .. but the user can click the btns in any order..

View 1 Replies

ActionScript 2.0 :: How To Get Other Buttons Tween When Each One Clicked

Jul 18, 2007

Basically I have 3 expandable buttons place beneath each other that expand when individually clicked. I want the "other" buttons to move/tween as the user clicks each button. I could get them to move but I want them to tween when they move rather than just jump to a new y position.

View 7 Replies

ActionScript 2.0 :: Next Xml Node When Buttons Clicked?

Jul 6, 2008

I have a file,which loads external movieclips in a main file,and you can navigate around,by using a next / previous button.It also has a dynamic textfield which loads an xml. What I need to do is,load the second node of the xml file,when a second external swf is loaded. For example: First external swf loads,the first node of xml loads.Then,you click next button and the second external swf loads.Now,how can I make the same dynamic textfield display the second node of my xml file?

View 1 Replies

ActionScript 3.0 :: If 3 Buttons Clicked - Go To The Next Scene?

Aug 16, 2011

I have a game where there are five buttons which can be clicked (which will play sounds). But once 3 of them have been clicked, the user is taken to a new scene.

I have the following code, I'm completely lost why this isn't working:

Code:
var buttonArr:Array = new Array (button1, button2, button3, button4, button5);
var t: int = 0;

[Code]....

make the game go to a new scene once 3 buttons are clicked?

View 3 Replies

ActionScript 2.0 :: Count When All Buttons Have Been Clicked?

Oct 28, 2002

I'm trying to create a loop of some kind. I haven't done these before and I've tried searching the forum, but I'm still stuck. Not to mention, I still don't understand the difference between a for, while, and do loop, but I will tackle those later.

For now I have several buttons that need to be clicked before the user can proceed. I am trying something like this:

on a mc I have the following:

onClipEvent (load) {
counter = 0;
}

[Code].....

View 2 Replies

Actionscript 3 :: Flash Privacy Popup Dialog Is Missing 'Remember' Checkbox

Mar 2, 2012

I am trying to get the Privacy Settings Tab to show in our flash/flex4 video chat application we are building.I have 2 systems with latest Flash installed (currently 11.1.102.62). However, the player always shows this (privacy popup question) instead of this (privacy settings tab) when loading the app.The reason i want the settings tab to show is because i need the end user to easily check the "remember" box. I have tried to call Security.showSettings(SecurityPanel.PRIVACY); before as well as after the getCamera/getMicrophone calls but all that happens is we get 2 popups instead of 1.and still no "remember" option.Actually it doesnt show the privacy tab at all!Searched tons of forums but have come up empty.I have also searched the adobe docs but all I find is a paragraph stating"if your computer or device doesn't support audio or video recording using Flash Player, you don't need to allow or deny access, and this panel doesn't appear".Which is hardly true since one of the systems we are testing with is a new Macbook Air running latest OSX.Does anyone have any insight into why this might be happening and how to display the "Privacy Settings" and not the "Privacy pop-up question"?

View 1 Replies

ActionScript 2.0 :: Making A Flash Menu (powered Through XML ) Remember The Selected Page?

Jun 19, 2009

I am using xml to create my flash menu . Now , i want that when i open a link it should remain highlighted , but right now the menu just refreshes on the next page. I am attaching the file . Attachment not working here is the link = [URL]

View 1 Replies

ActionScript 2.0 :: Keep Track Of What Order Clicked Buttons In?

Apr 6, 2009

If I have 10 buttons, how do I keep track of the order of buttons I click on? For example, if I click buttons only in this order: button3, button6, button8, button2, something will happen. Maybe plays a sound tone such as sound.mp3. I'm going to use actionscript 2.0 in my movie.

View 8 Replies

ActionScript 2.0 :: How Many Times Buttons In Scene Are Clicked

Nov 7, 2009

Action Script 2.I have a count function that counts how many times the buttons in my scene are clicked.It counts upwards on each mouse click:root. count+=1.I know this is working because a trace(_root.count) shows appropriately.When count == 6, I need to trigger a sound. My code is as follows;[code]The problem is, it's not triggering the sound as expected, even though the _root.count trace is showing 6.

View 2 Replies

ActionScript 3.0 :: Swf Files To Unload When An Different Buttons Is Clicked?

Jul 28, 2009

I recieved some help earlier with actionscript 3.0 and buttons. I wanted my buttons to load in a swf file into the main flash document when clicked. I can't seem to figure out how to get multiple swfs files loaded into the flash document. I also need the swf files to unload when an diffrenent buttons is clicked.

[Code]...

View 18 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved