2 Replies Latest reply on Mar 20, 2007 1:38 AM by Mike Crisp

    Simple Tell command

    Mike Crisp Level 1
      Hi

      I finally did it and as I thought MX04 is not quite as back compatable with MX as it suggests, all my little 'Work Arounds' dont work and even when I try using regular MX again they still don't work.

      I need a very simple tell script:

      on mouseUp

      window("4court_volley").title = "My MIAW"

      tell window "My MIAW"
      go to frame 1
      end tell

      window("My MIAW").open()

      end

      Any suggestions on how to write the tell command in the new format?
        • 1. Re: Simple Tell command
          Level 7
          > on mouseUp
          > window("4court_volley").title = "My MIAW"
          >
          > tell window "My MIAW"
          > go to frame 1
          > end tell
          >
          > window("My MIAW").open()
          >
          > end

          A window's title is not the same as its name. To target a window you
          need to use its name. You start by calling it "4court_volley" then try
          to change it to "My MIAW" - I think you just need to be more consistent
          --
          on mouseUp me
          if _player.windowPresent("4court_volley") then
          w = window("4court_volley")
          else
          w = window().new("4court_volley")
          w.filename = "@/4court_volley"
          end if
          w.title = "my MIAW"
          w.movie.go(1)
          w.open()
          end
          • 2. Re: Simple Tell command
            Mike Crisp Level 1
            Sean

            Thanks for the reply, Sorry for the mix up in names - clumsy-ness on my part.
            The dir file is called: 4court_volley and I wanted to change the Window Title to: Four Court Volleyball. i.e "My MIAW"

            Not sure I understand the: w.filename = "@/4court_volley" but all the same I pasted it in and everything works !

            Fortunately I have booked myself on a course so I can properly understand the stuff I have been using and writing for the last 10 years !!

            Many thanks

            Mike