Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-28-2005, 08:12 PM   #1
iamkoa
Registered User
 
iamkoa's Avatar
 
Join Date: Apr 2005
Posts: 3
Send a message via AIM to iamkoa Send a message via MSN to iamkoa
Default How To: Liquid Effect

Hey guys,

I'm trying to create a liquid-like effect for use in a preloader - something like green, bubbling liquid sloshing around in a testube & increasing in amount as the percentage increases. I've seen such effects on the net, though right now I'm having trouble finding examples.

How is such an effect made in Flash? Any examples would be awesome.

Thanks!
iamkoa is offline   Reply With Quote
Old 04-29-2005, 11:56 PM   #2
Ricod
(@_@) -("pretty lights")
 
Ricod's Avatar
 
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,982
Default

Welcome to the forums !

My first guess would be, that it's probably animated manually. Are you familair with the basics of animation, how to work with keyframes, tweening the in-betweens etc ?
__________________
RicoD
Link ?
Ricod is offline   Reply With Quote
Old 04-30-2005, 05:25 AM   #3
iamkoa
Registered User
 
iamkoa's Avatar
 
Join Date: Apr 2005
Posts: 3
Send a message via AIM to iamkoa Send a message via MSN to iamkoa
Default

Thanks for the welcome!

I'm somewhat familiar with flash at the moment, but I'm trying to learn ActionScript. I figured out how to make a simple liquid effect (mannually) but now I'm wondering if I could add bubbles using AS... possible?
iamkoa is offline   Reply With Quote
Old 04-30-2005, 12:42 PM   #4
Ricod
(@_@) -("pretty lights")
 
Ricod's Avatar
 
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,982
Default

Yes, definitely. You could have a bubble mc being randomly spawned and moved using AS and make a 'bubble popping' animation and have it initialized when it reaches the top of your liquid, also using AS.

You need to be able to do the following :
- Attaching mcs from the library or dublicating mcs already on the stage and how to remove them;
- Work with random();
- Replacing mcs on the fly or, which is easier, have the full bubble as the 1st frame of your bubble popping animation and just play from frame 2 onwards once the top of your liquid has been reached (assuming the bubbles will go from bottom to top of course);
- Checking and adjusting properties of mcs, specifically the _y and maybe the _x properties;

Experiment around with these or look them up using search. When you get stuck, let us know.
__________________
RicoD
Link ?
Ricod is offline   Reply With Quote
Old 04-30-2005, 06:25 PM   #5
Neil Davidson
Registered User
 
Join Date: Dec 2004
Posts: 141
Default

For your water there is also a moderately advanced tutorial on using actionscript to play with Flash's drawing API.

Masking with the Drawing API

Personally I found it to be a great example of effect, but it is very poorly notated in the source files. It does give something to aspire to, though. Using the concept that is shown it would simply be a matter of manipulating the lines to give the random effect of water rising.

Thought you might find it interesting.
Neil Davidson is offline   Reply With Quote
Old 05-01-2005, 07:56 PM   #6
iamkoa
Registered User
 
iamkoa's Avatar
 
Join Date: Apr 2005
Posts: 3
Send a message via AIM to iamkoa Send a message via MSN to iamkoa
Default

Quote:
Originally Posted by Ricod
Yes, definitely. You could have a bubble mc being randomly spawned and moved using AS and make a 'bubble popping' animation and have it initialized when it reaches the top of your liquid, also using AS.

You need to be able to do the following :
- Attaching mcs from the library or dublicating mcs already on the stage and how to remove them;
- Work with random();
- Replacing mcs on the fly or, which is easier, have the full bubble as the 1st frame of your bubble popping animation and just play from frame 2 onwards once the top of your liquid has been reached (assuming the bubbles will go from bottom to top of course);
- Checking and adjusting properties of mcs, specifically the _y and maybe the _x properties;

Experiment around with these or look them up using search. When you get stuck, let us know.
Anybody actually willing to start me on this? I'm so new to AS, I don't have a clue where to begin...
iamkoa is offline   Reply With Quote
Old 05-01-2005, 08:21 PM   #7
Ricod
(@_@) -("pretty lights")
 
Ricod's Avatar
 
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,982
Default

Well, I'd start by looking up each one in the help file. They always come with an example, so you know the syntax.

You then might want to read a tutorial or dissect a sample movie (like :http://www.actionscript.org/showMovie.php?id=1118), where you will find your recently acquired knowledge usefull to quickly find out what exactly does what.
__________________
RicoD
Link ?
Ricod is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:30 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.