Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Sprite generation
Play/ Pause/ Stop/ Rewind a Flash Sprite
MouseWheel
DirectMedia Xtra 2
base64 encode/decode v1.2
W3D Texture Extractor
PopUp Menu Behavior
xTray xtra
Popup Text List Menu
Drop Shadow Static-Alphamania
 

 

 

Behavior Scale Vertexlist

Added on 2/7/2006

 

Compatibilities:
D8 D8_5 D9 Mac PC

This item has not yet been rated

Author: Chunick (website)

This custom handler will scale a vertex list directly. The power of it is demonstrated if you have ever tried the generateOutlines() undocumented command with a font member. It works in conjunction with this method to get around the size limiation all vectorshapes have because generateOutlines() returns a vertexList which is not affected by the limitation (only the member is). So, if you scale the vertexList first then you can set it to a vector shape member.

on scaleVectorShape vertList, vScale
  vScale = vScale / 100.0
  vertList = vertList * vScale
  aItem = [#newCurve] * vScale
  
  repeat while True
    vertList[vertList.getOne(aItem)] = [#newCurve]
    if vertList.getOne(aItem) = 0 then exit repeat
  end repeat
  
  return vertList
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail