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 706c. 1.408.489.0750
f. 1.877.828.4436
![]()
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
![]()
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] Getting classes by name Clint Modien
- Re: [flexcoders] Getting classes by name Clint Modien
Reply via email to


