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 not found e.g

sk.sowhat.linuxPlayer.play4dogs.Test

but when I create instance in this way

new sk.sowhat.linuxPlayer.play4dogs.Test()

it is created!!! Can someone tell me why? I try all I know, add
imports and such but nothing
help me. Im stuck on this for 8 hours now :( and i have to find solution

Please help :)

Maybe you can try it on your own projects, if it will find your classes

Thank you



import sk.sowhat.linuxPlayer.Application;
import sk.sowhat.linuxPlayer.play4horses.*;
import sk.sowhat.linuxPlayer.Screen;


var c = []
c.push("sk.sowhat.linuxPlayer.Application")
c.push("sk.sowhat.linuxPlayer.HelperFunctions")
c.push("sk.sowhat.linuxPlayer.Screen")
c.push("com.franto.ria.screen.Screen")
c.push("sk.sowhat.linuxPlayer.ScreenEffects")
c.push("sk.sowhat.linuxPlayer.ScreenInfoBanner")
c.push("sk.sowhat.linuxPlayer.ScreenVideo")

c.push("sk.sowhat.linuxPlayer.play4horses.Application")
c.push("sk.sowhat.linuxPlayer.play4horses.ScreenInfoBanner")
c.push("sk.sowhat.linuxPlayer.play4horses.ScreenSingle")
c.push("sk.sowhat.linuxPlayer.play4horses.ScreenAds")
c.push("sk.sowhat.linuxPlayer.play4horses.ScreenMultiBets")
c.push("sk.sowhat.linuxPlayer.play4horses.ScreenManager")

c.push("sk.sowhat.linuxPlayer.play4dogs.Application")
c.push("sk.sowhat.linuxPlayer.play4dogs.Test")
c.push("sk.sowhat.linuxPlayer.play4dogs.ScreenInfoBanner")
c.push("sk.sowhat.linuxPlayer.play4dogs.ScreenManager")

new sk.sowhat.linuxPlayer.play4dogs.Test();

for (var i in c)
{
        screenClass = c[i];
        var newClass:Function = mx.utils.ClassFinder.findClass(screenClass);
        if (newClass == undefined)
        {
                trace("new class["+screenClass+"]: " + newClass);
        }
}



Franto

http://blog.franto.com
http://www.flashcoders.sk
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to