ActionScript 2.0 :: Add Data And Change Data Automatically Using Values Computed By Other Functions
Oct 30, 2004
I need to create a table and i need to be able to add data and change the data automatically using values computed by other functions. I was trying to use arrays to create the rows of the table but i dont know how to individually name each array. The arrays have to created automatically and so i cannot name each array manually.[code]but the value for the array is undefined.
I have form in flash with input text fields with Var field set to t2_2 t3_2 t4_2... what i want to do when user enter values and press buton it should post data(values) to aspx page - how can i do that ? i saw what i did
[Code].....
then i can access t2_2 value on aspx page, so what shoul i put before getURL so it will set values from texboxes
I have a radio button group within a data grid, whenever I attempt to change the selected radio button the web page crashes. Below is how I put together the radio button in the data grid.
If user change the value of the TextInput, then click refresh button to retrieve the data model from backend again, the GUI value will not change back. Re-binding not happen, Since the value of data model not changed, no propertyChanged event fired.In this case, I must Programmatically set the model value to the GUI after data refreshing done.I know bi-directional binding can solve this problem(when user change value on GUI, set the new value to data model immediately). But sometimes I cannot use bi-directional binding, for example, the data model is a int, but user input a non-int value, I cannot set the value to data model. So the value in data model do not change, when refresh data, rebinding still not happen.
This will make the data binding useless. How to resolve this?I put pseudo-code here for now, I will put real code later:1. retrieve a data model from server, via blazeds or something else.2. bind the model to a TextInput on GUI.3. user change the TextInput text.4. User click a refresh button, triger retrieve the model value again.5. Now since the model value do not change, no PropertyChanged event fired.6. GUI value still is the user's input, not the value from the model. can clear the model value before set the velue back, make re-binding happen.(but sometimes you do not know how to clean the model value, take int for example, you may do not know the original value and happen set the same value). Or I can manually set the model value to GUI. But both are not good looking.
I have a project with an XML Connector that goes out and gets data from an xml file and displays it in a label in my flash. It does this when the swf file loads using ActionScript in frame 1. The ActionScript is simply: this.labels_xc.trigger(); It loads the data from the XML file no problem. But the data in the XML file changes every so often. How do I get the swf file to go out and get the new data on a regular interval (say every 2 minutes or so)? I've looked at scripts with timers and I can't figure it out. Here is the url to the page I'm testing it on:[URL]
I have datagrid binded with data acquired from web service which, as you may suspectretrieves data from some db. Datagrid has some editable columns and I want to update db through appropriate web service call without adding button "Update" as a last column in datagrid.
I have a file (view the calendar in the upper right of [URL]... that I don't want to have to manually update every day for the next 170 days.
It is a countdown calendar that I would like to know options for how to make it automatically change the start number and second number by - 1 every day at midnight until it reaches zero.
I would like to know about my options for achieving this.
I'm pulling around 200 records from a mysql.1. What should I do to make the dynamic text box automatically fit the data inside? Please show me an example.2. Can this text box be inside an scrollpane? (so all 200 records could be red)
I have 2 questions about flex datagrids: How can I scroll it automatically to the bottom when new portion of data arrived to it (e.g. I added new items). Strange, but seems it doesn't scroll when I use scrolling wheel, is there any trick about it (especially for mac Users).
public function scroll():void { trace(chatboard.maxVerticalScrollPosition); chatboard.verticalScrollPosition = chatboard.maxVerticalScrollPosition; } <mx:TextArea id="chatboard" x="10" y="10" width="310" height="181" text="{chatMessages}" editable="false" verticalScrollPolicy="on" resize="scroll()"/>
But actually it don't work. The text area is not autoscrolled. Seems that 1) scroll is not called after new string is added to chatMessages.
I am showing the web service data into flex application using datgrid. I need to show this data scrolling automatically in continuous manner. Anyone knows how to do this stuff?
The question arose as to duplicate the data entered in the field in InputText in DynamicText (ie when typing in the box, Input, his data displayed in the dynamic field)
I would like to get the content of a shared object (flash cookie) generated by a player, or more precisely by quizzes generated by Articulate Quizmaker.I know where is generated that cookie, I just would like to get the content of a variable inside. But impossible to access it :sI tryed :
var user_so:SharedObject = SharedObject.getLocal("nameOfTheCookie"); if(! user_so.flush()) // sends a boolean, true if the cookie exists {
I am trying to develop a flash map where i need to show avalue from the current url into the text field in flash. Theproblem is I need only some values from the url to be displayed indifferent text boxes.Say the url is http://ayushjain.in/staticDefault.aspx?northamerica=168&southamerica=1 &europe=10&africa=0I want to display the value of "northamerica", "eurpoe" &"africa" in the text boxes.This should be done as soon as the swf loads in the html
I am making a component is AS3, every thing is working great ...except for my Array. I need an Array (or collection?) that has 2 data values. So when you goto the component inspection panel and click the array, the data provider gives you 2 options. Not just the one defaultValue.
Like this: I am looking to end up with this as the Array data: trace (myArray) //OUTPUT [{path: "search.png", label: "One"}, {path: "search.png", label: "Two"}, {path: "search.png", label: "Three"}, {path: "search.png", label: "Four"}, {path: "search.png", label: "Five"}, {path: "search.png", label: "Six"}]
I'm trying to detect the event.target of another function in the same calsses.
ActionScript Code: public function menus():void { menuArray[i].button.addEventListener(MouseEvent.ROLL_OVER,btnOver); } private function btnOver(event:MouseEvent):void { bgGlow(); } private function bgGlow():void { square.x=[B]event.target.parent.x[/B]; }
Here is a simplified of the coding that I'm trying to target.
I have the following scenario: I'm loading data values from an external XML file and I want to swap them with other ones in order to show the latter further on in the movie. As an example, I have the following data in the XML file:
Code:<set label='Epson'><set label='Hitachi'><set label='Toshiba'><set label='Mitsui'><set label='Panasonic'><set label='Canon'><set label='Lexmark'>and I want to swap the following data
I have the following scenario: I'm loading data values from an external XML file and I want to swap them with other ones in order to show the latter further on in the movie. As an example, I have the following data in the XML file:
They will appear in a random order but only once in each graph. In essence, I need something that takes the XML label attribute and swaps it with an other value before sending it further on to the rest of the movie for processing. It would be more practical to do the swapping in the server app that writes the xml file before it is written but that is not possible so I need to do that search and replace when I load the xml in Flash... I could use even something like open the xml - search and replace values - save to new xml
I am trying to fetch values from HTML -embed tag into Actioscript 3.0 (Flash CS4). And sending the value to Javascript using ExternalInterface.call method. But its not working on all browsers. I am getting Security Sandbox Violation error. Following is the HTML in which embed tag and javascript is
I would like to know how to delete(clear) the existing list data values before binding new values. I'm using the list for binding data dynamically using http services. When I make a new call to the service, I want the exiting items to be flushed and bind the newly retrieved data to the same list. How can I achieve this?
I have a bar chart where I'm trying to get the data labels to show. When the values are all positive the data labels appear fine. When I mix in some negative values, the datalabels don't show:
I am trying to plot a line chart/graph from values in an array which obtains its values from an XML file. My code does work to an extent, but as an Array can only contain a limited number of elements (I think it is 255 maximum - but I could be wrong), and the data in the XML exceeds the maximum limit of the Array, I was wondering if there is an alternative method of plotting the graphs from data in XML.
I have a problem with these functions when I register the first user it works just fine but when I register the second the first user is deleted. I'm saving my data inside the swf because I couldn't write the functions in SQL>
This is my register function ActionScript Code: function registerplayer(e:MouseEvent){ savedata.rpname = rpn.text; var registername = [savedata.rpname+"N"]; savedata.registername = "name"; trace(registername); [Code] .....
I am trying to get my PHP variables from my load.php document to my flash-document.That all works fine and I am able to get my data down to flash variables inside my function.But, I would like to be able to access this data from outside of this function which gets the data - unfortunately I cant, or.. Don't know how to. I hope that you are able to shed a light upon my problem. So here goes, this is my code:
Code: var myLoader:URLLoader = new URLLoader() myLoader.dataFormat = URLLoaderDataFormat.VARIABLES
I'm using a custom component CheckBoxList DataGrid (http://blogs.adobe.com/aharui/2008/02/checkbox_selection_in_datagrid.html) and as dataProvider I have an ArrayCollection with items such this one:
name="item name" selected="true"
I would like the CheckBox list updated when the selected attribute is set to false or true in the data model.
So i have this class, It get's two values from an input text and sends the data to my login php where everything works fine. It is supposed to return 0 (bad login) , 1 (good login).
i'm trying to load a full html page with layout table cells intact and full function (like an i frame)i can load text and image but i can seem to get the entire page flash just lods it how it wants.does anyone have an idea? Can this be done? i've tried it with a dynamic text field, componets, and i can get falsh to see table / cell layouts at all.[code]is how i load my content. but making several dynamic text fields to load one page of content is working my nerves.URL...