ActionScript 3.0 :: Project: Lava Lamp - Generate Some Randomly Shaped Blobs Of Liquid?

Dec 28, 2007

I am working on a project, and I'm planning to make a flash lava lamp.I am currently working on the "giving heat to the blobs" part of the project.Currently it looks something like this:Link

[code]...

In the next part of the project I will generate some randomly shaped blobs of liquid and place them in a movie.And then they will find out the amount of yellow inside to get the average "temperature" of the blob, and then the upwards acceleration of the blobs will be determined. So if the blob is relatively hot, it will flow upwards, if it's low, it will flow downwards. As it gets higher, the blob will lose some heat. Touching another blob will exchange some heat and other lava-lamp'ish stuff will happen.Do you think I should do it with pixels? (like above) or do you think I should use "normal flash stuff" ? (By that I mean using movieclips, etc)Is my method of displaying "heat" good? Or could I use another way?

View 14 Replies


Similar Posts:


ActionScript 2.0 :: Lava Lamp's Rollovers?

Apr 15, 2002

I recently came across Lava Lamp's website, very interesting. I am curious if anyone can point me in the direction for creating rollovers employing this same style they are using. I can see that it is comprised of movies for the rollover and rollout. However, when I try to create the rollout state things just don't work. I have tried using the advanced rollover tutorial on this site but when I try to recreate it using a shape I just doesn't work.

Can anyone point me to a source for recreating this type of rollover?

View 1 Replies

SWFObject And JQuery Lava Lamp Plugin / Flash Flickers In FF

Jun 5, 2011

I have a flash movie and lavalamp menu on the page, when moving the mouse over the menu the flash flickers, and the lavalamp animation is slow and not smooth.[code]

View 1 Replies

ActionScript 3.0 :: Generate A Random Coordinate Within An Irregular Shaped Movieclip

Feb 3, 2012

I have a series of dots on a world map that depending on certain criteria move from one country to another. At the moment they move to a random point around the country's (mc) centre, as calculated by addind half the width to the x or y coordinate etc. This pressents certain problems such as the centre of the US is actually outside the boundries of the countries borders because of Alaska. Other countries such as the UK have dots floating just off the coast. The dots also cluster coveringing each other up.

Is it posible to generate a random x and y coordinate that is inside the boundries of an irregular shaped mc such as a country. I know that Flash must have these values because of colision detection and mouse overs. I just don't know how you go about accessing them.

View 3 Replies

Actionscript 3 :: Randomly Place An MovieClip On An Irregularly Shaped Object?

Mar 8, 2011

Is there anyway to randomly place a MovieClip/Sprite on an irregularly shaped object?For a rectangle, it seems pretty straightforward (i.e. use Math.random with the range being the coordinates of an object)...but what if say, you would like to avoid placing objects in the center?

View 2 Replies

ActionScript 3.0 :: Custom Resize Event As Part Of Larger Project To Create Flexible Liquid Layout Class

Dec 16, 2009

I am trying to create a custom resize event as part of a larger project to create a flexible liquid layout class.Basically, i want an object to listen for the stage.RESIZE event. If i can listen for this event from multiple objects, it solves my event firing problem.[code]

View 7 Replies

DuplicateMovieClip To Randomly Generate Walls?

Sep 9, 2011

I might not even be approaching this the right way, but I'm trying to make a game where a ship flies through randomly generated tunnels. I'm very new at this, but I felt my question was a bit too advanced for the "Programming Beginners" section.So, what I came up with was two black vertical rectangles, ~50 px wide, ~300 px high and ~100 px apart vertically, as one movie clip. I want this clip to be duplicated infinitely, stacked to the right of eachother, and shifted by a random number between 0-10 pixels up or down.This is the code I used to create just one copy of the walls, hoping it would shift over to x=140:

