ActionScript 2.0 :: Draw Graph From An Array?
Nov 4, 2004I'm just trying to make a graph based on my array. Each piece of my array is (x,y). [code]...
View 1 RepliesI'm just trying to make a graph based on my array. Each piece of my array is (x,y). [code]...
View 1 RepliesHow to draw a triangle in a math graph which displays X and Y axis.
View 2 RepliesI'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.
I want to draw stock price in real time as a candle graph. I get open flash chart from someone and it looks good at drawing. I don't know how to update the candle graph in real time (using Ajax?), and is it a good way? I use Python a lot. But I cannot find tools as easily to use as OFC.
View 3 RepliesI'm not sure why but I can't get this to work. I'm just trying to make a graph based on my array. Each piece of my array is (x,y).
root.createEmptyMovieClip ("graphedlines", 10);
with (_root.graphedlines){
lineStyle (5, 0x000000, 100);
[code].....
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].....
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 am using the draw() method of the BitmapData to encode a jpeg of part of the image. Now this should be easy enough given the object I want to draw to the bitmap is on the stage at design time so I know its location and dimetions exactly! Heres the code I have in place.
Code:
var myBitmapSource:BitmapData = new BitmapData ( street.width, street.height, false, 0x333333);
myBitmapSource.draw(street, null, null, null, new Rectangle( 96, 5, 571, 450 ), true );
I know for a FACT that no part of the street clip I am drawing out is in negative space, and it's registration is (0,0). However, it cuts off A lot of the top of my image. y=5 in the above rectangle is where I need the top to be, but it cuts the top off of the image... even if I change it to 0, it has no effect.
I'm making something that requires me to draw() the youtubeplayer Giving me this pretty error:
[Code]...
I'm trying to do some lean blitting for an object that rotates by rotating it once at startup and capturing a BitmapData snapshot of each 5 degrees. The problem I'm having is that the draw() method of the BitmapData object is only picking up pixels in the MovieClip that are below and to the right of the registration point. If I change the MC so that the registration point is in the top left corner, I sometimes get what looks like most of the pixels, but the entire object rotates into and out of the frame, since it's rotating around the corner and not the center.
View 5 RepliesI need to be able to draw a thick patterend line between 2 points in AS3, I can't use the draw API because it doesn't all me to actually put detail (pattern etc) into the thickness of the line, I thought about perhaps using the line to create a bitmap version and then using that as a mask, but I remember many years ago seeing some examples that use a movieclip as a source for a line.
View 1 RepliesI am having an issue with using BitmapData.draw(stage). I am getting the following error:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///C|/Documents%20and%20Settings/bla...bla...bla.swf cannot access null. No policy files granted access. Here is a portion of my code:
var bd:BitmapData = new BitmapData(2800, 2100); bd.draw(stage);//this is where the error happens All of the files referenced (.xml/.jpg/.swf) are located in the same local folder as the main .swf. How do I get around this error? The main objective is to print the stage using PrintJob(). I am using Flash Professional CS5.5 and publishing to Flash 10.0/10.1. Let me know if I need to supply any more info.
i have a class thats create a class with bitmapData that merge 2 IBitmapDrawable. one of them is 24*20 while the other is 16*16.i want to draw the smaller first in a bitmapData object which its width and height are 24*20 but i want to draw it in the center of the big bounds.
[Code]...
Flash - How do I post a swf via graph api using PHP SDK
View 1 RepliesI create a movieClip is "sin_mc".In this MovieClip,I drawing a sin graph in a period.I want to loop sin Graph 4 times but i don't know actionscrip.
View 1 RepliesI 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]....
I have been searching the net for a tutorial how to graph functions. I found one from Barbara Kaskosz, very detailed, and too much scripting. Too much for me. Is there another way or place to learn, or I am doomed, and have to face the music and study her stuff. All I want, is to be able to graph a simple function.
View 4 RepliesI want to make an interactive gizmo to explore 20%. so I want a little slider and a red (20%) and a green (80%) bar so that when I slide the slider to different numbers - lets say between 1 and 100 I get a graphical representation of 20% of the number selected as well as the actual numbers? so at 50 red column is 10 green is 40. at 100 red is 20 and green is 80?
I could just have a MC with different frames and select a few numbers to highlight and fake it.
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.
Is there a way to export a flex graph to excel?
View 2 RepliesI need a line chart in my playbook app. does anybody know a library for that? (for as3 mobile air projects)
View 3 Replieshow to get the user status, but the app I currently working on need to get user's friends statuses. Can I do this without needing user's friends to approve the app? I still can't find how to to this in the graph API.
View 1 RepliesI 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.
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 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 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 RepliesHow to create an interactive 2d graph table in flash (AS2)? I just want to create a very simple cartesian y,-y x,-x axis table and be able to put multiple marks which will display their coordinates.
View 0 RepliesI want to make a directed graph. Is there any way i could attach an arrow to the line between two nodes ? I used moveto/lineto to draw the line between source node and destination node and i want an arrowhead to point in the right direction.
View 2 RepliesI'm fairly new to Actionscript 3, I'm creating a simple bar graph. There are 5 movie clips relating to years {mcYear0, mcYear1, mcYear2, mcYear3, and mcYear4} then there are 6 bars in each year representing animal population (all the animal movieclips nested in the years are named the same from year to year, so mcFrogs in mcYear1 is also mcFrogs in mcYear2). When you roll over an animal, I want a box to pop up and populate that animal's population over the years. I'm not worried about populating the box but for some reason my code to make the box pop up on the animals is only working on the last year (mcYear4).
Here is my code:
mcYear0.addEventListener(Event.ENTER_FRAME, HOver);
mcYear1.addEventListener(Event.ENTER_FRAME, HOver);
mcYear2.addEventListener(Event.ENTER_FRAME, HOver);
mcYear3.addEventListener(Event.ENTER_FRAME, HOver);
mcYear4.addEventListener(Event.ENTER_FRAME, HOver);
function HOver(e:Event) {
[Code] .....
[Code].....
The scale is from 0 to 1200 and the problem I have is that the value I want to show is usually so small that it looks like it's stuck next to zero all the time. So, what I need is change the scale to logarithmic so the values from 1 to 10 take up as much space as those from 10 to 100 etc. and the small values show fluctuation. In thefollowing image you see on the left how it behaves now and on the right how I need it to become (both show a visualization of a small value, something around 7 or 8).
[URL]