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
> 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
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
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
-
> > 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
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
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
> >
> > &
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
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
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
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
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
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
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
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
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
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
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
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
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
20 matches
Mail list logo