Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Color Cycle-Alphamania
Push Dial-Alphamania
Set Linked Property of a Flash member
Tic Tac Toe
UltimateNet Xtra
Twain Xtra
Scroll Text With Mouse
Lingo and Shockwave Sourcebook
Flash sending messages to Director
Odd levels cause audio to play incorrectly
MediaMacros Xtras Mall
 

 

 

Behavior Vector Shape - Create Ellipse

Added on 2/7/2006

 

Compatibilities:
behavior D8 D8_5 D9 Mac PC

This item has not yet been rated

Author: Chunick (website)

Pass the custom handler a width and height and it will return a vertexList consisting of an elliptical shape to which you can set to a #vectorshape member type. The code can be used anywhere.

on createEllipse (aWidth, aHeight)
  rX = aWidth / 2.0
  rY = aHeight / 2.0
  rXk = rX * 0.552284749830794
  rYk = rY * 0.552284749830794
  vertList = [[#vertex: point(0, -rY), #handle1: point(rXk, 0), #handle2: point(-rXk, 0)], [#vertex: point(rX, 0), #handle1: point(0, rYk), #handle2: point(0, -rYk)], [#vertex: point(0, rY), #handle1: point(-rXk, 0), #handle2: point(rXk, 0)], [#vertex: point(-rX, 0), #handle1: point(0, -rYk), #handle2: point(0, rYk)]]
  
  return vertList

end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail