ActionScript 2.0 :: Unable To Update Array Values?
Jan 24, 2006maybe someone can solve this one too:i have an array like this:
Code:
for(i=0; i<ap.length; i++)
{
[code].....
maybe someone can solve this one too:i have an array like this:
Code:
for(i=0; i<ap.length; i++)
{
[code].....
maybe someone can solve this one too:i have an array like this:
Code:
for(i=0; i<ap.length; i++)
{
[code].....
An example would be someone filling out and submitting a formand then the information entered is sent to the xml file to createor update nodes in the xml file
View 1 RepliesI have a Flash file someone made for me 6 months ago. Currently, I needed to update an image in Flash and when I run a test, the old image always shows up. I ran F9 to see if there is an embedded call for it in an action script and there is none. Then I looked at the entire Library for an Old Image. I still could not find it. Lastly, I went through the timeline and got nothing too
View 6 RepliesRecently I installed a fresh copy of Windows 7 32 bit on my HP laptop, and installed all the CS4 applications of Design Premium. The installation went fine, and almost all the updates (Photoshop 11.0.1, InDesign 6.0.4, etc..) installed with no problems. The only one It doesn't allow me to install is the Flash 10.0.2 update. It gives an error that "the installer detected a problem and cannot continue" and then shows some options to ignore the update.
View 2 RepliesIs there anyway where I can pass the Array values (not the array collection values) to the Bar charts or column charts using flex 3.5...
here is the thing i want:::
I have array values like this,,
array1 = [23, 49, 40, 239, 20, 80, 39,49,120, 24, 31,41];
and i want to show these values on the Yaxis and months on Xaxis....
I have two Qns,
1) how can I pass this array to Bar chart or column chart.
2) how do I need to show months on Xaxis. beacuse I'm asking this regarding, I have kept a filters that even if we want to see some months or a particular months or perticalar span of months... there on Xaxis it need to change the months dynamically depending on the filters..... (for ex, on Xaxis the values should be (Jan, Apr, Jun,Oct) if i select the 3 months period filter....)
I have written a logic to collect the values of those particular months into an array, but not understading how to pass this array to Bar chart,, beacuse there I don't know what Xfield and Yfield to be given....
I've experienced an odd behavioral of flash and correct positing of objects, properly a bi product of floating point values.
case: Imagine 10 MC which expand and contrast with a damping effect, each MC's would then position itself to the previously MC in Y axis.
problem: when all objects expand and contrast and then reposition themselves to the previously MC, then occasionally there's a shift in the Y position which gives a white space of 0.x pixels.
I seem that either flash have an update issue or more likely there's a conflict in the way flash convert floating points to position the object on stage.
[Code]...
I have values inside an XMLList in Actionscript. Need to send these values to the DB and update it.My actionscript code is as follows:
public static function saveUserPermList():void {
var ht:HTTPService = new HTTPService();
ht.url = Config.getServerURL();[code]..
I have 3 variables on the _root timeline.
var a = 50;
var b = 75;
var c = 100;
then i have a prototype which uses those
MovieClip.prototype.myName = function(a,b,c){
...
}
I then have 3 sliders which change the values or a,b and c.
My question is: How do I get the prototype to update the values of a,b and c as the sliders change the values of the variables?
I'm new to Flash and PHP. I'm using the FlashBuilder with PHP product. I have a data grid that is connected to a PHP script that retrieves and updates data via the 'Enable Data Management' function. If I modify data on the grid by using the screen and call .commit(), everything works OK.
However I would like to programmatically change some of the values in the data that underly the grid and have those changes get back to the update function in the PHP script when commit(). is called. But I can't figure out how to change the underlying data.
Here's the code I've tried: (the object that I pass back and forth to the PHP script is call MailPiece. I want to set the WORKORDERNUMBER field on each row of the data)
[Code]...
How can i update multiple cells of the same row changing the value of a single cell of the same row ??
Example: id, height, weight, fat percentage, corporal mass. When i change one of the values in a row (except id of course) the corporal mass cell value must change using a formula like: (height/weight2)*fat percentage*100. Is this posible with Datagrid or AdvancedDatagrid in Flex ??
I tried using custom item renders and inserting actionscript code inside the datagrid with no good result.
I'm having my first go at creating a custom component that lays out items in a grid. I have made a selection of inspectable properties accessed though getter/setter methods. Some of these parameters are dynamic, and change when the user resizes the component or changes another linked value. Is it possible to make the parameters panel update with the new values when a change takes place. Without this, the user will not have accurate feedback on the values stored in the component. Does anyone know if this is possible (or difinitely impossible)?
View 1 RepliesI'm using the .unshift method therefore the newest values go into [0] and the rest are pushed down.
What is a good method to remove a value from an array once it has passed a certain length? For example i only want my array to hold 5 values.
Also, is there a method for clearing the entire array, ie removing all values? Or will i have to manually change all the values with a loop?
I download Flash CS5 and I try to execute it without an error message coming in and basically the program does not start.The message goes as follows:
Flash.exe - Entry Point Not Found
The procedure entry point ?ik_treelsActive@CFlashIK@@QAE_NJ@Z could not be located in the dynamic link library FlashIK.dll.So then I tried to install the updates via the website and the AdobePatchInstaller.exe and I get this:
Some updates failed to install.
Update is not applicable.
So here I am unable to start Flash CS5. Anyone know a way to fix this issue?
anyone knows how to pass an array values from an HTML into flash? Well, to begin I'll discuss what am I doing. I edited a twitter widget javascript which search tweets based on the hashtag I needed then passing it on an array per tweet and then displaying it using a <div> it updates once every 5 minutes. Now I want to display those tweets on a dynamic text on Flash. Let's say I will have 5 dynamic text placed on my flash file then; I want each of those dynamic text to have the tweets I have based on on my HTML arrays to be displayed in random.
View 2 RepliesArray of color id-s represents a 3D Array of values. I've represented each value with a color(Blue is 1, Red is 2 and Green is 3). So for the example the array for the image would be[code]...
Now, I have an array of predefined shapes/objects. I'd like to replace the grouped colors with the shapes that I have. I'd like this to follow the rule of finding the largest shape first and then down to the smallest one. [code]...
I have some variables created on the main timeline and a mc called options which will be where those variables can be manipulated. A way I've tried to this is by creating a first array(array1) and populating it will all the variable names found on the main timeline, and another array(array2) containing the values of the variables the user has changed(which are displayed on some dynamic text fields). To make these changes, an "apply" button is pressed which will set the values found in array2 to the variables in array1.[code]How would you do this so that var1, var2... are updated properly according to the values found in array2?And because array2 contains strings(read from dynamic textfields), how do you deal with that since var1 and var2 are numbers?
View 6 RepliesfilterFunction is a method to apply a filter on the content of a collection.But the filter is not apply into the orginal Array (the one which use in the ArrayCollection) So, after apply a filterFunction, the original Array lenght doesn't change, neither the content because the Array is not update; Only the Arraycollection does changes after filterFunction method.is there anyway to synchronise the content of an arraycollection with an array ?
View 2 RepliesI'm trying to write some code for a simple product scroller.I have an array of product items and when the user clicks the next button I want to remove the item at the last index of the array add add it to the start index and then update the stage with the results.
View 1 RepliesI have an inputbox and a submit button and prev and next button in my screen. Whenever users enter a text in the input box and clicks on the button, the text value is stored in an array. Then users click on the next button and again enters new value in the inputbox and click the submit button. The new value is added in the array.
Now suppose if users want to make correction to the values that they have entered for previously entered values, they can click on the previous button and make correction and click on the submit button.
For this I think, we have to remove an array value and add a new value to it. I am confused on how to remove and add a new value to that particular place.
Do I have to use Array.splice method. I think using the splice method I can remove an array item but how can I add the new value to that particular place. For example if users want to make correction to the second item, we should replace myArray[1].
I think I must be missing a step here; I have different data being pulled from an array created from xml depending on a variable (_currentTrackNum).. and the data changes if I set a different initial value for it; but if I change the variable once the program is initialized, none of the data changes even though I rerun the call with the changed variable.[code]
View 1 RepliesI am trying out the following code, so that whenever I make a movieclip null, the array containing it's reference too becomes null. I understand the following code cannot do this, but I want somehow, the array can provide information, if the movieclip has got null.
import flash.display.MovieClip;
import flash.events.Event;
var a_arr:Array = new Array(a_Mc,b_Mc);
trace(a_arr);
a_Mc= null ;
trace(a_arr);
Output is:
[object MovieClip],[object MovieClip]
But I want something like null, [object MovieClip ]
i'm running a simple nested for loop (code below) that when you go over a tile makes it change its color, so far so good but i also want to make it so that when you go over a tile you can then continue only on the tiles connected to it
Code:
for (var colum = 0; colum < field_h; colum++)
{
for (var row = 0; row < field_w; row++)[code].....
i think i should be able to do it using arrays but i can't seem to understand how after the tiles are placed and the array updated accordingly to update the tiles with the new array value (enter frame event ? )
I've been working on a project the last few days in AS2 and decided I'd try and re-write it in AS3 as I'm yet to venture in to the AS3 world. I've done most of the conversion, but I'm stuck on what should be an easy problem. I'm loading images from an xml. The images get put into movieclips.
mcholder.image_mc.nmc0
mcholder.image_mc.nmc1
mcholder.image_mc.nmc2
mcholder.image_mc.nmc3 .......
I have a function that resizes the images when the stage is resized. This then runs another function to update an array of the image widths. The problem I have is trying to update the new widths into an Array. I just can't seen to reference my MC's to get the widths!
[Code]...
I am unable to get the length of the array.[code]...
View 3 RepliesI loaded multiple xml files inside Array now I am unable to use the xml files from array
Code:
function onLoaded(e:Event):void
{
var xml:XML = new XML(e.target.data);
[Code]....
How I can retrive data from XML files saved in array ??
[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.
View 2 RepliesCode:
var userdataArray = new Array();
for (var s = 0; s<5; s++) {
[code].....
I started to mess up with classes to see how they work, and I'm having some troubleI'm trying to do a class where the user gives an array, and a number. The result is a trace of random X numbers, according to the number the user requested. If he/she types 3, the class gives 3 numbers.It works nice, but when I try to put an sort(Array.NUMERIC), i get this error:
PHP Code:
TypeError: Error #1034: Type Coercion failed: cannot convert undefined to Function. at Array$/_sort() at
[code]....
What I'm trying to do is to create a class loading three images as a pile into a movie clip and be able to switch from one image to another (with a fade effect) thanks to a method (setPic).
The problem I have is when I want to store my loaded image into my array( magnitude[i-1] = loader.content; ) it doesn't load anything, provoking the addchild(magnitude[i-1]); to return a null error. I know the file is properly loaded because if I addchild(loader.content) directly it does load the image (but I can't store it and access it later obviously).[code]...