<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Hi there,</div><div><br class="webkit-block-placeholder"></div><div>last month I post an idea for a tween library structure for "go-tweens".</div><div><br class="webkit-block-placeholder"></div><div>Now I post some classes and would like to know from you if that is a good idea and maybe could work for a library anyone can quickly use, expand and share tweens.</div><div>I have not tested it yet with sequencing and performance. </div><div><br class="webkit-block-placeholder"></div><div>Here some code form the example to show how parameters are passed</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span> </div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>// pre-define parameters with the value objects. can be usefull if there are a lot of parameters or for often used animation settings</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>var startFormatVo : TextFormatVO = new TextFormatVO();</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>startFormatVo.size = 1;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>startFormatVo.letterSpacing = 50;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>startFormatVo.leading = 10;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>var endFormatVo : TextFormatVO = new TextFormatVO();</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>endFormatVo.size = 25;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>endFormatVo.letterSpacing = 3;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>endFormatVo.leading = 15;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>group = new PlayableGroup();</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>// if startvalue is null, the tween takes the instance parameters</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>group.addChild(new ClipTween(textField, null, {alpha:1}, 0, .4, Linear.easeIn));</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>// start and endvalues as objects, most common and quick use...</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>group.addChild(new ClipTween(textField, {y:200}, {y:50}, 0, 1, Bounce.easeOut));</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>// start and endvalues predefined with value objects</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>group.addChild(new TextFormatTween(textField, startFormatVo, endFormatVo, 0, 1, Bounce.easeOut));</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>// start defined inline with the value object, endvalue defined with a DropShadowFilter ( returned from the function endFilter() ). Only the tweenable values of the valueobject will be used</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>group.addChild(new DropShadowTween(textField, new DropShadowVO(10, 50, 0x000000, 1, 50, 45, 20), endFilter(), 0, 1, Linear.easeNone));</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div><br class="webkit-block-placeholder"></div><div>It's build upon Moses Tween-example plus ValueObject classes to define the tweenable parameters. </div><div>Try the example and let me know what you think...</div><div><br></div><div>Ehm, and can anybody tell me how to answer to a specific post. I only can open a new thread via <a href="mailto:golist@goasap.org">golist@goasap.org</a> - hm, i know it's easy...:-)</div><div><br class="webkit-block-placeholder"></div><div>Greetings!</div><div><br class="webkit-block-placeholder"></div><div>karsten</div><div></div></body></html>