tag:blogger.com,1999:blog-21598289427493591202024-03-13T10:28:44.452-07:00GOusable - Flash componentsGregoryhttp://www.blogger.com/profile/03343405239351453618noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-2159828942749359120.post-11416799143948453012009-04-08T09:45:00.000-07:002009-04-09T06:36:55.632-07:00Text2Curve AS3 releasedThis is <b>AS3 version</b> of <a href="http://gousable.com/flash/text2curve.html">Text2Curve Flash AS2 component</a> .<br />All the functionality and methods are the same.<br /><br /><b>Note:</b><br />Can be used as a component in Flash CS3 or later.<br />Resulting movie requires Flash Player 9 or later.<br /><br /><strong>What is different from AS2 version:</strong><br /><ul><li><b>Constructor</b> now accepts an object (was list of parameters in AS2).<br />Example:<br /><pre>var p_t2c:Object = { };<br />p_t2c.ut = "Hello, World!";<br />p_t2c.tFont = "Arial";<br />p_t2c.tSize = 18;<br />p_t2c.hexColor = 0xcc00cc;<br />p_t2c.ct = "arc_ellipse";<br />p_t2c.cp = { a:120, b: -1.5, c:0, d:0 };<br />p_t2c.showLine = true;<br />p_t2c.bc = null; <br />var my_t2c:Text2Curve = new Text2Curve(p_t2c);<br />addChild(my_t2c);</pre><br />Alternatively, you can pass nothing to constructor, then use properties to set desired parameters and <b>call redraw() method</b> after all.<br />Please see <a href="http://gousable.com/flash/t2c_docs/t2c_help/index.html">help files</a> for more info.<br /></ul><br /><br /><strong>Using Text2Curve AS3 in Flex</strong><br><br />The ZIP archive (that you purchase) contains MXP package to use with Flash IDE and also a SWC file. It's the same as included within MXP, just doesn't require you to unpack MXP.<br />Then do as recommended in this article (by C. Moock):<br /><a href="http://www.moock.org/blog/archives/000253.html">How to Use Flash CS3's V3 Components in Flex Builder</a>Gregoryhttp://www.blogger.com/profile/03343405239351453618noreply@blogger.com