But of course, "this" doesn't work, so I need to find out what number "this" is
Of course, it would be easy to remove the MC that I am checking "this" for distance with, it would just be splicing array[a], but it's "this" that I am just not sure how to splice.
how do i find out the number of properties in any element of the ArrayCollection? The structure of the ArrayCollection wud be something like:
var arrColl:ArrayCollection = new ArrayCollection([{column1Data:"someData",column2Data:"someData"},{column1Data:"someData",column2Data:"someData",column3Data:"someData"},
given an arrayA = [a, b, c] and arrayB = [a1,a2,a3]
by using array[0].name, it will return "a", is there any function that i can get the number "0" when i do something to "a" ?
I hope i make it clear here Xp
because i have 2 array here, i wanted to do something when the position of an element in an arrayA is same as the position of another element in arrayB.
for example trace(array[0].name); -> output = A trace(array[0].?????); -> output = 0
[code]I want to input a number and find a match for the number, returning the values on the row in to specific fields for each number. For example, if I input the number 10 in an input field, I want the number 1.2276, 0.00100, 106.38 and the rest of that row to output these values I have seen so many options, don't know where to start.
This object is ok, and shows up correctly in debug mode. The problem is I have a country name i.e. private var _country:String = "Angola";, and I want to get the corresponding value 'AO' from the XML object. Do you know how to do this?
I have tried loads of Livedocs examples, but cant get it to work. P.S. I am working on a HtpService & WebService driven app to display global weather conditions overlayed on a Google Maps interface. Going to make it available to the Flex community when finished.
I am dynamically creating 10 textinputs inside a vgroup . when user clicks a button, I want to fetch the text present on all textinputs. How to do this. My code looks like this
var vgroup:VGroup = new VGroup; for(var i:number=0;i<10;i++){ var textinput:TextInput=new TextInput(); vgroup.addElement(textinput): }
Is it possible to, if you have an array of class names like ActionScript Code: var city01names:Array = ["pic_01", "pic_02", "pic_03" ...] make a new array which would read these names, instantiate them, and push them into a new array containing the instances of all these pictures, which I could then use for a slideshow?
I have an array called dropTarg1 which stores dropped-in items.I want to loop through this array and in a textfield, display each array item on a new line of this text fieldI think I need to use something like Array.join("/n") but I can't get it working properly. I hope that the /n would create a new line of the text field called reviewBoxContentText.
I have 4 buttons and an empty array. When a button is clicked,I'm adding a element to an array with array.push. However, I want to check the array 1st to see if that element exists. If so, then don't add it. Here's what I have thus far
[Code]...
Now I'm taking it I'd have a conditional statement to see if the element already exists. Unfortunatly I cannot just disable the button. I searched the AS dictionary but oddly enough it doesn't have an easy way to search an array. And IndexOf seems to only work for a string.
I want another array which takes the values of the price from the 1st Array. Can we do something like this? private var another_price_array:Array = [all_array.price]; This second array will be used to populate a ComboBox, or can I populate the combo directly from the first array itself?
I'm trying to create a shuffle button for my mp3 player. I don't want it to repeat any song in the xml playlist until all the songs are played. Is there to display a random number on the click of a button, without repeating any number in the array until all the numbers in the array are used?
i need to split a large text file into an array at line breaks so one array element = one line.i have tried the using "" in both match() and in RegExp but it doesnt work.i had the g and m flags on. tried the $ sign too.
I recently bought a new machine and tried to put my Flash 8 software onto it. The serial number was fine, but it requested the serial number of the software I upgraded from, which I no longer have (MX, I think it was. I threw it out ages ago thinking I didn't need it ). I can't even remember what email address my macromedia/adobe account was under, it might even be under an email address for a domain I no longer have.
I do still have the software installed on my old PC. Is there anyway I can find out the serial number of the MX I upgraded from off of the Flash 8 on there? Or it is a lost cause?
Im looking to be able to find a number (any number) within a text string, what i ultimately want to do is crop the number out of the string to just be left with a number value, the only problem is the string could be any length and the number doesnt necessarily start at any point from the last characterI have items on the stage named 'image0', 'textfield2', 'button500' etc, as you can see the prefix before the number isnt a fixed length so I couldnt use substr and set an index, and since the number could be any number i couldnt set the index as a certain value before the end of the string. (ie it might return '500' or 'ld2' or 'ge0' in the examples given before)
Is there a way to find how many child of movieclip inside a movieclip .. in AS2 just like in as3 there is a property called numOfChildren or something like that?
i have a gallery of images, 4 galleries actually. I have thumbnails that pop up for each gallery. I want to find out how to detect which thumbnail is being selected so i can load the appropriate image.
Code: var picNum:Number picLoad.load(new URLRequest(myXML.Gallery[galNum].Image[picNum].@picURL)); stage.addChild(picLoad);
I want to take a string that contains numbers and search for a specific number within that string. For example, my string is "0 1 3." I want to check to see if the number 3 appears within this string.
I need to trace the current level number that I am working on. So say I have 3 swf's loaded onto different levels (_level0, _level1, _level2, _level3), and each has a button, so when I press the button in level1, the number will trace 1, press button in level2, number will be 2, etc.
I recently purchased a macbook pro from eBay which had Flash CS4 already installed on it, but which didn't come with the original documentation or CDs that would have had the serial number. The seller said he would send along the appropriate numbers when he tracked them down, but he never got back to me again. I'd like to upgrade to Flash CS5 now, so is there any way I can find the serial number through the software itself? I've seen similar threads to this one elsewhere in the forums and the most promising answers have involved people locating truncated numbers in the software and asking Adobe to decrypt them. Unfortunately, I can't even find these truncated numbers...
I'm using the TouchEvent listener rather than the TransformGestureEvent listener because the TransformGestureEvent listener's built in gestures (particularly zoom) seem to be extremely slow and poorly thought out. So I'm dealing with raw touch data and I need to find the number of current touchpoints. Is there a method that returns the number of touchpoints currently on the screen?
I'm trying to work out a logic for a game (in Flash). In one part, given the following row:
_ _ * _ _ __ *
I need to find if all the spaces between the *'s are empty (Non-empty values other than * can occur in the row). This operation is done quite frequently. I was wondering if I could use bit representations of rows to achieve this, instead of looping through and checking the intermediate positions.
For a row _ _ * _ _ _ * represented as xx1xxx1 (x = 1 or 0), I could AND it with 0001110 so that if the answer is 0000000, the intermediate positions are empty.
The question here is, of course, how to find this second map (0001110 above) using bit operations (in Flash AS2)? (Map (1,4) -> 0110, (1,3) -> 0100 etc) Or is looping through the intermediate positions just the better choice?
I have a for loop that arranges icons in rows, and I want 6 icons per row. The number of icons is variable. So I was thinking that if I can find out how to test if a number is a perfect multiple of 6 (or 7, I suppose), I could then add a line in the loop that changes the _y value of the thumb to a higher number and resets the _x value to 0, thereby creating a new line. how do you test to see if a number is round?
Is it possible to find out the number of frames of a movieClip using actionscript? Like in the main timeline have some actions in frame 1 to find out the number of frames in "content" movieClip?