ActionScript 3.0 :: Flash - Finding The Main Points On A Graph?

Mar 17, 2012

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 Replies


Similar Posts:


Flash - CurveTo Function - Finding X And Y Points Dynamically

Sep 16, 2010

Basically I'm using the curveTo function to draw some lines for flight paths, what I'm not sure how to do is dynamically finding the curve points, so for example if you look at the ryan air site: [URL]
current_line.graphics.curveTo(curveX, curveY, map.mouseX, map.mouseY);
I need to find the curveX and curveY

View 1 Replies

ActionScript 3.0 :: Labeling Points (TextField) On Graph

Feb 15, 2010

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 Replies

Flex3 - Customize Data Points On A Flex Graph?

Mar 20, 2010

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

View 1 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 3.0 :: Finding Points On A Circle

Apr 18, 2009

I need to position objects equally spaced, on the perimeter of a circle. Question is: How can i find the points on the circle based on the number of objects i need to position, and how can i translate these points into another movieclip's coordinates? i thought to make a loop, and for each object (based on it's index in the loop) create a line from the center of the circle with a degree of 360/loop length * object index, and find the point where this line crosses the circle's perimeter.

I dont know though, how to actually implement my idea, i dont know the whole 'finding points' area etc, and I am not at all sure that my idea is the most light and effective solution. This thing i'd like to do (i think) is quite a common task, if you want a circular menu, or whatever, but i havent found anything anywhere around that could shed some light...

View 3 Replies

ActionScript 3.0 :: Finding The Distance Between Two Points?

Jan 18, 2011

This is the happening place to discuss anything and everything related to the Finding the Distance Between Two Points tutorial.

View 5 Replies

ActionScript 3.0 :: Finding Control Points Of A Curve?

Nov 14, 2009

For 2 weeks now, i have been trying to work out this issue and still i have had no luck.. i dont even know what im looking for.

See image attached to explain better than words.

My idea is i need to generate a nice curve between graphical points but in a way that produces smooth curves at runtime.

View 4 Replies

ActionScript 3.0 :: 1013 Error For Buttons Finding Cue Points

Jul 27, 2009

Using the code below I get an error message 1013: The private attribute may be used only on class property definitions.

View 4 Replies

Actionscript 3 :: Finding Control Points For Bezier Curve?

May 9, 2011

First i want to say its my first post and i've been diging straight up gold from this site and i love it and everyone out there smart enough to give out solutions.So basically am writing a game and i have bezier curve that controls where an actor moves. Am using only 3 points (start, control1, end) and everything is fine.Now i want to create a bezier curve that passes through a certain point (r1) at t = 0.5 . The problem being that i have my start point, my end point and my point (r1) at t=0.5, and i need to find the control point.

View 1 Replies

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 :: 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.0 :: Finding NumChildren On Main Timeline?

Oct 15, 2009

I am trying to find number of children, from a class, on the main timeline as below:

Code:
var num: uint = this.root.numChildren;

But, the comiler makes faces and reports as;"Access of possibly undefined property numChildren through a reference with static type flash.display: DisplayObject." I also request to shed some light on static type flash.display - what does this mean!

View 7 Replies

Flash :: Post A Swf Via Graph Api Using PHP SDK?

Aug 29, 2011

Flash - How do I post a swf via graph api using PHP SDK

View 1 Replies

Actionscript 3 :: Calculating Evenly Distributed Points On A Line Of Points

Oct 3, 2011

I have been tasked with trying to create a drawing tool that draws dotted lines as you drag the mouse across the stage. I can easily capture the points on MouseEvent.MOUSE_MOVE and store them in a vector and then draw the points as dots:

The problem is that I need to calculate evenly distributed points on an ever growing Vector of points so I can only draw the line between say every 5th point (say using modulus). I have been battling away with Bezier curve equations both Quadratic and Cubic but still can't quite figure out how to convert my Vector of points into an evenly distributed Vector of Points without sucking the life from the CPU.

View 1 Replies

ActionScript 3.0 :: Using Facebook Flash Graph Api?

Oct 9, 2010

I have som porblem with Facebook Flash graph API I am receiving request, but realy when I check my wall in facebook FacebookDesktop.api not adds Like or unLike

