Hey thanks man - that explains maybe why my AS3 code completion isn't working right in FlashDevelop.
Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf Of DannyT >>Sent: Thursday, March 22, 2007 7:43 PM >>To: [email protected] >>Subject: Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld >> >>Hi Jason, >> >>I wrote a simple tutorial for AS3 (and Flex2) in >>FlashDevelop, doesn't involve the FlashIDE but a good place >>to get started playing with AS3 and if you're interested in >>flex it covers the basics of that too. Also explains my setup >>for having an FD for AS2 and one for AS3. >> >>http://danny-t.co.uk/index.php/tutorials/free-flex2-developmen >>t-environment/ >> >>Hope it helps you or anyone. >> >>On 22/03/07, elibol <[EMAIL PROTECTED]> wrote: >>> >>> I should mention why I thought it was a width/height issue. >>> >>> UITextField and extending components (and some other components) in >>> the Flex framework initialize to a width/height of 0... It >>really took >>> me by surprise >>> >.< >>> >>> On 3/22/07, elibol <[EMAIL PROTECTED]> wrote: >>> > >>> > I see, >>> > >>> > You need to add HelloWorld to the main DisplayList. >>> > >>> > >>> > import MyPackage.* >>> > var hw:HelloWorld = new HelloWorld(); >>> > >>> > addChild(hw); >>> > >>> > On 3/22/07, elibol <[EMAIL PROTECTED]> wrote: >>> > > >>> > > Hi Jason, >>> > > >>> > > Try setting the width and the height of the Textfield. >>> > > >>> > > <http://www.pierinc.com> >>> > > >>> > > On 3/22/07, Merrill, Jason >><[EMAIL PROTECTED]> wrote: >>> > > > >>> > > > Getting my feet wet with AS3, I just bought the AS3 >>cookbook and >>> have >>> > > > learned a lot already - great book. I feel like an >>idiot asking >>> this >>> > > > as >>> > > > I'm pretty good in AS2, but with AS3, I'm not getting a simple >>> script >>> > > > working. I have the Flash 9 AS3 preview, trying to write a >>> > > > simple HelloWorld class (based on an example in the book) to >>> > > > show a >>> > > > TextField: >>> > > > >>> > > > //MyPackage.as >>> > > > package MyPackage >>> > > > { >>> > > > //do I actually need this one?: >>> > > > import flash.display.DisplayObjectContainer; >>> > > > >>> > > > import flash.display.Sprite; >>> > > > import flash.text.TextField; >>> > > > >>> > > > public class HelloWorld extends Sprite >>> > > > { >>> > > > public function HelloWorld() >>> > > > { >>> > > > var message_txt:TextField = >>new TextField(); >>> > > > message_txt.text = "Hello World"; >>> > > > addChild(message_txt); >>//does not show! >>> > > > trace("constructor runs")//traces fine >>> > > > } >>> > > > } >>> > > > } >>> > > > >>> > > > Then in the .fla, I put: >>> > > > >>> > > > import MyPackage.* >>> > > > var hw:HelloWorld = new HelloWorld(); >>> > > > >>> > > > The constructor traces fine in the output window, but the >>> > > > TextField does not show. What have I done wrong? My Export >>> > > > settings in F9 As3 preview are for AS 3.0 and FP9. In later >>> > > > scripts, I tried moving the textfield, changing the color, >>> > > > changing the stage color to be sure it wasn't matching the >>> > > > textfield and this invisible, etc...(but it should >>show as black >>> > > > Times New Roman text by default anyway...) >>> > > > >>> > > > Thanks, >>> > > > >>> > > > Oh, and as a side note, I use FlashDevelop 2.0.1 and have my >>> > > > syntax set to AS3, but have notices code hinting >>doesn't always >>> > > > work or is sometimes incomplete - has anyone else >>noticed that? >>> > > > Maybe I just need to update it. >>> > > > >>> > > > Jason Merrill >>> > > > Bank of America >>> > > > GT&O Learning & Leadership Development eTools & >>Multimedia Team >>> > > > >>> > > > >>> > > > >>> > > > _______________________________________________ >>> > > > [email protected] >>> > > > To change your subscription options or search the archive: >>> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> > > > >>> > > > Brought to you by Fig Leaf Software >>> > > > Premier Authorized Adobe Consulting and Training >>> > > > http://www.figleaf.com >>> > > > http://training.figleaf.com >>> > > > >>> > > >>> > > >>> > >>> _______________________________________________ >>> [email protected] >>> To change your subscription options or search the archive: >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> Brought to you by Fig Leaf Software >>> Premier Authorized Adobe Consulting and Training >>> http://www.figleaf.com >>> http://training.figleaf.com >>> >> >> >> >>-- >>http://danny-t.co.uk >>_______________________________________________ >>[email protected] >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com >> _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

