*laughs*... as soon as I pushed send... it hit me... RadioButton isn't being compiled into the app...

I created a var in my app and gave it a type of RadioButton nad voila' ... insto RadioButton...

private var dummyRadio:RadioButton;


On 7/11/06, Clint Modien <[EMAIL PROTECTED]> wrote:
resurecting this thread because I'm having problems using getDefinitionByName

when I try and create controls that I've written they don't get created at all...

when I try and create some controls in the mx.controls namespace I'm getting an error...

RadioButton, Tree are both...

ReferenceError: Error #1065: Variable RadioButton is not defined.
    at global/flash.utils::getDefinitionByName()
    at com.kodakgallery.cards.view.state::DeferredInstanceFactory/getInstance ()[C:\usr\Source\proj\wedge-proj-main\site\apps\im\src\flash\DesignProject\com\kodakgallery\cards\view\state\DeferredInstanceFactory.as:57]
    at mx.states::AddChild/createInstance()[C:\dev\GMC\sdk\frameworks\mx\states\AddChild.as:339]
    at mx.states::AddChild/initialize()[C:\dev\GMC\sdk\frameworks\mx\states\AddChild.as:351]
    at mx.states::State/http://www.adobe.com/2006/flex/mx/internal::initialize()[C:\dev\GMC\sdk\frameworks\mx\states\State.as:197]
    at mx.core::UIComponent/mx.core:UIComponent::initializeState()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:6627]
    at mx.core::UIComponent/mx.core:UIComponent::commitCurrentState()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:6425]
    at mx.core::UIComponent/mx.core:UIComponent::creationCompleteHandler()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7808]
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction ()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/set initialized()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:1161]
    at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation ()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:687]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789]
    at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732]




On 7/4/06, Clint Modien <[EMAIL PROTECTED]> wrote:

From an earlier post by Gordon Smith from Adobe…

 

import flash.utils.getDefinitionByName;

var buttonClass:Class = Class(getDefinitionByName("mx.controls.Button"));

var b:Button = new buttonClass();

 

 

Clint Modien

http://esria.com
p. 1.877.TRY.ESRIA ext 706

c. 1.408.489.0750

f. 1.877.828.4436

[EMAIL PROTECTED]

 

 

 

 

 

 

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of jpwarmer
Sent: Tuesday, July 04, 2006 11:35 AM
To: [email protected]
Subject: [flexcoders] Getting classes by name

 

is there some way to obtain an ActionScript Class by name???
Something similar to Java Class.byName("myPackage.MyClass")???



__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to