At 2:30 AM +0000 11/20/01, Ian Johnson wrote:
>I am preloading the cast (xxx.cct), obviously can't importfileinto so I'm
>just setting the castLib("product_external").fileName =
>"http://theserver.com/thedirectory/"; & gProdcast, where gProdcast is the new
>cast name.
>
>Is this the correct method? Most reference I can find is based on importing
>files into existing casts.
>

Hi Ian -

I don't understand your 'obviously can't' conclusion above.

Casts can be fresh-linked to a movie anytime you want.
You don't need a placeholder cast UNLESS you want the new members to 
replace the originals (& therefore their displayed sprites will swap 
to the new). This is the case for using set the filename.

So since Director doesn't have a Lingo command to make a new linked 
cast, one must coerce it through some trickery.

Here's the method:

-- after you know that the cast is local (preLoadNetThing, etc.)

x = new(#bitmap)
-- this makes a dummy placeholder member in an empty slot
x.importFileInto(thePathForTheNewCast)
-- for the web, this path = URL where it had been before downloading
-- this second statement will destroy the place holder & link the new cast

voil�

hope this trick is new for someone

-Buzz


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to