ActionScript 3.0 :: Create A Plot Graph With Labels On Plotted Points?
Aug 26, 2009I want to create a plot graph with labels on plotted points
View 2 RepliesI want to create a plot graph with labels on plotted points
View 2 RepliesI'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 RepliesI'm new to Flash and actionscripting and need some general information on how to plot a point on a graph. I've been researching how to make this happen and an wondering if I'm on the correct track.
It seems like the best way to do this will be to place the sprite at the x,y location on the stage that represents the graphs origin, then add to the x value the value of x for the point of interest, then add to the y value, what the y value of the point is.[code]...
I have a need to create a Ternary Plot graph from 3 different variables.
[URL]
I basically need to come up with the x/y coordinates of the point within the triangle, from the ratio of the 3 variables.
Is there any function / algorithm that anyone is using to create this? The language I am using by the way is ActionScript 3
I've made a graph application in AS3. You can plot points and then lines draw between the points to form a polyline/polygon. At each point a label (textfield) is dynamically placed to label that point, i.e. A for the first point B for the second etc. What I'm struggling to understand and properly implement is how to make sure the label is not being overlapped by a line using simple trigonometry. I'm calculating the acute angle for the intersection between the two lines at each point and then substracting 360 degrees from that to get the angle of reflex. At this point I get lost. How can I place a textfield at the middle of that angle of reflex (basically the opposite side of where the lines are drawing to). Or, is there a better strategy for placing the textfields and insuring they are not overlapped by the lines?
View 6 RepliesSo I have this flash app I'm making that uses a URL load to load a bunch of plot points from an address. When the loader finishes, it send the data to a plotter function. the plotter function clears the graphics in a shape called graphLine. It then draws a line from one plot point to another using the lineTo function. Basically every 3 seconds it makes this request and redraws the screen and updates the value of a textfield to the current y value. In flex builder 3, it works great in debug mode. The screen updates just fine. However, when I make the release build and test it out in a browser, it loads the data fine, but will not draw it until I stop the graphing process. Any thoughts on this one? Here's the code for the graphing function
[Code]...
I have an area graph and I'm looking to have the data points to be shown. I have a CircleItemRenderer, but this shows all of the datapoints in the default stroke and fill. 1) How do I customize the display of my CircleItemRenderer? (instead of it having an orange fill, how can I change the color?
2) How can I decide to show the node for specific data points but not for others? For example, in my .XML file that imports the data for the graph, I may have a variable show_data_point which is true or false.
[Code]...
This is more of a question of logic than coding.. but here goes. I've got an array of points, and when plotted on a graph in flash it shows something like this:The blue points just highlight the points of each spike. While the red points are points I want to find.My question is, how do I find the red points on each spike?At first I tried sorting through the array for the highest points, but that didn't give me all the red points as some blue points are higher than the red points.Just by looking at the graph I can immediately see the points I need, but it's a bit harder to find those using code..
View 10 RepliesWe'd like to show some shiny charts/plots/tables for some business data. It targets PC browsers and iPhone/iPad.
We have done some research and here's possible solutions:
HTML5: not yet very standard and we are lack of experience. Flash: it looks like Flash on iPhone runs on some sort of virtual machine, it's not very efficient. We have little knowledge on this too. Silverlight + Cocoa Touch: it looks like MS is now giving up SL. We need two times of work on GUI if we choose this. Maybe I can write some XAML parser for iOS using UIKit and Core Animation.
why the data points on the LineChart don't line up with the corresponding tick mark / horizontal axis label? See adobe's example (at the bottom of the page):[URL]See how the data for 7/28/05 is to the right of the 7/28/05 tick mark / label?
View 1 RepliesIn 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].....
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].....
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 RepliesI'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]....
How do u create an array of labels in actionscript?
View 1 RepliesHow do i create an array of labels in actionscript?
View 3 RepliesI am new to flash and action script - My target is to make a website with flash. Everything was good until I get to the actions step. I need to create animation with pictures. I am using labels, so when you are on some label and pressing to move to other one it have to create sorting animation which exactly contains the image you have now and to change it to new image of the pressed label.
View 8 RepliesI would like to create a custom Button component with three labels: left-, center-, and right-justified. I can't just use the label justification property, because I want to use all 3 labels at the same time.
I'm familiar with creating custom components, but I've never tried to build one quite like this before...
Here's what I have so far:
<?xml version="1.0" encoding="utf-8"?>
<s:Button
xmlns:fx="http://ns.adobe.com/mxml/2009"
[Code]....
The labels won't change after the button is created, so I'm not worried about the missing [Bindable] metadata.
I'm stuck right now, getting the following compiler error:
Multiple initializer values for default property, 'label', of type 'String'.
...for each of the 3 <s:Label> lines.
Based on this answer to a similar question, I tried adding label="" to my <s:Button> declaration, but that just adds another error.
I am trying to write code to read from an xml file which i have done succesfully and create new labels each time the code loops that would have as text the data in the xml file. I want the first label to have as text Kelly Maker, the 2nd as Mike Grundvig and so on.I also want all the labels to move across the stage just as the first one does. What I have now is a single text that shows the last name which is Freed Maker. I tried using the duplicateMovieClip but all it did was to create 2 static labels (that dont move as I want it) that have as text undefined.
XML
<MyFriends>
<Name Gender="female">Kelly Makar</Name>
<Name Gender="male">Mike Grundvig</Name>
<Name Gender="male">Free Makar</Name>
<Name Gender="male">Freed Makar</Name>
[Code] .....
I'm trying to create simple custom component with two labels with this MXML:
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="250" height="30">
<mx:String id="result" />
<mx:Label x="5" y="7" id="titleLabel" text="{label}" width="120"/>
<mx:Label x="125" y="7" id="resultLabel" text="{result}" width="120" textAlign="right" color="#A41D00"/>
</mx:Canvas>
It is working well at runtime, bud I have troubles making it working at design-time. How can I make databinding work at the design time? If it is impossible, how should I code the label text assignments?
I'm basically creating a huge slideshow presentation for a live show. I decided to put everything into 1 huge fla/swf so that it is more manageable in the future.With AS3, I have made it so that when the user presses the right arrow key, it will seek out the requested frame label and play the next slide.This works well.However,some of the frames need to be played again in later slides.So I would prefer to reuse those frames again, instead of copying and pasting them 10 times.When I do that though,I have no way of switching to the next slide, as I've already set the nextframetoplay variable in my class.
Does anyone have a better way of doing this? Should I perhaps create the screens and just create a holder and use addChild to play them instead of jumping to the frame labels?
I need to create a line drawn between 2 points. My actual idea is of joining 3 points with lines drawn dynamically(for a triangle).
View 1 RepliesI want to create a simple array of points, representing a clockwise set of coordinates at 45 degree increments, such that the array would be (starting from 12 o'clock):
var coordArray : Array = [
new Point(0,-1),
new Point(1,-1),
new Point(1,0),[code]........
I'm looking for the most efficient way of creating this array (ideally with the coordinates themselves generated through some sort of equation). What's the best way to do this? All I want to do with these is create a coordinate on the stage relative to the clips current coordinate in which to move, based on that clips, such that if the move distance for clips was 50px, and the clip had a depth of 0, it would move 50px in the coordArray[0] position, or 0*50 in the x direction, and -50px in the y direction (0,-1).
I am developing a mini flash game. Player control character and move left and right to collect money coin. There are 5 points that money and bomb release and move from top to bottom. When character collide with money then increase money else hit bomb age increase by 1. Once the age is 99, the game is over and the money is the final scores
Here is my code:
package Class {
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.events.MouseEvent;
import flash.media.Sound;
[Code] .....
This is my Game:
Currently, the bomb and money random appear X, 100 with 15 money and 10 bombs in a screen.
What I want is, how to amend it become money and bomb appear from specific point, after that the money and bomb when hit the wall will bounce back.
An example similar game play with my game is [URL].
I want to create motion tween between two points of object.
example:
startingpoint100,100);
destn point200,300);
As you can tell from the title I am not very good at math ( sigh ).
Is there a way I can create a sine wave with any given angle between 2 points ?
I'm looking to create a simple quiz which adds up points depending on the answer selected.where to read about creating something like this?
View 10 RepliesI need to plot a contour chart in the web browser. It needs to be interactive as well. Does anyone know good javascript library, flash or flex libary to do this?
View 1 RepliesDoes anyone know of a good Scatter Plot/Chart component that I can use with Flex Builder 3?
View 2 RepliesBasically he have a lot of ships, that he need to plot on a map. The map is just a picture of europe, but the information for each ship is given in coordinates (longitude and latitude), and he want to know if there is a way to plot each ship (represented by a small red dot) on the picture map of europe using the coordinates already given.
Otherwise he would have to go into google earth and locate each position, and then add it, which would be pretty time consuming after a couple hundred ships.
If there are no easy way to do this, would there then be another way to convert the longitude/latitude coordinates into a x/y coordinate system for the picture of the map? (if we know what area the picture covers on the map)