ok it's something to do with bulkloader, I let it go from here :)
thanks
L

laurent a écrit :
even if I delete map.swf it's still loading it.

[BulkLoader] Loaded LoadingItem url: http://localhost:2000/?action=map, type:xml, status: finished [BulkLoader] Items to load LoadingItem url: http://localhost:2000/swf/map.swf, type:movieclip, status: null [BulkLoader] Will load item: LoadingItem url: http://localhost:2000/swf/map.swf, type:movieclip, status: null [BulkLoader] Started loading LoadingItem url: http://localhost:2000/swf/map.swf, type:movieclip, status: started
Opening one: 1
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
   at client.sitc::Map()[D:\dev\as3lib\client\sitc\Map.as:24]



laurent a écrit :
that's great, it fixes the compile time issues. Good to know that.

Now, I know it can be anything now as the bug is really strange. For line 24, actually there's a braket there so...

It looks like it's loading always the same swf, I emptied the cache, deleted the http://localhost:2000/swf/map.swf, rebuild it. Still same 24 line error...I know you might not be able to solve that, without coming to my office, but in any case I show it here.

Thank you so far
Laurent


laurent a écrit :
Ian Thomas a écrit :
I suspect this is a compile-time issue - your loading SWF has no idea
what 'Paris' means when trying to compile?

Yes, I mean france.Paris, maybe the compiler thinks its usa.Paris ... :)
In which case you need to pick it up at runtime.

Try flash.system.ApplicationDomain.currentDomain.getDefinition()

e.g.

var myClass:Class=ApplicationDomain.currentDomain.getDefinition("Paris")
as Class;

var myObject:Object=new myClass();
addChild(myObject);
I'm gonna try that
Alternatively, you might need to access the applicationDomain of the
Loader instead (I've no idea how you're loading the SWF). You could
try:

var myClass:Class=myLoader.contentLoaderInfo.applicationDomain.getDefinition("Paris")
as Class;
and maybe that and then Boudisme....I'm using Bulkloader.
Thank you guys!
Laurent
HTH,
   Ian

On Mon, Mar 9, 2009 at 1:01 PM, Eric E. Dolecki <[email protected]> wrote:
Are you sure the swf is loaded before trying to instantiate the class?

On Mon, Mar 9, 2009 at 8:47 AM, laurent <[email protected]> wrote:

Hi,

I have a map.swf containing a linked movie clip named Paris as a exported
Class.

I load this map from another swf. The problem that occure in different ways
is that the loading swf don't recognise the Paris definition:
1046: Type was not found or was not a compile-time constant: Paris. // this
is for definition : public var view : Paris;
1180: Call to a possibly undefined method Paris. // this is for
instantiation: view = new Paris();

I don't know what to do, except putting that Paris map directly on stage to
avoid linkage.

thx
Laurent
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--
http://ericd.net
Interactive design and development
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



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



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



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



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

Reply via email to