Actionscript 3.0 :: Tweaking Particle System - Circles Come Out In Different Colors

Feb 16, 2009

I have these particle system files, it actually does what I want. It makes circles come from a center point and have them expand out of the screen. However I have a couple of questions regarding those files, I wanted to add and change a couple of things:

- I would like that the circles come out in different colors, red, green and blue in randomized order.
- I would like to add a "fade out" option. Instead of having them grow out of the screen, have the option to have a defined circle size and when the circle reaches that size it fades out. Or something easier that works just the same, basically have it fade out.
- Have the circles blurred a bit. Possibly have the chance to control that too.

Then I would like to add some interactivity to the system. Basically have the circles move away from the mouse when the mouse rolls over or near that/those circle(s). Is that easy?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Particle System And Masking - Particle System Movieclips To Display An Image?

Dec 29, 2010

Is it possible to make this a mask? The system contains one movieclip of a circle called ball, also a class called ball and a class called particle. I want the particle system movieclips to display an image...I'm sure this is possible...just have not been able to find a way. A little backround, I'm a completely selftaught n00b when it comes to AS3, but I'm grasping it fairly well... the tutorial is on this website, called A Simple Particle System Using Actionscript 3.

View 0 Replies

ActionScript 2.0 :: Depths With A Particle System?

Aug 20, 2009

I am new to actionscript but I am fairly confident in messing around with it. I have been trying to make a particle engine for two days now and I'm at my wits end.

What's funny is, the particle engine works fine. i have piggy backed off of somebody elses particle engine and modified things to how i need them (And stripped it of a few unnessicary things..) what my problem consists of, is I am trying to make the particles go behind another movie clip. this movie clip is a frame (to make it blend in with the webpage it is displayed on) and it must always stay on top depth no matter what to give that affect.

[Code]...

View 4 Replies

ActionScript 1/2 :: Particle System Collision Area?

Apr 17, 2009

I've got a bunch of modules called "c4" labled red1,red2,red3, etc. And a laser made from particles, with angle controlledby bckspace and enter keys:
 
onEnterFrame = function(){ 
for (m=1;m<4;m++){c4 = this["red"+m];  
if(robot_mc.laser_mc.lasereye_mc.hitTest(c4.cap)){c4.gotoAndPlay("fram e2"); }

[code]....
 
The problem I run into is having the collision work with the beam, as opposed to the bounding box that begins with thelasereye_mc. Is there a way to get the c4 to react with the beam, instead of the bounding box around the beam? Or a way to get the photons to interact individually? Also, is there a way to load a particle system through an onEnterFrame without it overloading/oversaturting ?  

View 6 Replies

ActionScript 3.0 :: Targeting A Particle System In A Container?

May 5, 2009

I've written a game with a particle system, as the particles go off the stage, they are removed.  At the end of the game I want to remove all the particles which are still on the stage.  How can I do this?
 
My first thought is to put all the particles in a container and then remove the container at the end of the game.  However, if I put the particles in a container, I can't reference them anymore with event.target

View 2 Replies

ActionScript 2.0 :: Dupin A Particle System Mc - Yoinks?

Oct 4, 2004

i've got this really simple particle system... what i can't figure out is how to duplicate it and still have it work. if you take a look at my .fla, you'll see that I have attempted to dupe the mc and particle system by duping the mc and having the same AS on it. I also duped the original code on the 2nd frame which multiplies the mc's to create moreparticles...maybe somebody can tell me what's going wrong here. i'm trying to achieve a sprinkler head effect so i need to dupe this effect to fill in what a real fire sprinkler would do.

View 8 Replies

ActionScript 3.0 :: Create A Particle System For A Game?

Apr 12, 2010

i am trying to create a particle system for a game i am creating in class, though it seems that the particles are not being added to the stage. my instructor and i have checked all the obvious things and now were stumped?

particle class:

Code:
package {
import flash.display.MovieClip;
public class Particle extends MovieClip {
var xspeed:Number;

[code]....

the particle movie clip is simply a 5x5 rectangle, with the class name redParticle and the base class is Particle. [URL]

View 1 Replies

ActionScript 3.0 :: Particle System As Image Mask?

Dec 30, 2010

I'm a self proclaimed n00b when it comes to as3, but I'm learning rapidly.I followed this guide and created a great particle system: url...What I'd LIKE to do, if possible, is make those particles that are generated be the only part of an image that shows(mask). The tutorial contains a fla with a movieclip of a circle, two classes...particle and ball which call the movieclip and generate it on the stage.

View 1 Replies

ActionScript 3.0 :: Modifying Particle System Code?

Mar 8, 2011

I got the AS code for a really cool particle fountain and modded it to use it for the animation of a popcorn machine. It turned out really great. The only thing I didn't care for was that the particles were balls. It worked fine on a small graphic but now i want to make a larger scale version and wanted to make the sprites actual pieces of popcorn.Here's the code I'm using so far:

Define the gravity.
This determines how fast the balls are pulled down.
*/
var gravity:Number = 0.2;[code].....

View 2 Replies

ActionScript 2.0 :: Dupin A Particle System Mc - Yoinks

Oct 4, 2004

i've got this really simple particle system... what i can't figure out is how to duplicate it and still have it work. if you take a look at my .fla, you'll see that I have attempted to dupe the mc and particle system by duping the mc and having the same AS on it. I also duped the original code on the 2nd frame which multiplies the mc's to create more particles... maybe somebody can tell me what's going wrong here. i'm trying to achieve a sprinkler head effect so i need to dupe this effect to fill in what a real fire sprinkler would do...

[Code]...

View 8 Replies

ActionScript 3.0 :: Particle System Snow Globe Boundaries

Jan 26, 2011

I've made a particle system snow globe and right now I have snow blowing across the stage, but I want to have the snow blow around only within the snow globe which is placed in the middle of the stage. I made a movie clip (area_mc) that I want to use as the boundary for where the particles can float.

View 0 Replies

Actionscript 3.0 :: Create A HitTestObject Function - When The Character Touches A Particle, The Particle Disappears?

Jan 12, 2010

I have a particle generator class and I want to create a hitTestObject function on another object to check for any collisions with the particles produced.I bascially have a character already on the stage called character_mc and I want to be able to collect the particles, that means when the character touches a particle, the particle disappears.

View 1 Replies

ActionScript 2.0 :: Randomly Animate Circles Moving Around Inside A Bigger Circles?

May 12, 2005

how to randomly animate circles moving around inside a bigger circles? the small circles will have a collision effect on each other and on rollover of each individual circle, the name of it will come out in the bottom.. so the big circle will act as a wall preventing them from coming out..

View 1 Replies

ActionScript 2.0 :: Circles In Circles Animation

May 12, 2005

anyone know of any tutorials or any codes on how to randomly animate circles moving around inside a bigger circles? the small circles will have a collision effect on each other and on rollover of each individual circle, the name of it will come out in the bottom.. so the big circle will act as a wall preventing them from coming out.. yeah, by the way i have attched the file so more or less u will understand wat im saying.

View 1 Replies

Flex :: Tweaking A ColorTransform Object

Jan 16, 2011

The official docs say:

You must use the new ColorTransform() constructor to create a ColorTransform object before you can call the methods of the ColorTransform object.

So does this mean every time I want to tweak the color transform, I have to create a new instance? If so, the setter properties seem pretty pointless and my tests are showing this is the case.

So if every render I want to cycle say the redOffset based on time (to get a pulsing effect), do I have to manually create a new ColorTransform passing all constructor args from this.transform.colorTransform:

var newRedOffset:Number = ...
transform.colorTransform = new ColorTransform(
transform.colorTransform.redMultiplier, transform.colorTransform.greenMultiplier,

[Code].....

View 2 Replies

ActionScript 2.0 :: Tweaking Preloader Code?

Aug 8, 2005

My main .swf file is 3 frames with the preloader residing in frame 1. I'm trying to get my preloader to skip frame 2 and jump straight to frame 3 if it's already cached... otherwise, go to and stop at frame 2 if it has not.

Why would I want it to do that? I have a little movie clip on frame 2 that lets the user know that loading is complete but I'm noticing it's always popping up everytime the movie is run -- I only want that movie clip on frame 2 to appear when it's loaded for the very first time. I've been using this code so far:

[Code]...

I'm guessing my problem is that it'll never skip frame 2 and always go to frame 2 followed by 3 regardless because both arguments eventually reach a fully loaded state. I thought about using somekind of loop but not exactly sure how that would solve things.

View 1 Replies

ActionScript 3.0 :: Determine X Colors Between 2 Defined Colors?

Apr 26, 2010

I wonder what kind of class(es) I should use to accomplish this task. I have two predefined colors, 0xFF0000 and 0x00FF00 (red and green), and I would like to set a number of gradiants of colors between these two colors. [code]This generates a random color, but I don't want to generate just any random one. Does anyone know what kind of color class I should use to accomplish my task objective?

View 5 Replies

ActionScript 3.0 :: Tweaking Preloader - Show A % And Stretch A Bar?

Jan 28, 2010

I had some code for a preloader that showed a % and stretched a bar.i wanted to modify it to instead go to frame 1 through 100 (based on % loaded) of movieclip "prloader" using the integer from "frmcounter" as the frame number.doesn't work!

PHP Code:[code]..................

View 1 Replies

ActionScript 3.0 :: Tweaking A Function To Be Triggered On Timeline?

Nov 16, 2010

What I want to do is take the basic functionality of this tutorial (card flipping) and trigger that action on the timeline to create an animated movie rather than something that a user with a mouse interacts with.flashandmath {dot} com/flashcs4/flip/index.html(the forum won't let me directly reference the tutorial I'm working with because i'm a new member)The tutorial uses a custom class, I'm guessing that i need to remove the eventListeners for the mouse events and call one of the functions on the timeline specific to the variables on the scene, like "card1.initApp();" ?

View 7 Replies

ActionScript 2.0 :: 3d: Tweaking Movieclips, Text And Images?

Nov 17, 2006

I'm working on a website. It's really a basic portfolio-site containing a profile, some news and a few photogalleries. The idea is to load images and text onto the pages of an open book: however I don't want a "flat" image of a book with straight angels and straight lines: I want to have a real picture of my grandpa reading from a book.

Perspective:- Is it possible to "tweak" or disort a movieclip to simulate 3d? The pages will most probably be slightly curved, and the book might not be held 100% horizontal.

Text:- What about dynamic text? Can it be tweaked like this?

Images:- Is it possible to get a good result tweaking pictures?

- How huge does a image covering most screen sizes need to be?

View 2 Replies

ActionScript 2.0 :: Preloader Tweaking-Math.round?

Feb 27, 2004

I followed a tutorial from actionscript.org , the tricky part is that i wanted to change the Kb to a % display and it's messing up.Here's the previous code [AS]lastFrame = 1;

function loadedIndicatorFrame() {
var newFrame = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 65) + 2;
if (newFrame - lastFrame > 4) { //too far

[code].....

View 9 Replies

ActionScript 3.0 :: System.useCodePage - Getting Error 1120: Access Of Undefined Property 'System?

Aug 7, 2009

I got a textfile who i am reading on a serverside script and passing it as a script to my client side as3 code. The problem is that i am using characters like ä,ö,ü,ß and this isn't well displayed. I tried System.useCodePage but the compiler complains about : 1120: Access of undefined property 'System'. It doesnt matter if I tried this on the first line of the 'Action' in the first scene or in the first line of the first .as file i am loading. (btw i am only working with .as file and not in the timeline). When i am importing flash.System.* the compiler complains he dont know useCodePage.

View 3 Replies

ActionScript 2.0 :: Friction Equations - Tweaking The Friction Constasnt?

Nov 10, 2007

I have a billiard ball system, whic detects collisions between balls and modifies their x and y velocities accordingly.I have included a friction variable and I have a very basic system for applying the force of friction for each iteration of movement:

private static var FRICTION:Number = 0.94;
public function move() : Void[code]....

This works to a reasonable level of satisfaction, but it doesn't quite feel right. The balls seem to take just a little too long to stop when they've slowed down to a very small velocity. I've tried tweaking the friction constasnt, but I still can't get sometthing that feels exactly right.

View 3 Replies

ActionScript 2.0 :: Particle Systems

Dec 23, 2004

If anyone would please post everything they can about particles and particle systems, including tutorials, source files, links, movies, comments, help, and code, I am trying to learn about particles and particle systems, but I can't fin anything that meets my needs. Please post whatever you can!

View 4 Replies

Pulse Particle Always Going To The Top Level/layer?

May 10, 2009

I'm using the Pulse Particle component to place a random starfield into my client's animation. Problem is as you'll see in this simplified example, I have the particle layer next to the bottom but when you render out the movie, the particles go right to the top layer, no matter what. I tried both this timeline effort and then I tried placing it with AS3 using the addChild method. Neither worked at all. How can I tell this component to only populate to the proper layer/level so the objects above it are seen without any particles?

View 2 Replies

Aura / Particle Effects For Flash

Nov 23, 2009

i always loves to create aura/particle effects in flash while creating some website, I always use after effect to create them, but it's a little heavy side.I was wondering is there any way to make it lighter in weight so it could faster the loading time?URL...

View 1 Replies

ActionScript 3.0 :: Particle Generation On Mouse Click?

Jan 21, 2010

Here is the code that I have just now:

Code:
package
{
import flash.display.*;
public class Particle

[code]....

This creates a constant stream of particles flowing from one point on the screen. I don't want the particles to constantly flow out from one point - I want to create a button that causes a set number of particles to explode out from it when it is clicked.

View 10 Replies

ActionScript 2.0 :: Particle Explosion, Removing Movieclips?

Jul 28, 2005

Ive attached the associated file, Its simply a partical generator that initially creates an explosion of particles which disipate after they stray a certain distance, but how can i remove the original particle movieclip from which Its formed?

View 14 Replies

ActionScript 2.0 :: Particle Effect Using Movieclips From Library?

Jul 27, 2006

so I am requesting a little help to connect a few pieces of code I have; the end result being a particle effect that propels 9 different movieclips (pulled from the library) off 'into space'.

Here is the code to call a single movieclp, which I was able to create myself :

Code:
var i:Number=0;
function createMusic() {
origin.attachMovie('music', "music"+i, i);

[Code]...

View 1 Replies

ActionScript 3.0 :: Blood Particle Engine - FPS Lags

Jan 26, 2009

I was working on a little particle engine for blood in a project I am working on and I can see it being versatile enough to be good but when I import it into a test environment it causes a little fps lag.

Code:
package {
import flash.display.Sprite;
import flash.events.Event;
public class mc_Blood extends Sprite{
private var xTarget:Number, yTarget:Number;
[Code] .....

View 14 Replies







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