0
I Use This!
Activity Not Available

Project Summary

Shape GeneratorWelcome to the page of the Shape Generator Project.

This class provides an easy way to generate regular polygons and animate them using tweens.

Terms of useYou can freely use this class, and modify it, and share it, but you must share it with the same restrictions. If you want to use it for some commercial project, please contact me before (e-mail at the end of this page). Thanks.

Why this class ?I made this class because sometimes we need perfect regular polygons for our flash animations, and because it is kinda hard to make it using the drawing tools.

How to use it.First, create a new Action Script 2 project.

Save your file inside a folder for your project.

Then download the Shape.as file.

You can find it here

Now inside your project folder, create a folder called nirahiel, containing a folder called graphic and finally this one containing the Shape.as

Do not rename or move the Shape.as file !

Ok, now we are gonna add some code.

import nirahiel.graphic.Shape; //import the class
var clip = createEmptyMovieClip("clip",getNextHighestDepth()); //create a new clip
var shape = new Shape(clip);//make the shape
clip._x = clip._y = 200;//move the clip so we will see it on the stage ;)
shape.rayon = 100;//a really big ...
shape.faces = 4;//... square
shape.build();//now render the shape.After each modification of the shape you can shape.build() it again to apply the changes, or, if you're gonna edit it several times, activate the auto-build shape.start() and then , desactivate it shape.stop()

For any suggestion, feel free to contact me at :

GMdebbyatgmaildotcom (PS : I'm a guy, don't mind the girly name)

Tags

actionscript2 class flash polygon shape

In a Nutshell, shape-generator-as2...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Artistic License/GPL
Permitted

Commercial Use

Modify

Distribute

Forbidden

Hold Liable

Use Trademarks

Required

State Changes

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    data presented on the Open Hub is available through our API
  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    by exploring contributors within projects, you can view details on every commit they have made to that project

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis