ActionScript 3.0 :: Making Liquid Particles: Two Joining Into One?

Jan 28, 2009

i know i've seen this before, maybe on that flash experimental math site that was all black and white and had a picture of a kid swatting at some molecular looking flies? anyone remember the name of that/well anyway, what i'm trying to pull off here is like a circle of some sort, all of sudden growing a small little circle and then both of them dividing, or possibly, a two circles(modules, atoms, particles) join to be one.

View 2 Replies


Similar Posts:


IDE :: Making A Liquid Layout?

Dec 10, 2009

I am making a liquid layout in flash using as3,it worked pretty well with the following code, for the movie clips that are going to be on stage from the very beginning.

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
setStage();[code]....

But when I try to load a movie clip by clicking a button and using the ddEventListener , it dose load, but doesn't float here is the code that I think have some problem:

demon_mc.addEventListener(MouseEvent.CLICK, getSlider);
function getSlider(event:MouseEvent):void
{[code]....

as you can see I have defined the variables Width adn Height inside the function as well and I am using WIDTH/2 to define the x position,Well it laods in the exact position but won't float as I minimize the stage

View 3 Replies

ActionScript 2.0 :: Making Preloader Having Cool Liquid Effects?

Jul 26, 2005

I am trying to make a preloader that has some cool liquid effects. I want it to look like a gas tank being filled up, viewed from the side. I am trying to script it so that the surface of the fuel sloshes around as it fills up the tank, but I just can't figure out a good way to go at it.

View 14 Replies

ActionScript 3.0 :: Making A Liquid Layout - Define The X Position

Dec 10, 2009

I am pretty new with AS3 . I am making a liquid layout in flash using as3, it worked pretty well with the following code, for the movie clips that are going to be on stage from the very beginning.

[Code]....

as you can see I have defined the variables Width adn Height inside the function as well and I am using WIDTH/2 to define the x position, Well it laods in the exact position but won't float as I minimize the stage

View 2 Replies

Actionscript 3 :: Joining Sprites Together?

Nov 13, 2010

So created a Sprite to which I add other Sprites which are game tiles. Each tile is 60 x 60 px big. In result I've the Sprite with about 200 childs (those tiles).When I try to startDrag() the container sprite the lag when moving it is very noticeable..

Is there a way like to join the tile Sprites so the container would have only 1 child Sprite instead of 200? Because it lags so much probably cause it needs to move (change the x and y) all those 200 tiles.. Am I correct?In this case I can't use the cacheAsBitmap property, cause user can zoom in or zoom out the map..

View 3 Replies

Joining 3 Separate Flash Movies?

Oct 6, 2009

So I'm making a flash slideshow of baby pictures for my wedding, and I made 3 separate files, however I would like them all to play one after the other without any interruptionsIs there a way to link them or should I just try to rebuild the 2nd and 3rd files into the 1st

View 1 Replies

Professional :: Joining Several Swf Files Into One Swf File

Apr 27, 2011

how can I unite 15 swf files which placed in one folder to a one swf file? i tried all kindes of merging softwares like "Join (Merge, Combine) Multiple SWF Files Into One Software" and "WinMerge" without success and tried to convert swf to flv (cause i found other merging software for flv files) but again.I have CS5 so if i'll have to open Flash for this i will, though i'm trying to avoid that and even then i'm gonna need full instructions.

View 4 Replies

ActionScript 2.0 :: Joining Two Variables To Make One?

Jul 15, 2011

What i have on the stage are lots of balls each with there on name b1,b2,b3 etc. and i have something that is going to hit it with hitTest.

Insted of hardcoding all the balls into the hitTest i want to have a variable containing the first part of the objects name (_root.b) then add i on the the end and i would loop from 1 to how many balls are on the stage eg. 10.

so for my code at the moment I don't have a loop but using "i = 0"

Here is my code:

ActionScript Code:
onClipEvent (enterFrame) {
i = 1;
j = "_root.b"+i+".ball2";

[Code]......

When i trace "mcName" it shows "_root.b1.ball2" which is the correct object, but the hitTest doesn't seem to see it and fails.

If i put mcName as "_root.b1.ball2" (hardcoding it) it works.

Ive tried so many different tweaks and just can't seem to get it to do it.

View 1 Replies

ActionScript 2.0 :: Arithmetic Addition; Joining, Not Adding?

Oct 20, 2004

I am trying to add two variables, but my AS is joining them

volume1=function(answer1){
aa=wtft*12;
aaa=wtin;[code]....

There is more to this script, but I cut it down to this in order to focus on the error, which results in a joining aa and aaa. i.e. aa=36 aaa=4 results in a=364, where what I want would be a=40

View 5 Replies

ActionScript 2.0 :: Particles Cause Lag?

Apr 22, 2011

I've made it so when you die in my game, you explode into 20 particles which usually lags the game, especially if it's being played in a browser. I'm pretty sure that it's just because of the graphics,why it's causing so much lag? I've included the AS2 just encase.

Code:
//variables
fall = -8;

onEnterFrame = function () {[code]...

View 2 Replies

Pushing Particles Away From The Mouse?

Feb 9, 2010

I've been working on a little particle generator that produces intractable particles. When you click your mouse, they will move in a straight line away from where you clicked. Seems simple enough, but I can't quite get the formula right.

I want to pass two points and a magnitude scalar value into a function and have it move the particle along the line drawn through the two points, and only as far as the magnitude specifics.

For example:Let's say the particle is at the point P(10,10) and the mouse clicks at the point Q(15,15). I pass both those points and the magnitude 10, into my function.

The function then calculates the angle the particle should travel (45 degrees or PI/4 radians) and sends the particle to the point O(20,20), again, as specified by a magnitude of 10.

Edit: By the way, I'm using ActionScript 3.0, but if possible I would prefer a universal explanation in case I decide to program this in another language, or I am without a programming language when I need to figure it out.

View 3 Replies

ActionScript 3.0 :: Flash Add Particles Per Second?

Nov 14, 2010

How can I rig up an if statement that will add particles to the stage based on the ENTER_FRAME update interval?

Code:
stage.frameRate = 60;
var currentParticles:uint = 0;
var maxParticles:uint = 1000;
var particlesPerSecond:uint = 100;

[Code]...

I run into the problem, where if I choose a bigger value for particlesPerSecond than the stage framerate, I don't add the correct number of particles.

View 7 Replies

Actionscript 3 :: Virtual Array Of Particles

Mar 25, 2011

I made a particle class following a tutorial a while ago. Basically it uses some sort of a virtual list, replacing the array method, which makes it really fast solution. So everything is working perfectly fine except the fact that i really can't understand what actually is going on. It is pretty confusing so im trying to find the logic in this stuff, unfortunately with no success.[code]

View 1 Replies

ActionScript 2.0 :: Particles Move On MouseOver

Dec 31, 2008

I know I am a new member but hopefully my question won't be overlooked because of this fact. Anyway, here goes. I have a new project, a flash intro, and my client wants to be able to wipe away sand particles to reveal an enter website button. I tried an simple method of wiping away a image layer like an eraser but they want it to look like actual sand particles are moving around.

View 9 Replies

ActionScript 3.0 :: Multiple Particles On Stage?

Jul 1, 2009

how to create the type of particle I want and add it to the stage but how can I add multiple instances of this particle, with different values assigned? Here is what I have so far:

ActionScript Code:
import flash.geom.*
import flash.display.*

[code]...

View 0 Replies

ActionScript 3.0 :: How To Make Streaking Particles

Jul 31, 2009

Does anyone know of a tutorial on how to make streaking particles. I understand the basics of particles, but I want to make a firework effect, one that leaves light trails or streaks behind for a moment before they fade away.

View 0 Replies

ActionScript 3.0 :: Particles To Load On A Certain Level?

Oct 2, 2010

I am using the smoke AS3 file from: [URL] Everything works great, but I would like for my particles to load on a certain level, for example:

[Code]...

Actually, I would like for my Content to always be on top (pertaining to my layer order on the timeline) and everything else to always be behind, but in the manner described above. I'm not sure how to do this,

View 3 Replies

ActionScript 3.0 :: Keep Particles Inside A MovieClip?

Jan 27, 2011

I have a snow globe image on the stage and a movie clip that surrounds the inside of the globe called area_mc. I need my snowflakes to only float around in area_mc (my snow globe). Right Now I have all my flakes floating around the entire stage.[code]...

View 0 Replies

ActionScript 3.0 :: Particles: Can't Add Event Listener

Feb 7, 2009

i am working on a particle engine for a little project of mine and i cant seem to add any event listeners. I have uploaded the zip so you can see what i have.

View 14 Replies

ActionScript 3.0 :: Cascading Particles/stars Etc?

Feb 10, 2009

I need to get something similar to this done in a short period of time, so I don't have much time to play around.

Does anyone have a similar code/tutorial or anything that resembles this?

View 3 Replies

ActionScript 3.0 :: My Particles Stop Falling

Dec 21, 2009

You notice that their are 'particles' falling from the position of the mouse but for some sort of stupid reason they get stuck at a certain point in time.

Also, the three white bars are dragable, but i want them to swing back in to place when you release them. Is this also possible with a tween ? or do i need to code something physic-like.[code]...

View 5 Replies

ActionScript 3.0 :: Some Of Particles Aren't Dying?

Mar 19, 2010

I'm new to the forums here and new to AS3 (I have some AS2 experience, and lots of general programming experience).nd I've made a few tweaks, including most significantly, fading out and killing particles after a certain amount of time. But I have a problem: I can't figure out why some of my particles live longer than they should.In more detail:In particles.as, for each dust particle that gets generated, the fadeOut function should get called after half a second, and when that tween is done, the killParticle function should get called. This seems to work for most particles but every now and then a few particles will stick around (i.e. the fadeOut function won't get called)Watch the animation: linkOh, and I'd love to know if there's anything I can do to increase performance as well. This is pretty cpu-heavy right now.All my .fla file does is include particles.as. See code below.particles.as

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

[code].....

View 1 Replies

ActionScript 3.0 :: Make A Bunch Of Particles Jump Around?

May 4, 2009

I'm basically trying to make a bunch of particles jump around. I've used the draw tools to draw a small red puff. When you click the puff shoots up from the cursor a few pixels before falling down.
 
how to call the information from this .as file in another file. This way I will take out the click functionality from the file I have done and have the puffs shoot out automatically at the mouseX and mouseY coordinates.
 
I eventually want to have these puffs shoot out from a character as it runs across the screen in a game I have planned. It will make it much easier to have these puffs called from a seperate file I believe.
 
Here is the code I have so far:

[Code]......

View 7 Replies

Flex :: Create Particles Structure From Text?

Apr 11, 2010

I want to take any Text sting and form from it text formed by particles in actionscript 3 (In flash flex) I see I need some lib for this. but all libs Ive seen do not have such functionalyty by default...

So I want to get something like this

So Is there any sych lib? or way of doing it with some lib?

It should be Free and Opensource (any license like GPL, LGPL etc will be ok).

View 2 Replies

Actionscript :: Redraw Hundreds Of Particles In Flash?

May 17, 2011

I am just starting to learn flash/actionscript 3 and decided to code up a simple particle simulator.The very initial design simply involves filling the screen with a buncha particles which scatter away from the cursor if you were to click.This works, but is a bit unresponsive. I am using graphics.drawCircle() to draw the particles, and each particle is inherited from Sprite.

Listener for mouseclick event:

private function mouseClick(e:MouseEvent):void
{
trace("click");
var now:Date = new Date();
trace("Before: "+now.getTime());

[code]....

How should I make this more efficient? I plan on doing collision detection and other physics interactions later, and this is already a bit slow even without the hefty number crunching code I intend to add later.

View 2 Replies

ActionScript 3.0 :: Generate A Random Number Of Particles?

Jul 1, 2009

I am trying to generate a random number of particles (say between 1 and 4) per second, which would float up the screen from the bottom at a random X value (width is 1280 px). These particles should be a random size (say between 2 and 5 px in diameter) and a random opacity (say between 20 and 50%).

and all of this should be going on in the background while the rest of the flash actions are taking place.

How would I do this, I have been experimenting but have had very little success. It is something that I could easily do in after effects however I would like to keep file size small and allow for continuous uninterupted play.

View 1 Replies

ActionScript 3.0 :: Add Particles From An Array Inside To A MovieClip

Feb 11, 2010

ActionScript Code:
var myArray:Array = new Array();
for(var i=0; i<10; i++){
var p:Particle = new Particle();

[Code]....

I have this array of particles and I was wondering how can I add this particles inside a movieClip, in other words I would like to add particle "p" to a movieClip that I have on the stage with an instance name of "mainMC".

Also, is it possible to display the number of particles (p) inside mainMC in a text field? On this case I know it will be 10, but this will change.

View 2 Replies

ActionScript 2.0 :: Kirupalab - Particles Disappear When Not Needed?

Dec 23, 2003

i've tried the particles effect in kirupa lab..but how do i make them dissapear if i dont need them?the particles still there even though the frame is empty

View 2 Replies

ActionScript 3.0 :: Falling Particles That Settle Into A Pile?

Jul 4, 2010

I'm animating a torn sack that will deflate as the beans inside of it spill out and pile on the ground. The sack I'm animating frame-by-frame, so the problem is the beans-- I can't imagine animating them one by one, but I know nothing about actionscript and the few tutorials I've found online don't address what I need to do; worse, they seem hopelessly complex.

View 1 Replies

How To Do A Liquid Layout

May 11, 2010

I'm just learning how to do a liquid layout,I found one tutorial which gave me this basic script:[code]It does what the tutorial says, but there's an error in the output. It doesn't work when I give the 2nd function another name or when I combine both functions. Is there a way to fix this script, or is there a better way to approach this?

View 2 Replies







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