Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

:: re using behaviors ::

Status
Not open for further replies.

MaTs4d

Technical User
Feb 13, 2002
48
US
is there any benefit in file size when re using behaviors ? or is the code optimized as well?
say I have 1000 images and they all use the same fade/in behavior. .is it better to keep reusing one from the library or import a new fade/in behavior tothe library eery time??

im making some tests here


thanks !

Matt
 
You need to have only one copy of the behaviour in your cast and you can have 'n' number of copies of that behaviour attached to sprites. So you need not drag and drop from the lib directly to the stage. Just drag and keep in the cast and then apply it to all your 1000 images. At runtime Director automatically will create 1000 different instances of the behaviour and they will work independently of the others.

HTH

Mayuresh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top