This content has been marked as final. Show 13 replies
Thanks, close but no cigar. ;) I'm busy editing a fountain particle emitter so if I get it working, I'll post it.
Thanks for replying!
Ohh well, I tried. =)
I should learn the particle system too, but it's too advanced for me at the moment.
I'll get there someday.
good luck with the project. look foreward to seeing the finished product. =)
This is based on Seb Lee Delisle's particles... a wealth of knowledge there! I just edited the class and the script to suit my needs. Then I made my confetti mc (with "Export for AS" checked in Linkage) with 5 keyframes, all different tints.
I can't view it,
it keeps telling me that Classes may only be defined in external ActionScript 2.0 class scripts.
i saved it to an external .as file.
and #include in the FLA.. but still nothing..
i'm dumb!!! =(
There are two kinds of external as files. The first is a bunch of functions/declarations and you use the include directive to... well, include them in your app. The second kind is a class file and then you don't use the include directive. The statement
particle = new ConfettiParticle("spark", holder_mc, 0, 0);
does the trick (when the class file is saved in the same folder as the .fla).
ok im not getting any errors now.. Thanx LuigiL...
but im not seeing anything in the swf, or test Movie...
i save the .as file as spark.as right??
No. Save as ConfettiParticle.as
And, in the library of the fla there needs to be a mc with a linkage (library menu -> linkage) identifier 'spark' (create a small circle (for instance) and convert it to a movieclip -> give it the linkage identifier). Furthermore, if you wish to test the code as is, you need to put an mc on the stage and give it an instance name 'holder_mc'.
(see this line in the code: particle = new ConfettiParticle("spark", holder_mc, 0, 0);)
If you just want to test the code on the root (using _root as the target movieclip) replace that line with:
particle = new ConfettiParticle("spark", _root, 0, 0);
Thanx LuigiL, that did it.. =)
I feel soo dumb, I couldnt even figure this out... =(
I have a LOOOONG way to go... I'm worst than a newbie...
Thanx for the patience you have LuigiL =)
you're a great help as always..
Aniebel, Thats some great work there. Congratulations!!
I love it !!!
No problem. A long time ago I was just another newbie...
How long have you been Action Scripting for?
Me, i've only just started to learn past the " stop(); gotoAndPlay(); on(rollOver); " about 2 months ago, maybe abit over.
* YES, i STILL use on(rollOver) instead of movieClip.onRollOver.() *
Im starting to use dotSyntax ALOT more now tho. Helps in learning AS.
I've been using Flash for alot longer tho, but never used much Action Script.. I can animate just about anything, just not with action script.
I'm slowly getting there tho.. keeping notes from all the help you guys have given me.. Also David Stiller's Blog, "WHOA" thats a middle sized Library of Flash info.. I wish i had alot of time to just sit down and read the whole lot, with Flash open so I can practice.
I'm thinking too long... maybe I'm moving over to the operating system (OSX that is). Lots of success learning AS!
Glad you liked it. The majority of the work was done by Seb Lee Delisle though. Maybe one day I can give thanks to all the people who have helped me and maybe I can pay it forward by helping others too! This is the coolest thing (to me) about the Flash community.