Tag Archive for 'actionscript'

Page 2 of 4

Flash on the Beach :: particles, algorithms, and fractals (and then some more particles to top it off)

Brighton Pier

Flash on the Beach 07 was just GREAT!

Although I had to miss some of the sessions on Wednesday :-( because of the amazing party on Tuesday 8) (read: loads of beer and dropshot) the whole event inspired me to really start experimenting in Flash again.

In contrast to Mad in Spain (which was mostly about great webdesign) this event was all about Flashy-artwork (it was to me anyway).
Almost every session I went to dealt with particles, algorithms, particles, fractals and then some more particles…. 8O

Fractal tree
Fractals all over the place… :|

The absolute particle/algorithm/fractal climax was Jared Tarbell’s session “Algorithms to Fill Space”. Although I was familiar with the basics of the algorithms and particles, this session made me see how easy it mas to make very complex and cool experiments with them.

Another great and very funny session was Joshua Davis‘ “Dynamic Abstraction”. This guy makes just GREAT art using mainly flash. Although his site doesn’t fully do justice to his work you should check it out because he has some great pieces there…

Besides these two amazing sessions there was a lot more that inspired me. As I want to spend most of my time experimenting in stead of updating my blog here is a little sum-up of these sessions (no particular order):

- Alex JenkinsPulling the emotional trigger
A session with a some very entertaining websites. Check the Unit9 portfolio:
http://www.unit9.com/

- Seb LeeDelisle AS3 Particle Effects – Now 1000% Extra FREE!
A great session about the basics of particles. Although the session started of very easy, it got more interesting near the end as it showed some really pragmatic solutions to common problems (e.g. with a few tweaks you can make your particles look like real smoke without speed loss). Check out the Plug-in Media! site for some cool effects!
http://www.pluginmedia.net/

- Keith PetersMake Flash Games. Retire Early
A session about how to make money of your “simple” flash games. Since I already have some game engines in store I really need to turn them in to real games and start making money. :D
His site is more about his experiments but it’s really worth to check out:
http://www.bit-101.com/

- Craig Swann - Perceptive Interactions + Alternative Interfaces
A nice and inspiring session about Craig’s experiments with alternative in- and out-put. The experiments are a weird combination of video, sound, webcam, and a bunch of home-made electronic input devices. Check the lab-section on his site for some of the freaky shit.
http://www.crashmedia.com/

- Robert Hodgin - Breaking away
Although (or maybe because) his work was not made in Flash, it was just fucking GREAT! By using processing this guy created the most amazing art. Check his blog for some of his work (make sure to check the videos).
http://www.flight404.com/

- Erik NatzkeBeyond the Knowledge: The Art of Playing
I’m not a big fan of his work (particularly the old stuff) but he has got some nice pieces out there.
http://jot.eriknatzke.com/

There were a lot more interesting speakers, but as a already mentioned I really like to get busy right now my self. So after I finish my uncles portfolio site (any time now) you should expect some great experiments and games! Stay tuned…

Brighton here we come

Just great! I still got a little tan from the Mad in Spain and already I’m packing for a trip to Brighton. Flash on the Beach here we come…

This time we’re going with six people from <theFactor.e> Flash/Flex team. I hope to be even more inspired by this trip than the previous one.

Stay tuned…

Joy with the script timeout period

Isn’t it just great when you finally find a useful new feature in Flash 9.
I’m talking about the script-timeout period.
Remember how you sometimes had to run a script for more than 15 seconds and always got that annoying timeout popup? From now on (using Flash 9 / player 7 and up) you can set the timeout as you wish. Isn’t that just great?!
It gets even better when you use AS3; the player doesn’t just show the script-timeout popup but it actually throws an Error (“Error #1502: A script has executed for longer than the default timeout period of 15 seconds.”). This way you can make a certain part of your script (which needs more time than the supplied timeout period) run over and over again until the calculation is complete.

Here is an example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package { 
	import flash.events.Event; 
	import flash.display.MovieClip; 
	public class TestMC extends MovieClip{ 
		private var i:int = 0; 
		private var loopCount:int = 0; 
		public function TestMC() { 
			this.addEventListener(Event.ENTER_FRAME, this.calculate); 
		} 
		private function calculate(event:Event):void { 
			try{ 
				while(true){ this.i++; } 
			} 
			catch(e:Error){ 
				this.loopCount++; 
				trace("____________n'i' after "+loopCount+" frames = " + this.i); 
				if(i&lt;0){ //i will be negative when it becomes to big, normally you would check here if your calculation is done... 
					this.removeEventListener(Event.ENTER_FRAME, this.calculate); 
				} 
			} 
		} 
	} 
}

This is just an example and I’m sure you can think of much more useful ways to use this feature.
Hope it heps you along…

Update (1 December 2007):
Just great; I forgot to mention HOW to set the timeout . Well here is how:
You can’t set the timeoutperiod by code (neither in as3 nor in as2). You have to set the timeout manually in the publish settings of your fla: Ctrl+Shift+F12 > flash-tab > “Script time limit”.
Let me know if you still have trouble.

Where is my as2 remoting in Flash 9?

Just great! I installed Flash 9 and was happy I could finally throw out the old Flash 8 version only to find out that I couldn’t  compile my old as2 remoting projects in Flash 9. At Adobe they were smart enough to include remoting in as3 but they totally forgot to add it for as2 as well. Checking the (Flash 9) help led me to the site where I can only download the Flash 8 remoting installer which can’t be installed for Flash 9…

Very smart Adobe! :|

Fortunately I thought of an easy way to get this problem solved; simply copy the remoting classes from Flash 8 to some other directory and set this directory as one of your default Flash 9 – as2 – classpaths. (Copying it into the default classpath with all other default classes didn’t work for me somehow.)

To make it easy for you I extracted the remoting classes and put them in a zip: as2RemotingPackage.zip

PS: I coudn’t find any info about this on the internet so either nobody ever needed it, nobody ever bothered to try and find a solution or this solution is so simple nobody ever bothered to write about it.
Anyway I bother to write about it for those of you who couldn’t find a solution or just didn’t bother to find one.

Hope this will help you… :idea:

Game Physics here I come…

Just great! After years I finally found the book I was looking for all the time…

Game Physics – Engine Development

I’m not really a book person, but when I tried to create a physics engine a while back I ran into a couple of major problems which stopped me from going on with it. I tried it a couple of times ever since but I always found myself stuck on the same problems (complicated collision detection etc.). Back then I searched for decent books to help me but there wern’t any. Either they were way too easy (coming with all kinds of crappy solutions) or way too hard (most of them all about theoretical physics).

I ran into this book by accident as I was actually looking for an all picture book with cool and stylish web design (Web design index by content).

I haven’t read any of it yet, but looking at the pics inside it is exactly what I needed :D .
I tend to read it in my vacation so you might expect some nice experiments in the near future.

For those of you who are interested:

Game Physics – Engine Development by Ian Millington
isbn: 978-0-12-369471-3

Web design index by content
isbn: 90-5768-069-6 | http://webdesignindex.org

PS: I saw this Ian dude also has a book on AI which sounds interesting too, but that something for the future. (God, where am I gonna find the time…)