Hi Ian
Change your behaviour a bit
property p_Int_NetID
on mouseUp( me )
if ilk( p_Int_NetID, #VOID ) then
p_Int_NetID = preloadNetThing( "@blahblah.cct" )
end if
end mouseUp
on exitFrame( me )
if ilk( p_Int_NetID, #Integer ) then
if netDone( p_Int_NetID ) then
if ( netError( p_Int_NetID ) = "Ok" ) then
castLib( someCastlib ).fileName = "@blahblah.cct"
castLib( someCastlib ).fileName = castLib( someCastlib
).fileName
the stageColor = the stageColor
else
alert "Net Error occurred while downloading" &&
"@blahblah.cct"
end if
p_Int_NetID = VOID
end if
end if
end exitFrame
-----------------
The lines:
castLib( someCastlib ).fileName = castLib( someCastlib ).fileName
the stageColor = the stageColor
should not be required, however sometimes director forgets some things, so forcing the
fileName =
the fileName should make director realize that the URL to the castLib has changed. the
stageColor =
the StageColor forces director to redraw the entire stage in case it doesn't think
that it has
really changed.
Try it on a low bandwidth machine with both lines in and then remove them one at a
time and see what
happens.
Throw the above behaviour on a test button and see if it downloads the cast. Note the
use of the "@"
symbol vs the moviePath or a manually typed URL.. it generally is safer to use the @
symbol and a
relative path vs a hardcoded url. Director likes it better in Shockwave.
Hope this helps
Sincerely
Mark R. Jonkman
[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!]