List Info

Thread: asigning castmember to sprite




asigning castmember to sprite
user name
2005-12-19 15:23:49

----- Original Message ----- 
From: "nik crosina" <ncrosinagmail.com>

> Noisecriminal,
> I thought of that but I must have a very blond moment
here, but ....
> you mean by doing e.g.
>
> libScript = castLib("scripts"), then just
letting the 'language'
> sprites pick 'their' members out of the cast in the
normal way as they
> would be otherwise? Sounds great - will try tha as
well.

Yeah thats the basic idea, but its been ages since I
actually did this so I 
can't give exact instructions.

I think essentially using this should work
castLib(whichCast).fileName =
"c:/filename_of_cast"

However it gets slightly more complex if you want to do this
efficently or 
in shockwave.
By that I mean if your langauge casts are large (filesize)
you don't want to 
download the default cast only for the user to select the
other langauge and 
wait to download that cast. Then there is the download or
preloadnetthing to 
deal with too.

With swapping casts as long as the members are in the same
cast slot in both 
langauge casts then which ever cast is loaded those members
will appear in 
the sprites.

Its not really that complicated, just requires a bit of
experimentation your 
end to work out the best method. However swapping casts in
this fashion is 
one of the benifits of Director.


Noisecrime 2005
http://www.noisecrime.com 


_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )