i have a pb, i want to create 2 types of brick ,i haven't understood where he defines that 1 apply to a certain brick.or is it even that...so really, do anybody knows how to make a array with 2types of brick? from that tutorial?
i made a bouncing ball game. but i put a hitTest on it so that it would bounce off a brick. but what happends is that when the ball hits the brick in a angel it gets stuck on the insid of the the brick.
I just want the ball to bounce somewhere else other than stopping the ball at the place. I already made sure the paddle can move and the boundaries block the paddle from leaving the stage. So can someone give me the codes (please simple for me to copy-paste) for having me to bounce the ball some opposite direction or whatsoever. Like once the ball touches the paddle, it reflects somewhere else at the same speed and a different direction without any errors.
this is my code for photogallery.there will be 61 images loaded in this array.how can i make an AUTO button which will make a slideshow,showing all the images in array?
arrayrow = new Array() arrayrow=[ ["00.jpg","0","sajkad","hjsgadhj"],[code].....
I was just curious if an array can make itself.ie, I want an array to be [1,1,1,1,1,1,1,1,1] that sounds silly but there is a reason for it.So without having to say 1,1,1,1,1 dozens of times is it possible to just have some variables, 1, and 100, and have the array make 1, 100 times?or have while (array length = = 100? array = 1?
I'm making a game and i want to use a 2d array to make some random things map coordinates and other things, my question is how do i make and edit a 2d array, if it matter i want my array to be 7 x 7 or 0-6 X 0-6
I'm building the slot to build:houses, farms,I have a movieclip name: mcglass with width=height=100.I want to it appear 3 column and 4 row on stage.How to use array make map?
I have an array which is filled up when someone clicks on a button.
something like this:
Code: var ThumbArray:Array = new Array(); //on click, adds new value like this ThumbArray[ThumbArray.length] = [productid.text, viewID.text, price.text]
I limit it to a maximum of 14 values.I now need to know a good way to set a variable equal to the value of a row of the array - but if there is no value then it becomes "0"
I'm trying to make an array of colors. I have uint's representing my colors now: var btnColor:uint; btnColor = 0x999999; But when I trace these button colors, they come out funny. The color above comes out as: 10066329 And this is the way they get pushed into my array. I tried converting them to Strings: arrBtncolor.push(String(btnColor)); But it was the same 10066329 that got put into the array.
Alright, so within my final swf I need to have a function that searches, but not searches the internet (such as integrating a google or bing search). It will be searching though data that I have already collected. My data is in the form of CSV (comma separated values). I already load in the csv and all that jazz, no problem (using url loader). I put the data into an array. I can conduct the search in a few ways and I was wondering what everyone in the forum thought would be the best way. The data also gets attached as parameters to objects that I put on the stage, if that matters.It must return all things in the array that match the string typed in the search, and not just the first match it finds.
I made a quizz using this tuto [URL] I try to make an array at the end of the quizz but I have few problems : I want, for each answer, to get 3 things : question number, the answer, and if it's right or wrong. i've done this in actionscript:
i have a problem. I would like to retrive xml data from an external file. An than i would collect data from that xml to be compared with some id buttons.ex. IF (xml output atributte) == (id of button), than dissplay button red, else dissplay blue.I have no problems till here. This is the array and its conntent.
var dataValues = new Array(); dataValues[0] = "100"; dataValues[1] = "131";
I have a multidimensional array, and my arrays are joined together to an array arrGrid. I want to randomly show one of my arrays from my list arrGrid. So far I have the randomizer, but it goes through them all and stops at the very last name in my array. I want to be able to stop the array from randomly going through them all, and just show one at a time.
stop(); var arrGrid:Array = new Array; // master array that holds arrays var arrname:Array = new Array; // all the names var arrcontainer:Array = new Array; // all the package types
I'm trying to do a collasplble menu, after hours of search (Google) I've found a great FLA, really.. but I don't know why, I cannot make url links, it only work with external SWF..
I want to make an array that loads movie clips, kinda like a tile game.. I'm making this "Badges" kinda thing on my game, and I want to add them with an array, so that it makes it much easier then adding each one.
I want it so that it shows 6 at a time, then you press a button, and it shows the next 6. How can I start out making this?
How can I make my Array to return a randomly value? I want AirUnit to return a value between 1 and 3. I want LandUnit to return a value between 4 and 6. I want WaterUnit to return a value between 7 and 9.
I'm trying to animate the list of thumbnails I have imported from an XML doc in my movie. In as2 I had something like:
[Code]...
So I've decided the best way to animate them in a staggered fashion is to create a "clipArray:Array" and then push in one thumbnail at a time. Then animate the clips using Tweenlite's TweenGroup. However, I don't know what would make the most sense as I'm new to the display model. Should I try to push in movie clips or holders? I'm not sure would make more sense down the line with the new format in AS3.
I have sections with questions and answers which I can get. But, I need to save each section into new array and tally all the final scores.The screen will show the section score of current section that was just completed and the final score.I know the code has lots of problems - attached.For the total scores the dynamic text boxes var's are totalnumcorrect, totalnumIncorrect, totaluserScore.For the section score the dynamic text boxes var's are numcorrect, totalnumIncorrect, totaluserScore.
I just make a grid based on array... my problem is how to highlight boxes that contain only character I mean if the box contain character it will gotoAndPlay(2)...eg:[code]
I am making an user application where users can chat one on one for an x amount of time till they go to the next user (see it as speeddating). Only they are all women talking about women stuff like knitting or something. A friends chat.
I am stuck with making unique pairs. only the first round is going great (unique pairs), but then it gets mixed up:
[Code].....
As you can see everyone in round 1 is paired good. But in round 2 you see (for example) Donna talking to Cindy, but Brenda is also talking to Donna. that's not right. she can't talk to 2 people at once.