ActionScript 2.0 :: Remembering Selected Boxes?

Nov 1, 2005

I need a flash program which can remember all the boxes that have been clicked on.

Imagine i have 5 boxes. They are all white, then I click on and it turns red. I want the program to remember that and store the data in a small file.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Display The Names Of Check-boxes Which Are Selected In A Text-box?

Jan 6, 2009

I need a basic example containing 3 or 5 check-boxes and should display the names of check-boxes which are selected in a text-box.

View 1 Replies

ActionScript 1/2 :: Remembering The Rotation Value?

Feb 14, 2012

I have a movieclip that rotates 180 degrees in one frame of a flash game using the following code:

my_mc.onRelease=function(){
my_mc._rotation=my_mc._rotation+180;
if(my_mc._rotation==360){

[code].....

View 6 Replies

ActionScript 3.0 :: Remembering The Path With Arrays?

May 2, 2010

I don't wanna force you to reading a long, boring text, so I'll simply show you my algorithm.

1.Place an object on the stage at a random position.

2. Move it randomly around the stage.

3. When the button is clicked, make the object stop moving.

4. Make the object repeat the path it had gone so far right to the starting point.

5. Do it by using two arrays. One to keep all the x positions of the object, and the second one to keep all the y positions.

6. Then, loop through these arrays and set the object's x and y to what the arrays hold.However, my object isn't moving when I click the button.

View 5 Replies

ActionScript 2.0 :: SharedObject Remembering Last Frame?

Dec 16, 2010

I used a code to have so when someone clicks on a button, it takes them to a frame, and next time they visit, the flash file remembers where they were last using SharedObject. The problem its buggy. Sometimes it works and sometimes other objects like text disappearHeres the code.1st frame looks for the Shared Object, then goes to either 2 or 3 and 3 by default if no Shared Object is found

Code:
var Frame:SharedObject = SharedObject.getLocal("MSCurrentFrame")
function StoreData() {

[code].......

View 2 Replies

ActionScript 2.0 :: Remembering Last Movieclip When Drag?

Dec 6, 2006

i have like more than 5 movieclips on the stage .. and it is draggable and when you drag it and hit the target movieclip this movieclip set to _visible = false; i want to know how i can remember this movieclip so when a new movieclip is drag to the target the last movieclip that was set to _visible = false now can be true and the new movieclip is the one that would be set to false

View 3 Replies

ActionScript 2.0 :: Remembering The Last Step And Going Back?

Jun 4, 2003

Basically say I have 4 areas in my website. There are 4 buttons that correspond to the four areas.

On the main screen are outlines of boxes. Each section will have a different sized rectangle so I want the boxes to transform to the new sized box.

So say you click on number 2 and you are on section 1. The main box will change size to the shape in number 2 from number 1. Then say you click on button 4. The box will then change to the shape of the box for section 4 from the size of the previous box.

How do you get it to remember where you are in order to transform to the area where you click the button?

View 3 Replies

ActionScript 2.0 :: Tween - Remembering Last Position?

Nov 26, 2009

I've got a movieclip which I am tweening around the stage to various positions, depending on what buttons the user presses.My problem is, that currently each time the user presses a button, the movie clip shoots back to it's original position (placed on the time line), then tweens to the new position dictated by the button.

This is not what I want..I actually want the movie clip to tween from position to postition (not shoot back to it's original position each time).. I guess I need it to remember where the movie clip currently is, and then move to the new position..

here is my code for the tween..

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
ButtonOne.onRelease = function() {

[code]....

View 5 Replies

Arrays :: Drawing Boxes With Different Colors Than Adjacent Boxes?

Jul 27, 2011

I'm making a program that draws a grid of boxes and the color of the box must be different to those adjacent to the box. My code compares the current box's color to those to the left and top. If any of them matches, it picks another random number (as the color). For the tiles on the first row/column, I make my grid's array indexes with negative numbers -1 so that it will not match.

What I have:

private function fillArray():void {
grid = new Array();
grid[-1] = new Array(-1,-1,-1,-1,-1); //paddles the grid[-1][0 to 4] with -1
for (var i = 0; i < HEIGHT; i++) {

[code]...

View 1 Replies

ActionScript 2.0 :: Remembering Variables After The Application Is Closed?

Sep 7, 2009

I have attached the .fla that I am working on. I understand that it is very basic and does not use class files and so on.... but I am just applying the finishing touches so that it actually works.Inside the quiz movieclip is some code that makes people's names and scores be entered onto the leaderboard. This works perfectly fine, however when I close the SWF and take the quiz again, the people that were previously on the leaderboard have disapeared!Is there anyway to make the best people stay on the leaderboard for future uses?but the code that is in question is:From frame 65 of quiz:

Code:
Mouse.show();
finishTime = minutes+":"+seconds+":"+hundredths;

[code].....

View 1 Replies

ActionScript 2.0 :: Remembering Last State Of A Nested Movie Clip?

Nov 3, 2010

i created a functionality for minimizing and maximizing it (on the stage only)by keeping the whole application in a movie clipand then animating that movie clip on press of a buttonnow the issue is thatwhen i reverse the playback of timeline(to expand the application)it expands in its initial statebut i want it to remember the last state of my nested movie clip(10 lvls of nestin ) and expand in in that state.

View 4 Replies

ActionScript 1/2 :: SOS: Change Color Of Selected Menu Item Button If Selected

May 19, 2010

I have a menu with many sub menus. I need to change the color of the selected button and then move on to the sub menu. My menu is horizontal and now it's not obvious the path that you follow.

View 2 Replies

Flex :: Disable Selected Columns In A Datagrid In It For Selected Rows?

Nov 6, 2009

Is there any way to disable a few columns for a particular row in flex datagrid?

I have a datagrid with about 10 or more columns, say for example a few column names are: Item Id, Item Name, Item Status and VerifiedState. Initially I want the column Verified State to be disabled.

Now When the value of the column, Item Status is Review Passed for a particular row, I want the column VerifiedState to be enabled and editable. Is that possible in Flex datagrid.

View 2 Replies

ActionScript 3.0 :: Load Variables, Remembering Variables

Nov 19, 2008

I am trying to load variables from a text file, and have them available from then onwards in the movie, globally so to speak.

While I can read the variable values in a loader function which executes when the text file is loaded, I don't seem to be able to keep those variables available afterwards.

View 10 Replies

ActionScript 3.0 :: Can't Show The Selected Textfield In The TileList Items By Default The TileList Items Are Selected

Feb 1, 2012

I have placed TextFileds inside TileList Compontent. When i try to select the TextField it can't show the selected Textfield in the TileList items by default the TileList items are selected.Finally i need to select the TextFields.
 
Here is my code: 
 
import fl.controls.TileList;    import fl.data.DataProvider;    import flash.display.Sprite;    import flash.events.Event;
function TileListExample() {            var dp:DataProvider = new DataProvider();            var totalEntries:uint = 3;            var i:uint;            for(i=0; i<totalEntries; i++) {                dp.addItem( {  source:getTf(), scaleContent:false}

[code]....

View 5 Replies

CS3 List Boxes And Associated Text

Dec 8, 2009

I'm trying to have a listbox that when an item is clicked will display relvant text and hopefully images in a dynamic text box on the same frame.

I have found this code that does what I want, but puts in a date.

Code:
// Preparation :
month=["January","February","March","April","May","June","July","August","September","October","November","December"];

[Code].....

View 2 Replies

On RollOver Pop Up Floating Boxes

Dec 10, 2009

I have an image and I want to add "hot spots" so when the user rolls over the area they get 3-4 boxes that pop up to display pictures or what ever. So far I can't figure out how to change th hit area once its expanded so the hit area would be small then expand with the boxes, then rolling outside the picture areas it would close.

View 2 Replies

Yellow Boxes For Accessibilty?

Jan 23, 2008

im doing an accessible site and i know that objects areaccessible by default. all my buttons were highlighted in yellowwhen tabbing through...then i opened my accessiblity panel to add labels and now theyellow boxes are gone. i've deleted all the additions but still nosign of the yellow boxes.accessibilty is checked for everything, i've gone through thewhole site. nothing seems to be missing. is there some way i canglobally re-set the accessibility settings.

View 5 Replies

Professional :: Components' Value Boxes?

Feb 2, 2010

why are those "values" input and component windows so badly designed, not resizable (well kind of albeit terribly badly) etc... This is an eyesore and a practical pain in the a**. Seriously Adobe... all these talks about "accessibility" etc... shouldn't it start in your own software ?!? You can fix this it's 2010.

View 1 Replies

2 Combo Boxes And A Button To Go To URL?

Apr 17, 2009

What i need to do is, In Flash (FlashMX, CS3 or CS4) I need to place 2 combo boxes. by default the 1st one will be enabled and the 2nd will be disabled. First combo box will have country names and the 2nd will have state names. when a user selects the country name from the 1st combo box, the 2nd shuld then get enabled. and when a user selects the state from the 2nd combo box, there will be button next to it for clicking. on clicking the button, the values in each combo box shuld be selected and the user will be taken to a specific URL which will have the contents on current selected state in the current selected country.

View 2 Replies

Flash :: Using Boxes For Hit Collision?

Jan 31, 2010

I am trying to use boxes for hit collision. I want to be precise with the collision so I was thinking about making multiple small boxes and checking for collision that way. This maybe a stupid idea or a smart one. If I do this way will that affect the performance of the game even though the boxes are invisible and wont be drawn on the stage.

map out the object starting from its center outward. Like right, left, top and bottom. I am creating a flying shooter so the plane has a long wing span. I could also map out the wing span and tail and so on.

View 2 Replies

Events In Flex Using Boxes?

Sep 5, 2010

i have following problem, when i create box in action script and whe i addEventListner for drop accept, and if i add this box to some parent box, then this event is not working, if i add this event to not child but to parent box, then it is working, what can i do if i want create many boxes, add to them events listners and then add them all to some other parent box?

View 1 Replies

ActionScript 2.0 :: Making Boxes Appear 1 By 1?

Aug 31, 2003

how to duplicate boxes, so they appear in a tiled format . I don't have much clue at the moment apart from having 2 'for' loops which will assign the boxes their own positions; however this doesn't make the boxes appear one by one,

View 14 Replies

ActionScript 2.0 :: Two Square Boxes But Only One Displaying

Aug 19, 2009

This is my code:
Code:
var userData = new Array();
userData[0] = 100;
userData[1] = 24;
var dataLength = userData.length;
for(i = 1;i < (dataLength + 1); i++){
_root.createEmptyMovieClip('box' + i, i + 999);
['box' + i]beginFill(0x000000, 100);
['box' + i]moveTo(0,0);
['box' + i]lineTo(100, 0);
['box' + i]lineTo(100, 100);
['box' + i]lineTo(0, 100);
['box' + i]endFill();
['box' + i]_x = (i * 100) - 100;
trace(['box' + i]);
}
What should happen is it displays 2 squares, one called box1, the other box2, but it only displays one, I think it is only displaying the second one.

View 1 Replies

Targeting Input Text Boxes?

Oct 28, 2009

I have a text input field. When I press on it I'd like something to happen. But it doesn't seem like I can target the input field like this.

myTextInputFieldName.onPress = function {
do something
}

I tried putting it inside another movieclip (which I can target), but then the text input cursor goes away and I can no longer access the input text box. I know there is probably a simple solution but I can't figure it out.

View 5 Replies

Can UIScrollBar Control 2 Text Boxes

Jul 12, 2010

I want to control 2 Dynamic Text boxes with the same scroll bar component? I want them to scroll simultaneously with the user only needing to use the one component.

View 2 Replies

ActionScript 3.0 :: Combo Boxes Resetting?

Jan 26, 2009

I have created a menu for an online café. The displayarea is limited, so the menu items need to scroll within a frame ofsome sort.

View 4 Replies

ActionScript 3.0 :: Loading XML Into Text Boxes?

Oct 27, 2008

I've been staring at this code for hours.... I have a xml docthat contains football scores that will load into my flashscoreboard. If the game has been postponed, there's a node calledstatus that is populated with the info, otherwise this node isblank. My function sets the visibility property of status1_txt tofalse if there is nothing in that node (undefined), otherwise itdisplays the data that is there. If the first node is undefined, itwill start out blank, the way it's supposed to. But the minute itpulls data into that text box, it doesn't go away until there'sother data to replace it. Seems like it's ignoring the first partof my if statement.

View 4 Replies

2 Scrolling Text Boxes In The Same Scene?

Jul 3, 2009

I have 2 text boxes in my scene and I want to be able to scroll both of them individually. I tried using the scrollbar component but I can only get it working on 1 text box. I tried changing the linkage. Can somebody send me a link to an example of how to get this to work?

View 1 Replies

Create A Roi Calculator Using Two Combo Boxes?

Nov 12, 2009

i'm trying to create a roi calculator using two combo boxes. Box 1 how many treatments 5,10,20 Box 2 cost per treatment 90, 100, 120 then button to calculate treatment x cost and a dynamic text field to display result. I am using Flash CS4, am I wasting my time with combo boxes I have searched flsh docs all day.

View 3 Replies







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