Re: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
I m in AS 1,2 yet. But I guess maybe it cuz of font not embeded or text field width height not specifeid? On 2/13/07, August Gresens [EMAIL PROTECTED] wrote: Hello I'm trying to use an mx.controls.TextArea in my ActionScript 3.0 project. var textArea:TextArea = new TextArea(); textArea.text = foo; addChild(textArea); Nothing shows up - I suspect there is more to using flex controls in an AS3 project. Can anyone point me to some info about this? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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 -- -Arseniy Shklyaev ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
Please post a solution if you ever figure it out. I was trying the same thing with Radio Buttons and finally gave up after a few hours. I did figure out that you need to reference the framework.swc and framework_rb.swc in the build library for Flex Builder 2 to find the classes but I'm guessing there's more to it because while my code compiled error free, I never did get to see the controls on stage. -- James Arseniy Shklyaev wrote: I m in AS 1,2 yet. But I guess maybe it cuz of font not embeded or text field width height not specifeid? On 2/13/07, August Gresens [EMAIL PROTECTED] wrote: Hello I'm trying to use an mx.controls.TextArea in my ActionScript 3.0 project. var textArea:TextArea = new TextArea(); textArea.text = foo; addChild(textArea); Nothing shows up - I suspect there is more to using flex controls in an AS3 project. Can anyone point me to some info about this? Thanks, August ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
Where is this code placed? On 2/13/07, August Gresens [EMAIL PROTECTED] wrote: Hello I'm trying to use an mx.controls.TextArea in my ActionScript 3.0 project. var textArea:TextArea = new TextArea(); textArea.text = foo; addChild(textArea); Nothing shows up - I suspect there is more to using flex controls in an AS3 project. Can anyone point me to some info about this? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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 -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
The code is in a class extending Sprite.. The Sprite is in the display list because there are bunch of graphics (bitmaps and such) that I'm adding using addChild right next to it and these are showing up... Thanks, A On 2/13/07, T. Michael Keesey [EMAIL PROTECTED] wrote: Where is this code placed? On 2/13/07, August Gresens [EMAIL PROTECTED] wrote: Hello I'm trying to use an mx.controls.TextArea in my ActionScript 3.0project. var textArea:TextArea = new TextArea(); textArea.text = foo; addChild(textArea); Nothing shows up - I suspect there is more to using flex controls in an AS3 project. Can anyone point me to some info about this? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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 -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com 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 -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
Are you doing this in the Flash 9 preview IDE or Flexbuilder 2? If you're in Flash, make sure you have a TextArea component in your library. Jason Merrill Bank of America Learning Organizational Effectiveness -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of August Gresens Sent: Tuesday, February 13, 2007 12:33 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project The code is in a class extending Sprite.. The Sprite is in the display list because there are bunch of graphics (bitmaps and such) that I'm adding using addChild right next to it and these are showing up... Thanks, A On 2/13/07, T. Michael Keesey [EMAIL PROTECTED] wrote: Where is this code placed? On 2/13/07, August Gresens [EMAIL PROTECTED] wrote: Hello I'm trying to use an mx.controls.TextArea in my ActionScript 3.0project. var textArea:TextArea = new TextArea(); textArea.text = foo; addChild(textArea); Nothing shows up - I suspect there is more to using flex controls in an AS3 project. Can anyone point me to some info about this? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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 -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com 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 -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
I'm using Flex, with an ActionScript project. I added the libraries to the source path. This is not the issue, because it wouldn't have compiled if it couldn't find the classes. Thanks, A On 2/13/07, Merrill, Jason [EMAIL PROTECTED] wrote: Are you doing this in the Flash 9 preview IDE or Flexbuilder 2? If you're in Flash, make sure you have a TextArea component in your library. Jason Merrill Bank of America Learning Organizational Effectiveness -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of August Gresens Sent: Tuesday, February 13, 2007 12:33 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project The code is in a class extending Sprite.. The Sprite is in the display list because there are bunch of graphics (bitmaps and such) that I'm adding using addChild right next to it and these are showing up... Thanks, A On 2/13/07, T. Michael Keesey [EMAIL PROTECTED] wrote: Where is this code placed? On 2/13/07, August Gresens [EMAIL PROTECTED] wrote: Hello I'm trying to use an mx.controls.TextArea in my ActionScript 3.0project. var textArea:TextArea = new TextArea(); textArea.text = foo; addChild(textArea); Nothing shows up - I suspect there is more to using flex controls in an AS3 project. Can anyone point me to some info about this? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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 -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com 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 -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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 -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
Try the Flexcoders list @ Yahoo. Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
Below is my test class of trying to pragmatically add a set of radio buttons to an ActionScript 3.0 project. Do you see anything I may have done incorrectly? When I run it, I don't get any compile errors but I also don't see any radio buttons. -- James package { import flash.display.Sprite; import flash.events.MouseEvent; import mx.controls.RadioButton; import mx.controls.RadioButtonGroup; public class TestRadioGroup extends Sprite { private var _group:RadioButtonGroup; private var _radio1:RadioButton; private var _radio2:RadioButton; public function TestRadioGroup() { // radio group _group = new RadioButtonGroup(); _group.addEventListener(MouseEvent.CLICK, onRadioClick); // first radio _radio1 = new RadioButton(); _radio1.label = One; _radio1.group = _group; addChild(_radio1); // second radio _radio2 = new RadioButton(); _radio2.label = Two; _radio2.group = _group; addChild(_radio2); } public function onRadioClick(event:MouseEvent):void { var rbg:RadioButtonGroup = (event.target as RadioButtonGroup); trace (rbg.selection); } } } T. Michael Keesey wrote: Where is this code placed? On 2/13/07, August Gresens [EMAIL PROTECTED] wrote: Hello I'm trying to use an mx.controls.TextArea in my ActionScript 3.0 project. var textArea:TextArea = new TextArea(); textArea.text = foo; addChild(textArea); Nothing shows up - I suspect there is more to using flex controls in an AS3 project. Can anyone point me to some info about this? Thanks, August ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
JOR wrote: Below is my test class of trying to pragmatically add a set of radio buttons to an ActionScript 3.0 project. Do you see anything I may have done incorrectly? When I run it, I don't get any compile errors but I also don't see any radio buttons. If memory serves, in Flex, the application root should be used as the parent container for UIComponent or its extensions and UIComponent or an extension should be used as the primary display container ... or something like that. Everything I say is true, modulo something :) I think there is a good blog post on this somewhere; I'll look it up. In the mean time, a quick and minimal hack (and I do mean hack), ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 creationComplete=TADemo.Main(this) /mx:Application package { import mx.controls.TextArea; // simple TextArea Demo public class TADemo { private var __textArea:TextArea; public function TADemo(_parent:Object) { __textArea= new TextArea(); __textArea.width = 200; __textArea.height = 20; __textArea.x = 10; __textArea.y = 10; __textArea.text = This is a test; _parent.addChild(__textArea); } public static function Main(_myRoot:Object):void { var instance:TADemo = new TADemo(_myRoot); } } } Here is an example using a custom CheckBox class that dynamically draws a check box thingy and uses a TextField for the label. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 creationComplete=display() mx:Script ![CDATA[ public function display():void { import mx.core.UIComponent; var __cBox:CheckBox = new CheckBox(Click Me); var __myReference:UIComponent = new UIComponent(); addChild(__myReference); __myReference.addChild(__cBox); } ]] /mx:Script /mx:Application The CheckBox class extends Sprite. It contains an icon (instance of another class that draws the check box icon) and a label. After creating these elements, the constructor calls addChild(__icon); addChild(__label); Haven't had my afternoon coffee, so I hope this helps more than confuses! - jim -- Singularity Flash :: Flex :: Math :: www.2112fx.com/blog TechNotes Computational Geometry :: www.2112fx.com/technotes.html ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-July/169075.html Curious to know if anyone has actually done it, but it sounds like it's, at the very least, not straightforward. Any reason why you don't want to set it up as an mxml project? Phil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of August Gresens Sent: Tuesday, February 13, 2007 7:14 AM To: Flashcoders mailing list Subject: SPAM-LOW: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project Hello I'm trying to use an mx.controls.TextArea in my ActionScript 3.0 project. var textArea:TextArea = new TextArea(); textArea.text = foo; addChild(textArea); Nothing shows up - I suspect there is more to using flex controls in an AS3 project. Can anyone point me to some info about this? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project
Related to the suggestion of using an application MXML tag that Mike Chambers suggested in that post, Ted Patrick recently posted an article in his blog on Code Behind in Flex 2: http://www.onflex.org/ted/ Jason Merrill Bank of America Learning Organizational Effectiveness -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Chung Sent: Tuesday, February 13, 2007 5:56 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project http://chattyfig.figleaf.com/pipermail/flashcoders/2006-July/1 69075.html Curious to know if anyone has actually done it, but it sounds like it's, at the very least, not straightforward. Any reason why you don't want to set it up as an mxml project? Phil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of August Gresens Sent: Tuesday, February 13, 2007 7:14 AM To: Flashcoders mailing list Subject: SPAM-LOW: [Flashcoders] using mx.controls package in an Actionscript 3.0 Project Hello I'm trying to use an mx.controls.TextArea in my ActionScript 3.0 project. var textArea:TextArea = new TextArea(); textArea.text = foo; addChild(textArea); Nothing shows up - I suspect there is more to using flex controls in an AS3 project. Can anyone point me to some info about this? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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