ActionScript 3.0 :: Create Scrolling Graph From Input Values?

Oct 27, 2009

I'm trying to build a new concept for an interface inside an operating theatre - What I was trying to do (to start with) was make a line dynamically draw itself from a set of values (which I have in an excel spreadsheet) - gradually revealing itself over time like in the screens you see on medical drama's.

View 2 Replies


Similar Posts:


Flex :: Graph Data Provider Has Values But Graph Is Not Plotting

Aug 22, 2011

In the below code the traced values are correct its there in the chart data provder but the

input graph is not plotting.there is no error in this code.Can anyone solve it?

function fnctn(evt:Event)
{
var tp:int = bulb1 + bulb2 + bulb3 + bulb4;

[Code].....

View 1 Replies

ActionScript 2.0 :: Loading Vars - Adding Values To Graph?

Mar 13, 2008

I have a flash file which loads in vars from director. It then adds the values to a graph. The amounts from the string are inputed into text fields. the fields are named energy, waste etc. I want a textfield to output whichever sections that are over 5 saying "well done, you have excelled in water, energy...... I have got this working but am stuck on this bit: I am wanting to add an "and" before the last item, so it outputs as "well done you have excelled in water, waste and energy". Also if only one item is over 5 it wont add the "and". This probably doesnt make any sense, heres my code anyhow:

Code:
var summary_results = "2000,6,3,10,8,6";
var txtFields:Array = [Total,Energy,Waste,Water,Food,Transport];
var excelledItems:Array = [];
var theValues:Array = summary_results.split(",");
for(var i=1;i<theValues.length;i++){
[Code] .....

View 1 Replies

ActionScript 2.0 :: Dynamic Bar Graph From Input Text Field

May 23, 2008

I am trying to make a bar graph that tweens to the height, or decrease, according to the number defined in the Dynamic text box. I would like to use the tween class from MX for a nice bounce effect. Here is my code:

import mx.transitions.Tween;
import mx.transitions.easing.*;
ICcost._height = Number(ICC1);
new Tween(ICcost, "_yscale", Elastic.easeOut, 0, ICC1, 2, true);

ICC1 is the dynamic text field that displays a number from a formula through a couple input boxes. ICcost is the name of the MC I want tweened.

As I have it now it doesnt tween, the height just goes to the ICC1 number which is ok for now. Is there a way to set the tween to happen when flash registers a change in the number?

View 2 Replies

ActionScript 3.0 :: Slider Input Values - Can't Get The Output Values To Add Up?

Dec 6, 2010

I've gotten these sliders to work but can't get the output values to add up. For instance, depending on the values for slider 1, 2 and 3, I need the total to show up in a separate text box. I keep getting a NaN message in the text box.Here's the code I have so far:

//item 1
sliderOne.width = 600;
sliderOne.value = 0;[code].....

View 3 Replies

ActionScript 2.0 :: Equation Generate To Graph \ Show A Slope Graph?

Jan 26, 2010

School Project with the following actionscript in Flash 8, I want to show a slope graph? What code to add to make slope graph work?

/*var orig_x:Number;
var orig_y:Number;
orig_x = (plane_mc._x)+(plane_mc._width/2);

[code].....

View 0 Replies

Actionscript 3 :: Create A Graph From Points In Grid That Contains Holes?

Jul 6, 2010

I've got a continuous plane (2-D) containing polygonal obstacles. I am uniformly sampling the plane at discrete positions to create a uniform grid of points. The grid does not have points where obstacles lie (i.e. holes where ever an obstacle is) as shown in the image below.[url]...

View 1 Replies

ActionScript 3.0 :: Create A Plot Graph With Labels On Plotted Points?

Aug 26, 2009

I want to create a plot graph with labels on plotted points

View 2 Replies

ActionScript 2.0 :: Create A Graph Of An Exponential Function For Interest In A Bank Account?

Sep 24, 2009

I'm trying to create a graph of an exponential function for interest in a bank account or something. Here's the code I have so far:

Code:
var i:Number=0;
var j:Number=0;
this.createEmptyMovieClip(graph, 1);

[code]....

View 2 Replies

ActionScript 2.0 :: Create An Input Text Box That Puts The Users Input Into A Global Variable?

Apr 12, 2007

i created an input text box that puts the users input into a global variable, but when i test it it gives me not only what i have typed in but all the html formatting for the font that my input text box has on it.I only want the text that i have typed in to go into the variable but the wackload of html is going in there too. ive tried a few different things, rewriting my code, recreating the text box, changing settings, dont know what im missing.

View 10 Replies

ActionScript 2.0 :: Swap Values From XML Input?

May 14, 2010

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'>

[Code].....

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...

Edit: I could use even something like open the xml - search and replace values - save to new xml

View 1 Replies

ActionScript 2.0 :: Populate Scrolling Text Field With Multidimensional Array Values?

Dec 16, 2006

I have a detailed results page to which I want to post all the questions, answers, and whether the user answered correctly or incorrectly. All this information is stored in a multidimensional array and its successfully showing the results via the trace method.

My question is, what is the syntax for populating a dynamic text field with these results? Do I just write out one long line of AS with the newline command to separate the data? How would I go about applying bold to certain parts of the stored data that I will be showing?

Here is current code for my detailed results page:

function showResults(){
trace("Now showing results");
for(var i:Number = 0; i < NumberOfChallenges; i++){ //This calls the length of the original array (not the spliced copy)

[Code]....

View 1 Replies

AS2 :: Data Integration - Swap Values From XML Input?

May 14, 2010

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

[code]........

View 1 Replies

ActionScript 2.0 :: Get/set Values To Dynamic/input Textboxes?

Mar 14, 2007

I'm trying to set up a calculator for a couple of formulas I need to use for some schoolwork. I thought it would be a lot easier if I could just put the numbers in there and hit enter.I can't figure out how to transfer the numbers from the input box to the dynamic box though =/. I figured I'd try to get going really easy, just do a input box, when you click on a button, a dynamic box displays whatever is in the input box. I cant get it to work though . I tried various variations of codes, Heres some of them:

[AS]
this.btn.onRelease = function(){
this.outp.getProperty(this.inp)

[code]....

View 5 Replies

ActionScript 2.0 :: How To Swap Data Values From XML Input

May 14, 2010

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'>
[Code] .....

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

View 1 Replies

ActionScript 3.0 :: Turning Input Characters Into Number Values?

Jan 13, 2010

So I have an input text and let's say the user inputs "Hello" in it.Then I want to calculate the total value of what is entered in a fashion like H=4, e=2, l=3, o=6. Meaning the total value of the entered characters would be 18 in this case.

View 6 Replies

ActionScript 1/2 :: Actions Depending On Input Text Values?

May 8, 2011

I have started to use input texts and passing them to outputs etc.I was wondering, is there a way in AS2, to, for example if someone enters a value that's between 150 and 200. Accepts it, and the code somehow recognizes the range if value from 150 to 200, perform a function (for example setProperty on something to visible true) a different function would apply if someone enters a value between 100 to 150.

View 10 Replies

Php :: Defining A Custom Class With Text Input Values?

Jul 13, 2011

I have another question for the masses out there regarding trying to input values from a text input box to a custom class. I currently have a custom class named Company with properties that correspond to values in a MySQL database.

So I created an input UI on the client application that calls out for Address, Name, Zip, Phone, etc. - Then there is a button to submit to values to the database for creation. Here's my question:

How do I take each individual textinput.text property and 'mesh' them all together to a Company object to send to the server? The PHP that is written takes in an argument like this:

public function createNewCompany (Company $item) { .......

So is that even the right way to send them in? Or???

There are a total of 11 things (properties) that need to be submitted.

View 1 Replies

ActionScript 2.0 :: Add 3 Values From Input Text Boxes, Display Total?

Apr 30, 2003

I want to be able to add the sum of 3 input text boxes and have the total be displayed in another text box. figure I set a variable and do something along the lines of: Number = "_root.input1 + _root.input2 + _root.input3";Or do I have to do this another way?Also where should I put the code? In a button? Or can I stick it in the frame to save complications of users clicking on a button.

View 5 Replies

ActionScript 2.0 :: Math Power Function - Where Both X And Z Are User Input Values

Oct 30, 2008

I want to make a function like y= (1 - x^z), where both x and z are user input values. How is that possible?

View 1 Replies

ActionScript 2.0 :: Input Text Area Values For Contact Form

Oct 9, 2009

I have a Input text area set up for a contact form. I want the area to display "Email", and for the alpha to be 50%. When you click on the text field to put in your email address, I want the original value to be removed and for the alpha to reset to 100%. I've been able to accomplish this fine so far using the code below; the problem is that I only want the value to become blank again if the user hasn't entered in information yet (this way if the user wants to come back and change something, it won't all be deleted when the text area is clicked on). I tried using an "if" statement, but Flash seems to just ignore it and perform the function either way.

Here is the code that I came up with:
email.text = "email";
email._alpha = 50;
email.onSetFocus = function() {
email.text = "";
email._alpha = 100;
[Code] .....

View 4 Replies

ActionScript 3.0 :: Get's Two Values From An Input Text And Sends The Data To Login Php

Oct 9, 2010

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).

[code]...

View 1 Replies

ActionScript 2.0 :: Change The Speed Of A Moving Car Based On Values Input By User?

Mar 18, 2006

How can I change the speed of a moving car based on values input by user? Also, how can I make Flash calculate values of a function based on those input values?

View 1 Replies

IDE :: How To Create Scrolling Text

Jan 13, 2009

I need to learn how to create scrolling text. I�ve looked around on the web but I can�t seem to find a good tutorial on it. The text does not need to be dynamic, I must be able to choose different fonts and colors for the text, and most importantly create a custom scrolling bar.

View 2 Replies

Create An Icon Scrolling Menu?

Sep 30, 2009

[URL].. Can anyone lead me in the right direction to create an icon scrolling menu like at the bottom on this webpage. scroll with the right and left arrows and click the images for links.
 
Is there code available or a product to purchase?

View 2 Replies

ActionScript 1/2 :: Create A Scrolling Timeline

Oct 7, 2009

I'm looking for tutorials to create a scrolling timeline similar to the link below
 
[URL]

View 2 Replies

Create A Scrolling Text Banner?

Oct 12, 2009

I need to create a Flash banner. Fairly straight-forward in terms of looks - a long list of services that scrolls from right to left and then loops continuously.

I'm using Flash MX 2004. So far I've created the text - it comes on from the right and leaves on the left. The problem I've got however is how to make this a continuous, seamless loop. When it goes off on the left I can't figure out how to make it come back on from the right.

View 1 Replies

Create A Scrolling Effect On One Of My MovieClips?

May 17, 2010

I would like to create a scrolling effect on one of my MovieClips. In Javascript I'd simply create two divs, one positioned absolutely in the other, and have the surrounding one have the style 'overflow: none'. Now I want to achieve the same in ActionScript, as shown in the following picture:

When I try to set the size of the surrounding MovieClip the contents just get 'squashed'. I want it to stay the same and the parts outside of the 'rectangle  to be hidden outside of the MovieClip.

View 1 Replies

ActionScript 2.0 :: Create A Scrolling Background?

Aug 20, 2004

I would like to create a scrolling background for a web site (something that functions like the old 2d pane scroller games). Does anyone know of any books/articles that address this functionality?

View 6 Replies

ActionScript 2.0 :: How To Create Scrolling Photoes

Jan 18, 2005

I am trying to find out how to make a layer with photo thumbnails in it which can scroll.It's exactly like the Kirupa tutorial "Basic Text Scroller" but then with picturesWhen the thumbnail is clicked on, the large version of the photo thumbnail should appear outside the layer on the right.

View 1 Replies







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