best method to calculate the angles of a triangle? Or have any good references? I have 3 points which can be moved when the user drags on it, so the angles will have to change accordingly.
I am working on a draggable triangle in AS3 and the corners must be interactive. To each corner a bitmap will be attached (in my example for now it's just a name of a city). When dragging a specific corner, the bitmap/cityname (attached to it) should fade in from 0 to 100 alpha. If the bitmap/cityname won't reach 100 of alpha, when Mouse Up, then it should fade back out to 0 opacity. If it does reach 100 alpha when Mouse Up, then it should stay that way. However, if another corner is dragged, then the cityname which is currently at 100 opacity should fade out again. Well I've got the draggable triangle figured, I've got the corners citynames appearing and disappearing when they don't reach 100 alpha. What I can't get to figure out is the last bit - the cityname currently at 100 opacity fading back out to 0 when a different corner is dragged. Hope it's at least a little understandable. I'm not sure my code is perfect (this is my first time in AS3) so don't mind if something is not the way.[code]
I am trying to create a simple resizable triangle that can be controlled by 3 handles on the 3 corners. However I also want the other handles to change their position based on how the length of a specific line changes. On the updateScreen function Ive created, I calculate the change in the length of a specific line depending on which handle is selected. I also calculate the point that is in the center of the triangle. As the length of a specific line increases/decreases, I want the opposite point to get closer/farther from the center of the triangle. Here is some example code from the .fla.
I am trying to make a program that dermines if sides can make a right triangle. The code that I made gives me that it cannot for everything except the sequence 3,4,5.
'Paul Bursu' 'July 08 11' 'To determine if inputted angles can make a triangle'
The idea is simple enough but I feel as if I've been running in circles trying to figure this out. I need to get the polar angle between two objects. One object is stationary (the item) and the other moves around (the character). I need the polar angle to the item from the character. Basically the 0,0 of the polar angle will be the character's x,y.
I am trying to create a wheel of fortune with dyanamic values being inserted into it. Is there any way to have dynamic values to be at angles. When ever I turn them a little bit, they dont' seem to show up any more.
I am trying to create a wheel of fortune with dyanamic values being inserted into it. Is there any way to have dynamic values to be at angles. When ever I turn them a little bit, they dont' seem to show up any more.
I am currently learning some trigonometry tome with my actionscript...In AS I am aware that angles need to be converted from degrees to radians to use certain Math properties, such as Math.sin...etcHere is my code to convert degrees to radians...
ActionScript Code: var degrees:Number = 90; var radians:Number = degrees * Math.PI / 180;
This client of wants a flash video player of a model, modeling some clothes.
They are going to set up 3 different cameras around her at the same time filming her - one from the front, one from the side and one from the back. Each clip lasts exactly 3mins and they are filming her at THE SAME TIME.
Now after this, they want to put a FLASHPLAYER on their website with the video playing in a screen with 3 buttons underneath one saying FRONT VIEW, one saying SIDE VIEW AND one saying BACK VIEW. The three separate videos will be integrated in some way with this one flash file.
The video player might start playing the FRONT VIEW first.
BUT lets say 30 seconds into the clip I press the SIDE VIEW button the video switches to the side view on 30 seconds - The side view video doesn't play right from the start. Like I said before for example if the person is speaking and says "hello there", if you switch angle by clicking one of the buttons just at the point after she has said the word "hello", you switch to the angle where he is just about to say "there". If you see what I mean.
As I said before there are 3 separate video clips:- FRONT VIEW, SIDE VIEW and BACK VIEW. Now I am not sure if these have to be embedded in the FLA file or can be contained in a separate folder on the server so that the SWF can access them. I am worry about streaming over the internet thats why I THINK Flash Media Server3 MIGHT be a solution BUT I don't know. BUT they must be seamless.
AGAIN to reiterate...LETS say I am watching the SIDE view 30 seconds after the clip has started and the model starts scatching her head and then AT THAT POINT I click the front view button below I see the model scratching her head from the front view at THAT precise moment.
So all the videos seem to work at the same time to the casual viewer/user and it looks as though you are just switching views whenever you want.
I have been looking all over the net to see if someone has produced a working example or if there is a tutorial somewhere but I have found NOTHING.
I think there might be a problem pulling this one off as each video clip could be 4-5 MB in size and if they are streaming then there would be download problems and these videos might stop due to people with various bandwidth restrictions UNLESS all the videos were integrated into the flash library and were referenced from within by Actionscript but then the resultant SWF could be HUGE.
getting angles, of two movieclips that are on my stage. With instance names: circle1,circle2. I read that I should use the function Math.atan2 to get the angle, in radians, then I convert it to degrees, but it doesn't make sense, the angles aren't correct.. Here I paste the code I use (its AS not PHP don't know how to add the AS tags):
I have a draggable movie clip with another movie inside that. On the click of a button I need it to be at 0,0. This works fine but I also need to rotate the draggable movie clip and when I attempt to move the child movie to 0,0 it goes of the screen.
anyone have a hint how to create with AS, leader dots? Meaning, I need to connect two points with growing leader dots that may change direction at right angles.
Does anybody know a purely PHP based way to alter the frequency of an MP3 file?
A client's website is utilizing a Flash based MP3 player to play some audio.The client is producing the audio herself.
The trouble is that the tools that she is producing it with, and is familiar with, automatically produces MP3 files with a frequency of 48000hz, while some versions of Flash have trouble playing anything with a frequency differing from 44100khz.
I was goofing around with more a/s and was trying to grow a bar using _height and a random value. However, it seems to grow from the center, and I'd like it's x or y value to be fixed.It is basically a vertical bar. I want the bottom to stay fixed, so the bar will grow up.While we're at it.. I'd also like to figure how to show it "growing" progressively.. I tried a while(condition
I made a 3d box using flash cs4 (ive made one using imported images as the sides and another one using vector siding made in flash) Both times, when ive finished the box and rotate it, sides will dissapear then reappear, depending on where the box was in its rotation. For instance, when you look at it dead on, the front side seems opaque, but when i start rotating it, the fron side, at certain angles, becomes transparent and you can actually see INSIDE the box thru the wall, then as it moves it becomes solid again. I am trying to make a presentation for work of a package, rotating 360 degrees on its y axis, but keep getting these odd disapearing sides.
Is there any way, using some kind of intermediary such as XML, PHP or the like, to alter ftp files with Actionscript? Actionscript 2 is my target, but 3 is alright too and I would need to be able to at least move and delete ftp files. In an unrelated matter, does any file transfer protocol allow the creation of shortcuts? If Actionscript and languages that communicate with Actionscript can't write to ftp, can they read from it? I know that you can call a specific file in the same folder as the swf, but can a user request a listing of the entire contents of a folder, or alternatively just the number of items in a folder?
coming from a print background i am trying to teach myself both as2 and as3 and am working on a couple of small projects for myself. I have run into the issue, where the user is in fullscreen mode cannot use keyboard commands to inout text. I would like to know how i could make an alert that appears when the user is in fullscreen mode only.
I"m trying to reload all the sides of cube on the fly. I'm using an example I found on here and just modifying it. I've tried a couple different ways, but it seems each time after I load the material it will no longer spin how initial one did and leftovers of the old one remain and keep spinning. This is my first time playing with papervision so I'm sure it's somehting simple I'm doing wrong. I've attached the .fla file, it's saved for CS5
I am just restarting my flash adventures and am trying to learn AS3. I can a real quick code request. I am trying to make a MC bounce off the sides of the stage. When I use the following code, the MC gets stuck going -2 then +2 at the edge of the stage.
[Code]....
How do I get it disregard the first part of the if/else and then go the other direction? know this is a really beginer question,