A while ago, I used this with good success, but it wasn't a piece of
cake to get it working.  Do you have the callback in the moviescript?
Are you passing correct values?  My callback is talking to a swf sprite,
so I was able to make a progress bar of my own custom artwork.

- Michael M.



-- this line got it going...
theResult = baCopyXFilesProgress(theAdditionalFolderSource,
theCopyFolderTo, "*.*", "IfNotExist", "Copying folder contents...",
"Cancel", 24)

-- my callback...
on baCopyProgressUpdate pct, thisFileName -- must be in movie script,
companion to baCopyFileProgress()
  if (gTools.pUserQuitCopying = FALSE) or (gTools.pUserQuitCopying =
VOID) then
    sprite(gTools.pSprites.pProgressSprite).slider.gotoAndStop(pct)
    updatestage  
    if _key.keyPressed(" ") then -- if user presses space bar, stop
copying
      baMsgBox("Copying process was stopped.", "Cancelled.", "OK",
"Stop", 1)
      gTools.pUserQuitCopying = TRUE -- boolean flag to signal to cease
copying multiple files.
      sprite(gTools.pSprites.pProgressSprite).visible = FALSE -- hide
progress bar from user
      sprite(gTools.pSprites.pProgressSprite).slider.gotoAndStop(1) --
rewind sprite
      updatestage
      return 1
    end if
  end if
End



I'm rolling my own dialog for bud api's xcopyprogress using the copy 
callback handler.

It works fine when buddy's dialog is  visible (flag value of 16) but 
doesn't copy anything when I add the CP_NODIALOG flag i.e. total flag 
value of 24.


[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!]

Reply via email to