private function likeClickHandler(event:MouseEvent):void{                              handleLikeClick()          }                                        protected function populateLikeCount():void {               if (intData.user_likes) {                    likeBtn.label = 'Unlike';               } else {                    likeBtn.label = 'Like';               }               likesCount.text =

[code]....

View 1 Replies

Flash - Tag Photo Graph API / REST API?

Feb 3, 2011

I'm doing a FB app with the Graph API in Flash. I've got everything working which consists in uploading some images created by the user in the app. The only part that I'm missing is how to tag these photos as with the Graph API it is not possible.

So I was wondering if it's possible to call a method of the REST API even though I'm using the Graph API.

View 1 Replies

Flash :: Php - JQuery Or Other Graph Visualization?

Aug 23, 2011

I have two basic bar charts and I am currently using XML/SWF Charts which is great but the problem I have is I need to be able to send these graphs via email to the user. As well as display them on the site.

I know sending Flash is a bad idea, I would love to find a way to convert my current graphs to an image, but am pretty certain there is no quick fix without building a work around myself.

Therefore what are the best open source or closed solutions for this problem.I need to be able to display two graphs dynamically and then email them to users.

View 4 Replies

Flash - AS3 Graph Api -> Popup Blocked?

Jan 16, 2012

we developed an as3 facebook application (http:url....), but unfortunately the authenification popup is blocked in all major browsers (ie, ff, chrome), which leads to a high rejection rate for our campaign.If I have a look here ... http:[url....These fellows used the same api (http:url.....), I checked it with a decompiler and their popup is never blocked!.

View 1 Replies

ActionScript 3.0 :: Make A Graph In Flash

Feb 9, 2010

i have a project to do on flash..its about laws of physics and i want to include dynamic graphs.. e.g projectile motion.. the guy enters the distance and the angle and a graph is plotted from the calculations it makes.thing is that i dont even know to make a graph in flash..now i have to make a dynamic one.

View 9 Replies

Flash :: Draw A Triangle In A Math Graph?

Mar 31, 2010

How to draw a triangle in a math graph which displays X and Y axis.

View 2 Replies

Flash :: Using External Class For Facebook Graph Api

Jan 21, 2011

I'm wondering. Is it possible to create an external class just to initialize the API then use functions to call the different items? Like a shortcut to using the API without all the nitty gritty stuff.

View 1 Replies

Flash :: Uploading Images Through Facebook Graph API

Jan 24, 2011

I'm trying to upload a picture through the Graph API, but somehow it doesn't get through. Correct me if I'm wrong, but if I don't give an album ID, it should create an album by itself right? I'm a quite confused by that. Right now, I'm using

[Code]...

View 1 Replies

Flash :: Getting Friend's Information From Facebook Graph API

Jan 25, 2011

I'm asking this question because I can only find examples and answers for the PHP version. I need the Flash version. I'm trying to get my friends information, but I think I'm doing it wrong because if I trace it, it'll give me either [object Object] or undefined.

I did Facebook.api("me/friends", handleApiGet);

private function handleGetApi(success:Object, fail:Object):void
{
if (success)
{

[Code]....

ExternalInterface.call("doAlert", success) returns me [object Object], [object Object]. I also did ExternalInterface.call("doAlert", success.name), it returns me undefined.

View 1 Replies

Flash :: Uploading BitmapData Using Facebook Graph Api?

Feb 1, 2011

I've been looking around the internet on how to use the PostRequest class given by the Facebook in their Graph Api, but I couldn't find anything on it. I'm wondering how to use it to upload a bitmapdata. It just doesn't seem to be moving at all

[Code]...

Both doesn't work, which puzzles me. The first one worked without encoding it in any way, so I don't get why it doesn't work when I try to just call it like that.

View 1 Replies

Flash :: Draw Sinusoidal Line-graph?

Jun 28, 2011

I'm trying to draw a static graph based on an Array of Numbers. This graph should be nice smooth sinus-like.The bottom values should be always zero, the upper values are specified in an Array of Numbers.

I've been trying to achieve this effect with curveTo(), but without any luck.

EDIT: Values are like: 10, 15, 40, 28, 5, 2, 27 etc.

View 1 Replies

Flash :: Smooth Performance With Live Graph Updated Every 1 / 30 Th Of Second

Sep 5, 2011

I wanted a suggestion from you guys regarding drawing and scrolling performance. The requirement is - I have to draw a graph with sound volume's values updated at 30 fps. And I need to draw this graph and simultaneously scroll to fit in the new values. So the length(width) of the graph is unlimited.

View 1 Replies

Facebook Graph API - Loading Video Thumbnails CrossDomain (Flash)

Apr 11, 2012

I'm trying to display some Facebook video thumbnails in a Flash application, all of the video thumbnails I try to load seem to be hosted at [URL]. However [URL] cannot be loaded (Access Denied). Is there some way around this? (other than loading the images through a proxy). Maybe an alternative url which can be used?

View 2 Replies

Flash :: Display The Coordinates Of A Random Triangle In A Graph Which Ranges From +10 To -10 XY Axis?

Apr 3, 2010

how i display the coordinates of a random triangle in a graph which ranges from -10 to +10 in XY axis with the points like A(2,1) etc with arcs in each corner, in actionscript 2.0

View 1 Replies







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