Thomas:
So...lastIndexOf() is in MX2004?  I didn't think it actually had js
methods in it.  I only thought it was the *syntax* of js.  That's worth
a few bonus points.


Colin:
Forgive me, but I'm not sure what you mean by "reset of the message."
But here's what I did anyway, and for my purposes, this works.  It opens
a MIAW from a dir file with linked cast members by finding the dir used
for the MIAW in the same folder as the currently linked cast member.

on mMIAW(me, theFileName, theWidth, theHeight) -- ex:
("serviceInterruption",200,200)
  global gMIAW
  gMIAW = window(theFileName)
  gMIAW.windowType = 2
  -- figure the file path to the MIAW director file
  theCastPath = castLib(gTools.pCurrentCast).fileName
  thePos = offset(gTools.pCurrentCast, theCastPath)
  theChopOff = integer(thePos + gTools.pCurrentCast.length)
  theNewPath = theCastPath.char[1..(theChopOff)] & theFileName
  gMIAW.filename = theNewPath
  gMIAW.titleVisible = FALSE
  -- figure the rect of the window and center it...  
  theL = integer((pScreenData.pScreenW - theWidth)/2)
  theT = integer((pScreenData.pScreenH - theHeight)/2)
  gMIAW.rect = rect(theL, theT, (theL + theWidth), (theT + theHeight))  
  window(theFileName).open()
end





[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