on mouseUp me
sprite(3).visible = false PreloadNetThingthe MoviePath & "second.cct")
Well I guess this is just a copy-typo, but the line above should read PreloadNetThing(the MoviePath & "second.cct")
castlib(2).filename = the MoviePath & "second.cct"
I think yourproblem might come from here : you're using the actlib "second.cct" although it isn't yet loaded (as you've started preloading on the previous line)
sprite(4).member.text = castlib(2).filename member("sp", 2).preload() sprite(3).puppet = true sprite(3).member = member("sp", 2) sprite(3).locH = 160 sprite(3).locV = 120 sprite(3).visible = true
end
You should split your code : a.) the trigger b.) the actual action
Like (not the best solution, but the shortest I have in mind right now)
property pnNetID
on mouseUp me sprite(3).visible = false pnNetID = PreloadNetThing(the MoviePath & "second.cct") end
on exitFrame me if voidP(pnNetID) then exit -- a preloading is in progress. Is it done? if not netDone(pnNetID) then exit -- in a complete script here I should check for net errors
-- preload is done, I should forget my netOp token pnNetID = VOID
castlib(2).filename = the MoviePath & "second.cct"
sprite(4).member.text = castlib(2).filename
member("sp", 2).preload()
sprite(3).puppet = true
sprite(3).member = member("sp", 2)
sprite(3).locH = 160
sprite(3).locV = 120
sprite(3).visible = true
end
Hope this helps, s�b [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