Code:
for (var i=0; i<200; i++) {
duplicateMovieClip("walls", "walls_copy", 1 );

[code]....

View 6 Replies

ActionScript 2.0 :: How To Randomly Generate Clouds

Feb 11, 2006

I would like to randomly generate clouds, so that they go across the screen. I was wandering if anyone could help me with some code? that i would put in the actionscript?

View 2 Replies

ActionScript 2.0 :: Randomly Generate Trig Functions?

Jul 9, 2006

Does anyone know if there is a way to randomly generate trig functions (sin, cos, tan). I am trying to make poblems using these functions. The examples that I see are automatically assigning values to these functions however I want to randomly generate. Example from flash 8 help feature[code]...

View 2 Replies

ActionScript 3.0 :: Flash Randomly Generate A Movieclip?

Feb 12, 2011

I'm code a flash button so that when the user clicks it, 4 objects are placed at my desired coordinates from 4 arrays (1 movieclip from each array)?

View 3 Replies

Actionscript 3 :: Flash: Randomly Generate Numbers 0-9 Repetitively

Jan 31, 2011

Basically I need the "image" of fast changing numbers. I am planning on having a series of these in a line, sort of like the matrix (how the numbers change repeatedly). I want them to basically generate the numbers 0-9 over and over pretty fast (sort of like milliseconds on a stopwatch), until I have them fade out.

View 3 Replies

Flash :: Generate A Matrix With Value Of Elements Either 1 Or 0 (filled Randomly)

Aug 22, 2011

I am encountering a strange problem. I am trying to generate a matrix with value of elements either 1 or 0 (filled randomly). I am storing the values into a 2D array. This is code on the first frame. Everything seems to be working fine.

[Code]...

View 2 Replies

ActionScript 2.0 :: Creating A Random Equation - Randomly Generate Two Individual Numbers

Aug 28, 2009

how would you go about creating a random equation? i would like to randomly generate two individual numbers, a random operator (out of +, -, *, /) between these numbers and then the user would input a number to answer the equation... any thoughts on this?

View 4 Replies

ActionScript 3.0 :: Generate The Zoombie Characters Randomly By Group Based On The Time

Aug 26, 2011

In that how to generate the zoombie characters randomly by group based on the time. First the characters should come slow then as a group and again it should come slow.

View 1 Replies

Actionscript 3 :: Generate Classes For A New Project?

May 4, 2010

Whenever I start a new game, I make a whole bunch of classes that extend my base classes, so: URL...and has some setup code.Now all I need is a way to generate these classes at the start of the project so I don't have to create each one manually. It will save me at least an hour of faffing around per game. So how do I do it? I normally use FlashDevelop but I also have FlexBuilder 3, or I'm happy to download whatever other software I need (PC).

View 4 Replies

Actionscript 3 :: Generate EXE From Flex Project Using Mxmlc?

Dec 13, 2010

How to generate an Executable file of my MXML (flex) Application. What is the command using in command prompt for MXMLC.exe.

View 1 Replies

Java :: Generate Flex Project Files Using Maven?

Sep 14, 2010

I've got a Java/Flex project that I'm building using Maven. After doing some research I'm using the Flexmojos project [URL] for the Flex part, and almost everything seems to work fine so far (after a bit of struggling). I'm using version 4.0-alpha-5 (4.0-SNAPSHOT didn't seem to work for me).The Flex projects isn't recognized by Eclipse as Flex projects though. If I manually change the .project file and add .actionScriptProperties and .flexProperties files, Eclipse seems to recognize the projects as Flex projects.

View 4 Replies

Flash :: Generate Instances Of Object Randomly At Top Of Screen And Make Them "fall"?

Apr 2, 2010

I am making a game in Flash CS4 (actionscript 3) and I would like to be able to make "copies" of an instance that would randomly appear at the top of the screen and fall. For example, multiple objects(that are the same one) are falling from the top of the screen continuously, starting at random X positions. (i think this would be considered Real-Time effect).

View 2 Replies

Media Server :: Install FMiS 4.5 On Existing LAMP-stack?

Dec 13, 2011

So I have a LAMP stack on a virtual server and would like to install FMS without using the apache that comes with FMS - I would rather just keep on using the currently installed LAMP-stack - is there a tutorial or documentation on how to accomplish this?

View 2 Replies

Jquery :: Add Fading Color 'blobs' - PNG Is Too Big - Any Alternative?

Sep 11, 2011

I want to do a nice effect that would do something like this: So far, I made a separate layer in photoshop for each colour, and I want these to slowly fade in and out. The problem is, however that each blob is about 140KB if I use PNG. Is there a better alternative like doing this in vector and blurring it in jquery?

View 2 Replies

Data Integration :: Loading Images Stored As BLOBs In MySQL

May 10, 2010

For various reasons, I would prefer to store binary data like images and videos as BLOBs within a MySQL database and have Flash retrieve that content directly from the database as opposed to getting it from a URL on a fileserver. So, I have written a PHP script that Flash calls which does a database query and returns the bitmap data from the BLOB. I have verified that the image data is being sent from the database through the PHP, but Flash either doesn't display the image or gives me an error saying that it is an unknown type.

[Code]....

Is there a way to get Loader() to accept bitmap image data that is retrieved from a BLOB in a database? Should I try to get PHP to mimic the response from an HTTP server or is there another way to load bitmap data stored as a BLOB into a display object?

View 2 Replies

Flash :: Professional - When Publish To An Animated Gif The Text Turns Into Blobs On The Screen

Nov 3, 2008

I have a simple litte banner I did with flash (version 9.0). Just a few images and some text that I fade in and out with a motion tween. When i publish this to an animated gif, the text turns into blobs on the screen.

View 6 Replies

Flash :: Write Component To Upload Files Directly To Windows Azure Blobs?

Oct 22, 2010

I've been experimenting with Windows Azure Blob storage using the samples using Silverlight.

I was wondering if it's possible to write a file upload component in Flash instead of Silverlight, since the former is installed almost everywere. I've never programmed in Action Script but I have a solid background in C# so that must not be hard.

View 1 Replies

Hittesting Odd Shaped Objects?

Sep 8, 2009

I created a .PNG in Photoshop (see attachment) -- now when I make this into a movieclip the bounding box covers the entire area so the hittest activates as soon as my helicopter flies into the bounding box.I looked at adobe's "help" they recommended this code (by the way, I'm using Flash 8):

my_mc.hitTest(x, y, shapeFlag )
my_mc.hitTest(target)

The way I interpreted the code was like this:

onClipEvent(enterFrame){
heli.hitTest(248.1, -38, shapeFlag)
}

I read somewhere that you only use one of the two, and the shapeFlag one is the one to use.The above code I placed into the helicopter MC (named heli) - I set the x & y to where the PNG is.The PNG moves towards the helicopter, so I'm not sure if that makes a difference.I just want that if the helicopter runs into the ceiling or floor, the level resets.However my current actions activate as soon as it hits the bounding box.This is my code in the PNG:

onClipEvent(enterFrame){
this._x -= _root.levelSpeed;
}[code]....

I've tried a lot of things, and nothing seems to be working.

View 5 Replies

ActionScript 2.0 :: Dynamic Pie Shaped Wedge?

Oct 9, 2009

if I had a better understanding of bezier curves. This should draw a wedge of specified angle and radius, with the the bisector a vertical line. There appears to be something I don't get, because the curve does not conform to a perfect circle.

Code:
function doWedge(rad, angle, target) {
//angle to radians, then cut in half

[code].....

View 2 Replies

IDE :: 3D And Masking - Create A Different Shaped Mask?

Apr 1, 2010

I'm dabbling with 3D tweens but I've hit a snag. The tween works fine on it's own and also with a simple mask on it. My issue is when I add a second keyframe to the mask layer to create a different shaped mask. When it reaches that frame my 3d tween goes crazy and flies off.

View 1 Replies

Professional :: Move Project To See The Not-project Area Around The Project?

Jun 21, 2010

I cant "center" my project, like you can see its "fixed" (yellow lines) in the left side and I cant see "invisible" part of project... (area around the project). how can I move my project so I can see the not-project area around the project. (picture 2).

At the moment situation... (cant see that area around the project)
http://img19.imageshack.us/img19/1186/68553623.png

View 2 Replies

ActionScript 3.0 :: Hittesting Irregular Shaped Objects?

Dec 16, 2010

What I'm trying to do is hittest two irregularly shaped objects using their alphas and not the bounding box.

The code below hittests two objects named target 1 & target 2. This is not my code, but mine looks exactly alike, except target 1 & target 2 are replaced with my MC's. the thing is, I keep getting an error.At every function line, like the "public static function complexHitTestObject I get an error that says: Expecting right paren before left-bracket. I don't know what this error is caused by, because I can't really see why Flash wants another right paren.

[Code]...

View 6 Replies

Professional :: Round Document Circle Shaped Workspace?

Aug 2, 2010

I want to make a simple animation with some photos.  But I'd like to create this in a circle shaped workspace (stage), so when I export the movie as a .swf it will be shown as a round document, instead of the basic rectangle.

View 1 Replies

Actionscript 3 :: Irregular Shaped Gradiant Contour In Flash?

Jan 30, 2012

I am looking for a way to get a similar effect as posted in the Adobe forums The current solution is very brute force using about 60 intermediate shapes gradually going from the outer shape towards the inner shape while slightly changing the color each time.

[Code]...

particular problem, I only wanted to have a shape fade into the color of the background so my solution was to draw the image slightly larger than usual and use Flash's blur filter to create the gradient effect. This is suitable only because my background image is a solid color so this won't work for everybody. This is also a very cpu intensive method but is faster than drawing 60 shapes.

View 1 Replies







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