ActionScript 2 3D Classes

Share your knowledge in a tutorial, or post code snippets and classes that might be useful to the community

ActionScript 2 3D Classes

Postby can_dyman » Tue Jan 29, 2008 1:25 pm

Hi!
I have upload some code on Google code. It is written in AS2 and i think it is really easy to use. No comment and docs but i have provide some samples. If you wanna take a look here it is:

http://candymandesign.blogspot.com/2008/01/candydimension-v10.html

You will be able to build basic 3d space - cubes, spirals, basic material mapping, change the depths, scale, color transformations... Nothing like Papervision or Sandy - not that complex - but think it is easier to use.

Best
Last edited by can_dyman on Wed Jan 30, 2008 2:06 pm, edited 1 time in total.
can_dyman
 
Posts: 8
Joined: Fri Jul 27, 2007 9:21 pm

Re: ActionScript 2 3D Classes

Postby vamapaull » Tue Jan 29, 2008 11:10 pm

very interesting stuff
great work ;)
User avatar
vamapaull
 
Posts: 4292
Joined: Mon Mar 13, 2006 11:31 am
Location: Bucharest, Romania
Flash Version: Adobe Flash CS5.5
Authoring Environment: Microsoft Windows

Re: ActionScript 2 3D Classes

Postby can_dyman » Wed Jan 30, 2008 3:06 am

Thanks!
Just realized that i should post this in a shared content - not in AS2 questions. :)
can_dyman
 
Posts: 8
Joined: Fri Jul 27, 2007 9:21 pm

Re: ActionScript 2 3D Classes

Postby chuckleton94 » Wed Jan 30, 2008 3:18 am

Cool class :D . I'll be sure to try it out soon.

can_dyman wrote:Just realized that i should post this in a shared content - not in AS2 questions. :)


I'm sure one of the mods or admins will move it to the appropriate place once they find it. ;)
Could this be the end of Kenny 3000?
User avatar
chuckleton94
 
Posts: 301
Joined: Tue Aug 21, 2007 1:11 am
Location: St. Thomas, Ontario, Canada
Flash Version: Adobe Flash CS5.5
Authoring Environment: Microsoft Windows

Re: ActionScript 2 3D Classes

Postby mikehins » Wed Jan 30, 2008 3:52 am

Hey that's great, especially on your own site, I really love the effetcs of the pictures on the right side, I wish I could learn to do that... Great work !!
User avatar
mikehins
 
Posts: 61
Joined: Fri Nov 10, 2006 2:47 am

Re: ActionScript 2 3D Classes

Postby scheinarts » Wed Jan 30, 2008 5:11 am

hey that's really awesome... its great for learning how the math works and the classes are pretty easy to understand... i gotta play with this now... thanks man

Question... What did you use to make the 3d gallery on your own site? pv3d or this as2 class?
User avatar
scheinarts
 
Posts: 624
Joined: Thu May 03, 2007 4:32 am
Location: Panama City

Re: ActionScript 2 3D Classes

Postby can_dyman » Wed Jan 30, 2008 12:57 pm

I used Chaotic3D class from AS2 package: com.candymandesign.Dimension.Chaotic3D and com.candymandesign.Dimension.Chaotic3DEvents

Just realized that i should update the Chaotic3DEvents class. You have the old one but you can have the same effect with this:

Code: Select all
import com.candymandesign.Dimension.Chaotic3D;
import com.candymandesign.Dimension.Chaotic3DEvents;

var clips:Array = new Array();
var numOfItems:Number = 15; //number of clips

for(var i:Number = 0; i < numOfItems; i++)
{
   attachMovie("clip", "clip" + i, i+1) //clip is identifier from the libary
   var clip:MovieClip = this["clip" + i];
   clips.push(clip); //pushing the clip into the array
}

var chaos:Chaotic3D = new Chaotic3D(clips); //making 3D space of clips
chaos.toRandom(200,400,200,400); //random positions : toRandom(xMin, xMax, yMin, yMax);
chaos.render(); //rendering...

var chaosEvent:Chaotic3DEvents = new Chaotic3DEvents(chaos); //register Event
chaosEvent.clickAndDrag(true,true); //click and drag method clickAndDrag(x:Boolean, y:Boolean)



And thats it. You will have to click and drag to make it move - i will update event class so you will have some additional methods too.

Best!
can_dyman
 
Posts: 8
Joined: Fri Jul 27, 2007 9:21 pm

Re: ActionScript 2 3D Classes

Postby mikehins » Wed Jan 30, 2008 1:05 pm

Thanks to share! I'll try it and show you what I'll come up with !

cheers

mike
User avatar
mikehins
 
Posts: 61
Joined: Fri Nov 10, 2006 2:47 am

Re: ActionScript 2 3D Classes

Postby LoadLearn » Sat Feb 02, 2008 4:24 am

can_dyman wrote:
It is written in AS2 and i think it is really easy to use.


From your Blog: This whole thing was written in AS2 and it will work with Flash 8.


Looks really nice.... but since its AS2, it could reach alot greater user base if it was saved Flash 8 FLA Files. Could you please resave the files as Flash 8 FLA's for those of use that do not have CS3, please! Again it looks really nice! Thanks for sharing!

EDIT: actually it looks like so far the "CubeMaterial" and "Square3DMaterial" are CS3 the other two open in Flash 8, it would be great if you could save back those two and also consider saving as Falsh 8 in the future, please. Thanks again!
LoadLearn
 
Posts: 45
Joined: Thu Mar 01, 2007 12:17 pm

Re: ActionScript 2 3D Classes

Postby p1ner0 » Sat Feb 02, 2008 11:59 am

Great work Mirko , thanks for sharing !!!


///off topic
Pozdrav iz Makedonije ;)
///
p1ner0
 
Posts: 137
Joined: Sat Jun 10, 2006 8:08 pm
Location: SKopje-Macedonia

Re: ActionScript 2 3D Classes

Postby can_dyman » Tue Feb 12, 2008 11:03 pm

@loadLearn:::::::
***updated for flash 8 - (sorry about that). You will find one more example using Plane class one my blog.http://candymandesign.blogspot.com.


/*


@p1ner0::::

pozdrav!!!! :) Bas sam bio sam u Ohridu prosle godine!!! Prelepo!

*/

::::::::Mirko::::::::
can_dyman
 
Posts: 8
Joined: Fri Jul 27, 2007 9:21 pm

Re: ActionScript 2 3D Classes

Postby bienchi » Fri Mar 16, 2012 2:46 am

HI, it looks like the 3D class I am looking for. Any chance you can upload de plane example again? the download link is broken.
Nice Work!
Kind Regards,
bienchi
 
Posts: 1
Joined: Fri Mar 16, 2012 2:43 am
Flash Version: Adobe Flash CS5.5


Return to Shared User Content

Who is online

Users browsing this forum: No registered users and 1 guest

cron