2 Replies Latest reply on Mar 18, 2007 3:31 PM by Charles Parcell

    this is difficult

    Level 7
      Hi all, who can help me with this?

      I made an movie wich has several pages.
      on page 1 there are text field members wich has to fill in
      and on page 2 there are also text members wich has to fill in

      I made this movie script wich is below

      on startMovie

      clearGlobals

      init

      init2

      -------

      register xtra "PrintOMatic_Lite", "xxxxxxxxxxxxxx"


      -------

      expirationDate = date("xxxxxxx")

      if the systemDate > expirationDate then

      alert "????????"

      -- go to "stop 1"

      halt

      end if


      -------


      global monitorHeight, monitorWidth

      set monitorHeight = 480

      set monitorWidth = 640

      set the centerStage to TRUE



      on hyperlinkClicked me, link

      go to movie(link)

      end

      end startMovie



      on init

      put EMPTY into member 40

      put EMPTY into member 41

      put EMPTY into member 42

      put EMPTY into member 43

      put EMPTY into member 50

      put EMPTY into member 51

      put EMPTY into member 52

      put EMPTY into member 53

      put EMPTY into member 54



      end init

      on init2

      put EMPTY into member 44

      put EMPTY into member 45

      put EMPTY into member 46

      put EMPTY into member 47

      put EMPTY into member 48

      put EMPTY into member 49

      put EMPTY into member 55

      put EMPTY into member 56

      put EMPTY into member 57

      put EMPTY into member 58

      put EMPTY into member 59

      put EMPTY into member 60

      put EMPTY into member 61



      end init2

      --------------------------------------------------------------------------

      I also made an script which is connected to the textfield members

      --------------------------------------------------------------------------

      global editList, correctList

      property csn, mem

      on beginSprite me

      if correctList.listP=0 then
      correctList=["steenvruchten","besvruchten","schijnvruchten","nootvruchten"]

      csn=the currentSpriteNum

      mem=sprite(csn).member

      if editList.listP=0 then editList=[]

      editList.add(csn)

      end

      on keyDown me

      if the key=return then

      myPos=editList.findPos(csn)

      if mem.text=correctList[myPos] then

      if myPos<editList.count then myPos=myPos+1

      else myPos=1

      the keyboardFocusSprite=editList[myPos]

      end if

      else

      pass

      end if

      end

      ---------------------------------------------------------------------

      the problem is that on page 1 everything works fine

      on page 2 it is not.

      I tried to call init 2 from a frame script but this does not work



      Who can help me out with this?



      tia



      Herman