ActionScript 2.0 :: How To Make Fractal Trees
Apr 17, 2006Im really trying to learn fractal tree programming in AS, looking to integrate it into a game.
View 4 RepliesIm really trying to learn fractal tree programming in AS, looking to integrate it into a game.
View 4 RepliesI am interested in building a music visualiser using fractal patterns for my final year project. I have googled quite a lot on it and I know a bit about fractals, however I was wondering what software would be used to 'animate' the graphics. I know Java has a drawing API (AWT and Swing) - but probably no the best for the animation factor - on the other hand there is also Flash that has new capabilities within as3 to produce such an effect but if this app was to traverse into mobile development, Flash wouldn't be a great choice.
View 1 RepliesAs I said once before I'm making a dialogue based flash game.I'm relatively new to flash, so I've been having to scavenge for bits of code for what I want to do...-------Right now my situation is this -When a player "talks" with a character by pressing the "talk" button I want them to be able to pick up at the conversation point they were at last time. Not a save file, but more of a progression,so if they were to explore other parts of the world and come back to the same character, they'd have to click on the same "talk" button, but //still// be advanced in their dialogue tree.
Is there a way to do with with action script code?Something that will tell flash, "Oh, this is where we left off, I'll go to the next frame of dialogue" when players clic on the "talk" button?My only idea to do something like this is quite a hassle -make a variable named "times talked to" and have the button depended on this variable, and make it gain a point every time it is pressed,but I'm under the impression that this effect can be achieved without something like this.
I have converted a large background image (much larger than the stage) into a Movie Clip. I did this so I can make it scroll as the player traverses to the edge of the scene.This appears to make the player free to roam the entire background image.I have a tree symbol with a class attached to it that blocks player movement.Here is my problem:
When I drag and drop instances of the tree symbol onto the background, the trees are stationary and do not scroll with the background.I do not want to have to implement code to make the trees scroll when the background does.I was wondering if there was a way to simply attach the trees to the background so that if the background moves, the trees move with it and appear to be part of the background as if they were drawn into it.It is convenient for me to be able to drag and drop as many trees as i need to block certain routes on the background from the player.I tried writing code to make the trees move but it was only working for the very last tree that I added to the scene.
i want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.
View 1 Replieshow to stop the script when it's running.To make the sky no more snowy and make snow disappear.
View 1 RepliesIs it possible to make flash mx to take the time on the system and make it run a determined frame. I want to make a clock that shows the real time. How can I do it?
View 8 RepliesI followed the bit101 tutorial on gravity and now have a movie clip called "ball" (instance name) with an embedded invisible button (so you can throw it all over the place).I also have a movie clip called "block1" (instance name too! what a coincidence, isn't life lovely). I want to make them collide, and make the ball bounce away.
View 1 Repliesthis is my code for photogallery.there will be 61 images loaded in this array.how can i make an AUTO button which will make a slideshow,showing all the images in array?
arrayrow = new Array()
arrayrow=[
["00.jpg","0","sajkad","hjsgadhj"],[code].....
How can i make a combination of keys make a movie clip visible? Basically i want something like this to work:
if(Key.isDown(Key.Alt && Key.A)){
reminder._visible = true;
}
So when someone presses the Alt and A keys down at the same time the 'reminder' mc becomes visible?
Im have an flv playing on my stage. I want to make a mute button for the video that can instantly make the volume 0 or 100 depending on what it is.So i have tried using this code:
ActionScript Code:
m.onPress = function() {
[code]........However, it doesn't seem to work.
I need to make the background image move opposite the cursor to make it seem like the camera is moving.[URL]
View 1 RepliesI'm trying to make a preloader for a little flash project that involves re-assembling a load of rectangles to make up a pattern.Idea is that instead of the usual load bar i wanted to make use of this pattern that is relevant to the project and have it rebuild it self with these rectangles flying in from the side. So far I have got the tweening sorted using the tween class and staggered the 42 (yes took a little while, probably an easier way so let me know on that also) rectangles using 'setTimeout' so it releases each 100milliseconds after the one one before it. This probably the wrong way to do it but i wanted to check how it looked and this was the one way i knew how to do it.
I want to make it so that these rectangles fly in a complete the pattern once the loading has finished, but on a fast connection I don't want it to rush the animation but for a slow connection I obviously want it to adjust the release time and maybe even the travel speed to compensate.
I had an idea of maybe working out the percentage loaded divided by 42 and then run an if statement to see if that percentage for that segment had been reached before 100millseconds had passed, if 100 had passed then release the rectangle, if not then hold the rectangle until 100 m/s had passed. Not sure if that is the best way to do but that's why I'm looking for some suggestions from more experienced developers.
Code:
import mx.transitions.Tween;
import mx.transitions.easing.Regular;
// declare variables
[code]....
I have a map of the US and each state has a rollover that changes the color of the state...what i am trying to figure out is how to click on the state and have text appear to the side of the US map and have that text stay up until the user clicks on another state.
View 16 RepliesI 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'
[Code]....
I saw the snow tutorial on this website and i plan on using it for 20 seconds (500 frames) in my introduction. It works perfectly fine, but after that time, it doesn't stop. It keeps on going and going and going... how to make it stop or make it go into the background? used the code provided by the tutorial. I know this is sudden by can someone answer today because i have to put it together before thursday.
View 1 Replies* I have a flash project called contact
* The document class is ContactClass
I am trying to make a sprite button with graphics and can't make it work. I have successfully added text fields so I know the path is correct. I suspected my code was correct and confirmed it should be, after reading several tutorials showing the process for creating sprite buttons with graphics. Anyway, I imported nearly every class on Earth, but certainly everything which needs to be. Stage is gray and 800x600.The graphics code by itself with appear, but not when linked to the sprite. Also, the sprite won't appear no matter what. Another interesting piece of the puzzle: nothing will trace, not even objects such as textfields which actually appear and function on the stage when I text the code.
public class ContactClass extends Sprite {
public function ContactClass() {
var home_btn:Sprite = new Sprite();[code]....
I was just curious if an array can make itself.ie, I want an array to be [1,1,1,1,1,1,1,1,1] that sounds silly but there is a reason for it.So without having to say 1,1,1,1,1 dozens of times is it possible to just have some variables, 1, and 100, and have the array make 1, 100 times?or have while (array length = = 100? array = 1?
View 1 RepliesI want to make a "module" composed by an image and a text and make this clickable, how could I made this in AS? PS: to create the text I'm using the TextField(), what I have to use to make the image from a url?
View 1 RepliesI would like to make a screensaver with posibilitys to make notes like 3M post-it notes, the flash file should "remeber" the input that the user writes. I have the tools to make screensaver in Flash, but how to make such a flash file?
View 3 RepliesI would like to make a screensaver with posibilitys to make notes like 3M post-it notes, the flash file should "remeber" the input that the user writes. Is this possibel
I have the tools to make screensaver in Flash, but how to make such a flash file.
make a circle object movie clip call ball and make a rectangle object movie clip call mc and paste this coding.
[Code]...
can anyone explain about the movement about D? the D is talk about the distance if i go -X,way my ball go ++ to +x?
Is it possible for an end user to play with a swf, change layout, colours, etc... and then save it? Either as a new swf or the same one. Maybe push all the customizable data to a PHP or XML file and then every time you load that swf it retrieves that data from the PHP or XML file, therefore retaining the settings saved by the user.
View 2 RepliesHow can I make my movies less laggy? so they run smoother and require less of the video card? Take this for example: [URL]..
I realize the frame is massive. but it's like three movie clips and i don't understand how people can develop such satisfying images without it lagging, and why mine are sooo dang slow.
can someone please help me or teach me how to make an animation where drawing is involved. its like this, im teaching preschoolers how to write letters and numbers. straight lines are easy to do but i could do the curve lines.
View 2 Repliesis it possibel to make a transparent SWF, or not? i want to make a word glow but have no background you see?
View 2 RepliesI don't know much about flash.. I've created a MC with tomatoes falling.. when the MC repeats itself, which I want it to, looks too "rough". I am hoping to make the transition a little smoother.. I've read a little about mathematical random function, but it looks so complicated.Here is the flash: http:[url].....
View 4 RepliesI'm trying to make an interactive map, whitch the size is 2880 - 2090, and the problem is the zoom in and out, I Want it to start with the magnification of 60%?
View 2 RepliesI'm designing a flash game where you collect an item to gain score, which then moves to another random spot where you can collect it again, etc. I've got most of it working, but I also want to add a "bonus" item, which appears after a specified time in a random place (like the original item), but I can't seem to get it working.
I tried using setInterval, but it just kept jumping all around the screen, which isn't what I wanted. I just wanted it to appear on the stage and stay there until you collect it. So I tried using a clearInterval after, and it just didn't work.
I'm trying to make an interactive map and how to make it so that when each button is clicked, it is pushed in front of the other buttons so that it covers them.
View 5 Replies