| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
got as?
Join Date: May 2007
Posts: 507
|
ok you have to make moving flames that look realistic glows would help that move, contest begins now, it has to be all done in actionscript
|
|
|
|
|
|
#2 |
|
got as?
Join Date: May 2007
Posts: 507
|
alright this will help you its a little tool i made that will show you a grid with an alpha of 20 then when you click on it it tells you the x and y position of the point you clicked on its at http://albert.teleinc.com/tool.zip
|
|
|
|
|
|
|
|
|
#3 |
|
rather be programming
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
|
How in the world is that supposed to help people build flames???
The point of these contest is not to just take other people's code but to challenge them with some of your own.
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman |
|
|
|
|
|
#4 |
|
got as?
Join Date: May 2007
Posts: 507
|
first off thats just a tool i made to help you figure out were your line is on the x, y axis in as lineTo and stuff so we can build a realistic moving flame all done with actionscript
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Jun 2007
Posts: 1
|
Hi ! That s my first post here !
Here's a small fire effect using BitmapData. It's as2 and it takes a lot of ressources ![]() Just move your mouse over the stage (compile in 40 fps ) Code:
import flash.filters.BlurFilter;
import flash.display.BitmapData ;
var mcBack : MovieClip = _root.createEmptyMovieClip("back",1);
var mcFront : MovieClip = _root.createEmptyMovieClip("front",2);
Mouse.hide() ;
var bmp : BitmapData = new BitmapData(Stage.width, Stage.height, true, 0xFF000000) ;
var b = new BlurFilter(6,6,2);
mcBack.attachBitmap(bmp,1);
mcBack.filters = [b] ;
mcFront.lineStyle(10,0xFFFF6600) ;
mcFront.moveTo(0,0) ;
mcFront.lineTo(.5,.5);
mcFront.filters = [b] ;
_root.onEnterFrame = function()
{
bmp.draw(_root);
bmp.scroll(0,-4);
mcFront._x =_root._xmouse ;
mcFront._y = _root._ymouse;
}
|
|
|
|
|
|
#6 |
|
Registered User
Join Date: Mar 2005
Posts: 106
|
Hi babeuf, and welcome.
Nice flame - I borrowed the basic principle and put it into AS3, seems to be a little less processor hungry. (I'm sure my code could do with some work though - this is the first time I have played with AS3..) ActionScript Code:
Stu Last edited by Stu; 06-25-2007 at 10:03 AM.. Reason: Added .fla (cs3) and .swf (flash9) |
|
|
|
|
|
#7 |
|
got as?
Join Date: May 2007
Posts: 507
|
ok so we have ...
now can we make "mcFront.lineStyle" blend from 0xFFFF6600 to 0xFF66FF00 to 0x0066FF slowly? ActionScript Code:
now can we make "mcFront.lineStyle" blend from 0xFFFF6600 to 0xFF66FF00 to 0x0066FF slowly? Last edited by orange gold; 07-02-2007 at 05:03 AM.. |
|
|
|
|
|
#8 |
|
got as?
Join Date: May 2007
Posts: 507
|
ok here is what i have so far its good
ActionScript Code:
|
|
|
|
|
|
#9 |
|
Chief Breaks-many-phones
Join Date: Jun 2007
Location: new york city
Posts: 527
|
Here's something to make it jitter a little. Can be worked on to make look better.. but adds a little realism.
Code:
stop();
import flash.filters.BlurFilter;
import flash.display.BitmapData ;
var mcBack : MovieClip = _root.createEmptyMovieClip("back",1);
var mcFront : MovieClip = _root.createEmptyMovieClip("front",2);
Mouse.hide() ;
var bmp:BitmapData = new BitmapData(Stage.width, Stage.height, true, 0xF0F0F00) ;
var c1=6,c2=6,c3=2;
var b = new BlurFilter(c1,c2,c3);
mcBack.attachBitmap(bmp,1);
mcBack.filters = [b] ;
mcFront.lineStyle(10,0xFFFF6600) ;
mcFront.moveTo(0,0) ;
mcFront.lineTo(.2,1);
mcFront.filters = [b] ;
_root.onEnterFrame = function()
{
b = new BlurFilter(rand(1,8),6,c3);
mcFront.filters=[b]
bmp.draw(_root);
bmp.scroll(rand(-2,2),-4);
mcFront._x =_root._xmouse ;
mcFront._y = _root._ymouse;
}
function rand(low, high){
return Math.floor(Math.random() * (high - low)) + low
}
|
|
|
|
|
|
#10 |
|
got as?
Join Date: May 2007
Posts: 507
|
good work it looks real good in fps 40
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| i love this song.... | boyzdynasty | General Chat | 3274 | 05-06-2008 12:33 AM |
| Challenge - 3D Moving Cube | onasiam | Just for Kicks Challenges | 14 | 10-16-2006 10:59 AM |
| moving xml node references like array references? (moving reference, not node) | fishmonger | ActionScript 2.0 | 7 | 09-13-2005 09:12 PM |
| just for kicks challenge challenge | junahu | Just for Kicks Challenges | 90 | 03-29-2004 07:19 AM |
| How to start a Challenge | Jesse | Just for Kicks Challenges | 0 | 05-17-2003 02:29 AM |