View Full Version : Solar System
Voetsjoeba
December 19th, 2004, 01:42 PM
I've always wanted to do something like this, so I decided to give it a shot. There is one core node, and the others are all nodes of the core node or of other nodes. Each node orbits around its parent. This swf is driven by two AS 2.0 classes: SolarCore and SolarNode. There is one more, SolarElement, but that servers more as a dummy parent class for both to be able to use Strict Data Typing when targetting a parent node (could be either a SolarCore or a SolarNode).
The speed of each node is determined by the distance from its parent node: the further away, the slower it will orbit, and vice versa. The size of each nodes is based on both the size of the core node and the level of the node. By clicking on each node, you can see the links with its child nodes.
width=700 height=500
Download: http://downloads.voetsjoeba.com/?1099254591
TheCanadian
November 5th, 2005, 07:18 PM
Okay so it's an old thread. That is still very cool :thumb:.
treatkor
November 10th, 2005, 12:46 PM
yeah very cool Voetsjoeba. glad you commented on it, TheCanadian, i never would have seen this. this really makes me want to learn AS2.
icio
November 10th, 2005, 06:51 PM
You could probably do this in AS1 if you know that, treatkor.
Nice work, voets.
treatkor
November 10th, 2005, 10:36 PM
yeah, i suppose it could be done in AS1. but i want to learn AS2 and this looks like a nice demonstration of classes. i played around with the .fla from voets' code for a bit and it's awesome how easy it is to add more planets and moons. i know that once i overcome the learning curve of OOP i'll be able to write much more efficient code. i just haven't really spent any time trying to learn AS2. i feel like if i'm going to stay viable as an actionscript/flasher in the future, i need to learn AS2 style.
lordkiller
November 11th, 2005, 04:27 PM
Something similar with prototypes: mx2004 + player6
Very much manual editing but is the best I can :(
Is part of something bigger, so not colored, no other functionalities...
Credits:to Sen for part of the protos
wiew (http://img496.imageshack.us/my.php?image=solarsystem7vk.swf)
Voetsjoeba
November 11th, 2005, 06:08 PM
Took a while for this to get discovered :)
TheCanadian
November 11th, 2005, 08:33 PM
Took a while for this to get discovered :)
That's cause I decided to display all of the threads instead of ones that are less than 30 days old :). There is a lot of neat stuff in here :thumb:.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.