Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-05 Thread Jim Kremens
ClassFinder is basically that, but not using eval. You're right, it's the same. You can just use your own, as I do. I only mentioned ClassFinder because it was referenced in the thread. Jim Kremens On 2/5/06, Tyler Wright <[EMAIL PROTECTED]> wrote: > > Then you can use classfinder to instantia

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-04 Thread Tyler Wright
> Then you can use classfinder to instantiate them dynamically. I've never seen an mx.utils.ClassFinder ... is it part of the vs. 2 component set they shipped with MX'04 ? All packages and classes are defined on the _global scope. Vs. 2 componets' EventDispatcher, if included in your swf, can b

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-03 Thread Jim Kremens
found having the > code available in a src folder works better for us than a swf. > > Grant. > > - Original Message - > From: Cedric Muller [EMAIL PROTECTED] > To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com > Sent: 2/3/06 3:26 AM > Subject: Re: [Fla

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-03 Thread grant
c Muller [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: 2/3/06 3:26 AM Subject: Re: [Flashcoders] mx.utils.ClassFinder.findClass problem > grant, how do you make your classes as shared libraries (for example > making fx.swf provide the rest of the app w

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-03 Thread grant
- > > From: Cdric_Muller [EMAIL PROTECTED] > > To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com > > Sent: 2/2/06 7:18 AM > > Subject: Re: [Flashcoders] mx.utils.ClassFinder.findClass problem > > > > > but please, remember that this is a Flash

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-03 Thread Cedric Muller
Subject: Re: [Flashcoders] mx.utils.ClassFinder.findClass problem but please, remember that this is a Flash Hack with a lot of whack and crack :) you're welcome! cedric This works Cedric, thank you very much :) All of you On 2/2/06, Cédric Muller wrote: in your .as file (main class, or classesManger,...) you c

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-03 Thread franto
lashcoders@chattyfig.figleaf.com > Sent: 2/2/06 7:18 AM > Subject: Re: [Flashcoders] mx.utils.ClassFinder.findClass problem > > > but please, remember that this is a Flash Hack with a lot of whack > > and crack :) > > you're welcome! > > cedric > > > > &

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread grant
Sent: 2/2/06 7:18 AM Subject: Re: [Flashcoders] mx.utils.ClassFinder.findClass problem > but please, remember that this is a Flash Hack with a lot of whack > and crack :) > you're welcome! > cedric > > > This works Cedric, thank you very much :) > > All of y

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Cédric Muller
but please, remember that this is a Flash Hack with a lot of whack and crack :) you're welcome! cedric This works Cedric, thank you very much :) All of you On 2/2/06, Cédric Muller <[EMAIL PROTECTED]> wrote: in your .as file (main class, or classesManger,...) you can simply put references to

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread franto
This works Cedric, thank you very much :) All of you On 2/2/06, Cédric Muller <[EMAIL PROTECTED]> wrote: > in your .as file (main class, or classesManger,...) you can simply > put references to the classes you will/should use ... > > I did it once the following way: > > /** > * setPackagesTo

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Cédric Muller
in your .as file (main class, or classesManger,...) you can simply put references to the classes you will/should use ... I did it once the following way: /** * setPackagesToImport * fake method, never gets called. just here for 'import' + reference purposes * */ private function setP

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread franto
yes, new class[sk.sowhat.linuxPlayer.play4dogs.ScreenManager]: undefined new class[sk.sowhat.linuxPlayer.play4horses.ScreenSingle]: undefined new class[sk.sowhat.linuxPlayer.Screen]: undefined Classes found: 15 Classes not found: 3 I try to look into that classes, but i dont find nothing strange

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Cédric Muller
do you know which ones weren't found (the 3 classes) ? but Ian, why it find other classes, i dont instantiate any of class, that code you can see in email is everything, and it has found 15 classes, but 3 doesnt find Classes found: 15 Classes not found: 3 Why? On 2/2/06, Ian Thomas <[EMAIL PR

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread franto
Yes it works var dummyVar:Function=sk.sowhat.linuxPlayer.play4dogs.Test; (with no import) this is not problem but i create instance dynamicly, i got string in XML "sk.sowhat.linuxPlayer.play4dogs.Test" and i need create instance, but application doesnt know which classes will be instantiated, so

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread franto
but Ian, why it find other classes, i dont instantiate any of class, that code you can see in email is everything, and it has found 15 classes, but 3 doesnt find Classes found: 15 Classes not found: 3 Why? On 2/2/06, Ian Thomas <[EMAIL PROTECTED]> wrote: > Hi Franto, > > As far as I understand i

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Martin Wood
or just import com.whatever.Foo; var foo:Foo; no need for the :Function, or the assignment. martin Ian Thomas wrote: Whoops - I'm being dim. These will work just as well: import sk.sowhat.linuxPlayer.play4dogs.Test; var dummyVar:Function=Test; or var dummyVar:Function=sk.sowhat.linuxPlaye

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Ian Thomas
Whoops - I'm being dim. These will work just as well: import sk.sowhat.linuxPlayer.play4dogs.Test; var dummyVar:Function=Test; or var dummyVar:Function=sk.sowhat.linuxPlayer.play4dogs.Test; (with no import) Ian On 2/2/06, Ian Thomas <[EMAIL PROTECTED]> wrote: > > Hi Franto, > > As far as I und

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Cédric Muller
because you call it directly new sk.whatever.linux.AClass() calls the class directly, as you specify the path, it doesn't need to import it before ... another way would be to: import sk.whatever.linux.AClass; var myAClass = new AClass(); would work too ... now regarding your idea, if y

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Ian Thomas
Hi Franto, As far as I understand it, 'import' isn't enough to get a class compiled into your .swf. The line: import sk.sowhat.linuxPlayer.play4dogs.Test; just tells the compiler that any mention of the word Test in your code will refer to that class. If the class isn't compiled into the SWF, Cl

[Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread franto
Can someone explain me this? Im using mx.utils.ClassFinder.findClass to find class and make instance from it but some classes it cant find, it's not just problem of "mx.utils.ClassFinder.findClass" im using another way to create dynamic class (as I wrote yesterday to the list) but same classes are