I am trying to draw this image dynamically (attached image) so for example if user gives me value of 24 the graph has to be able to draw circles like in the image and split circles into 24 sectors ( draw 24 angled radiuses from the origin) ... How could this be done ?
The trick is once I accomplish this stage I need to be able to track intersections between each radius and 3 circles!!! Well the idea of the graph is that each radius is an answer to a question and can have a dot in the origin , intersection with first circle , second or third (each one represents answer 1 or 2 or 3 or 4... then it connects all dots on each radius depending on the 24 (in this example 24) answers. I've done this witha static graph where I knew there were gonna be 24 but now it needs to be first drawn dynamically because user chooses the number of question.
i want to draw few countries dynamically, is it possible? the reason i am thinking of drawing dynamically is that if i use a sprite or movieclip which is square container. that will cause overlapping. so when the mouseover one, it might fire overlapping country container too.
There have been many posts about how to draw letters dynamically. This is an example of drawing the font outlines dynamically. Not the same as "writing" them, but an interesting technique [URL].
I wanted to dynamically draw a cityscape - just a bunch of straight lines and right angles. But there are lots of x,y coordinates to make the whole thing. Would it possible to put all those coordinates in a text file and then call that from Flash? As in, lineTo(use line 1 of text file, then use line 2, then use line 3) etc.Is this possible? And if so, what sort of AS is used? And does the text file have to be in a certain formate? (like x,y one per line or on one line separated by parentheses, or . . . ?).
I am trying to make an animation where there are several locations(say A,B,C,D,......) made on a map. If a person clicks on one location A and then another location B, I wanted to draw a dotted line from point A (from destination of the plane) to point B (to destination of the plane) using AS3.
I have a requirement wherien a semi circle has to be drawn. The circle radius can be chosen/varied by the user. How can i do it dynamicaly using action script.
I have 4 coordinates from which i created a rectangle(using lines). I also created buttons dynamically. It works great for straight line. But when the coordinates generate diagonal lines im having a problem in making it go below the lines or fitting it inside the figure. See my pic for better understanding. I have also figured out how to rotate the button.[code]...
drawing out line that will serve as a mask im tryin to animate a drawing out of a line, but the line wont be an animation itself, itll be used as a mask that will reveal outline of a rectangle i'm starting right now and im on this stage so far, the problem is i dont understand why this line is not drawing out horizontally, while it should variables xpos and ypos are coordinates of the position i want to start drawing it from, xcor and ycor are the cooridnates that will be used to stop drawing once it reaches this point, then jump is how fast i want the line to draw(amount of pixels) ps:the type is there because i will also make another case for vertical line.
I have a question for you....I'm not able di draw a pie chart dynamically. I have the Layer1 with a F3DPieChart, 4 input text and a button, I put 4 numer in the 4 inputtext (sum total = 100) and when I press the button I would like to see pie Chart to appear with 4 slices that rappresented my 4 numbers.unfortunately it doesn't happen. This is the code on layer1:
I'm not able di draw a pie chart dynamically.I have the Layer1 with a F3DPieChart, 4 input text and a button, I put 4 numer in the 4 inputtext (sum total = 100) and when I press the button I would like to see pie Chart to appear with 4 slices that rappresented my 4 numbers.unfortunately it doesn't happen.This is the code on layer1:
[QUOTE] var buttonListener = new Object(); buttonListener.click = function() { var val;[code].....
how to make a dynamic unfilled and filled circle. that will take input from a slider to dertermine how much of the circle is drawn. I wanted to use this for a preloader. Unlike the author I would like to use it inside of a document class. I am getting 1061: Call to a possibly undefined method createEmptyMovieClip through a reference with static type document. and 1120: Access of undefined property circ1. The second is caused from the first. How would I get this to work in my document class?
//original code // x: circles center x, y: circles center y // a1: first angle, a2: angle to draw to, r: radius // dir: direction; 1 for clockwise -1 for counter clockwise
I need to do everything with AS3 since both the image and the text is loaded with an XML. Practically I have a picture and above it I'll put a white level with alpha 70%, but as you can see in the jpg the white level has a "hole" in it that is created by a text.I thought that a way could be to convert the text in a bitmap and then, if it is possible, to use the newly created bitmap to create the "hole" with the white level.
I'm creating a moodboard application where the user can dynamically load an image onto the stage by pressing a thumb of the image in a menu item. I have most of that working but what I would like to know is that, if there is a way the user can interactively scale/transform the image when it is on the stage in the swf file?
I'm trying to write some ActionScript which will accept a mask and an image, then mask the image and put a border around the result (assuming that the mask is always 100% opaque).
For example, if my mask is a poorly drawn star, and my image is a bunch of flowers, I want the result to be a poorly drawn star with flowers inside it and a border around it. Something like this:
Using DRAW I want just a part of the original image. I am using the "Rectangle" bit of the paramaters, but I can't get the start of the crop away from the top left corner.
How can I draw on my Loaded Image? I can Load a Image, but I cannot draw on my Image with my pencil. My pencil is in my Main.as class. How to be able to draw on my loaded picture?
Here comes the code in my LoadImage.as class: package { import flash.display.MovieClip; import flash.display.Sprite; import flash.display.Bitmap; import flash.net.FileReference; [Code] .....
OK I have an empty MC. I want to draw lines that show on top of an image, but everything I try draws the lines below my image.This code is ran from the main timeline.This is my code so far.
Code: _root.attachMovie("Audiogram_Chart","Show_Audiogram",100000); //this is my MC that will hold the graphics
I am making a snow boarding game in AS3. The problem I am having is that I want to leave a trail in the snow behind the board.
I have had a think and feel that the best way of achieving this would be to use the lineTo() method to draw a line form the snowboards previous position to its current position. If I do this all of the way down the slope I would end up with a line almost 23000 pixels long which seems extremely large and will have a major impact on performance.
If I were to convert the trail movieclip to a bitmap would it improve performance? I am targeting a minimum of flash player 9 which I have found to have issues when handling bmp's over 2880 pixels so I think this method might not work.
i need to do something like the swf file am attaching instead of the cube revolving... i need to draw my own image. how to bring this effect in flash. as if now, i have created the cube rotatoin in swift 3d and have exported it as a swf file. also can we draw our own images in swift 3d? (instead of the readymade cube?)
I would like to make a very simple (well, looks simple anyway) image gallery, like Ilyas da Pom's at [URL]..
I want the image part to scale to fit each image dynamically. I'm a brand-spanking new Flash novice, and any guidance would help really; this is just a tiny little personal project, not to be used anywhere commercially.
I am trying to create a gallery where the thumbnails scroll across the bottom and when you click on the thumb a new large image opens up on top of it from the same image.
What i would like to do is open up the large image but draw a box around this image so it blanks out the background of the site and all you see is that picture.
Its a similar function to the way this site works;
So i've got a piece of an app that's grabbing the JSON result from a Twitter search, then calling a Loader to grab profile images for each result to place next to the text of the result.[code]when it's trying to rescale and draw the bitmapdata.I have a LoaderContext checkPolicyFile = true set when it loads the actual user image source, I have allowDomain and loadPolicyFile set for crossdomain.xml at URL... and I basically have looked at and tried everything in all of google and I still keep getting these security errors and not having the images shown properly.
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.