--- In [email protected], "tyombria" <[EMAIL PROTECTED]> wrote:
>
> Hi, all.
> 
> Method 'getClassByName' works correctly only with adobe classes.
> For example, getClassByName('flash.net.URLLoader') works fine.
> 
> I've got a problem with my custom classes.
> For example:
> var myClassReference:MyClass = getClassByName('myPackage.MyClass');
> I get error:
> Error #1065: Variable MyClass is not defined.
> 
> Class exists in classpath or in the library.
> 
> If i put somewhere inside declaration block: var myClass:MyClass
> It (getClassByName) works fine.
> 
> Is it a bug?
>

in stroke var myClassReference:MyClass = ...
must be var myClassReference:Class, of course...





--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to