1 Reply Latest reply on Jul 2, 2008 4:08 PM by PauloKawachi

    MIAW crashing projector

    PauloKawachi
      I have made a movie using Tree View Menu to open MIAWs.
      The problem is: when i stay idle in a miaw for a few time (seconds) the projector going crash and slow down very much, the CPU usage go to 100% and this state not return untile close the projector.
      This problem don`t happen on using Tree View with few items (10 items).
      I used the script "on idle sleep 1" on the stage movie and doesnt work. I increased the idleHandlerPeriod to 216000 (to send 1 idle message per HOUR) and doesnt work.

      This is the generic script of the tree a I used:

      ===========================================
      Property psprite,tNewNode1

      on beginSprite me
      fsButton = sprite(me.spriteNum)
      fsButtonEvent = fsButton.newObject("Object")
      fsButton.setCallback(fsButtonEvent, "change", 0, 0)
      end

      on buildtree
      pSprite = sprite(1)
      tDataSource = pSprite.newObject("XML")
      tDataSource.ignoreWhite = true
      pSprite.dataProvider = tDataSource

      tNewNode1 = pSprite.addTreeNode("Node","node1,tNewNode1")
      pSprite.setIsBranch(tNewNode1,TRUE)

      tNewLeaf1 = tNewNode1.addTreeNode("Leaf","leaf1")

      pSprite.setIsopen(value("tNewNode1"),true)
      end

      on change me
      gSelecteddata= sprite(me.spriteNum).selectedNode.attributes.data
      the itemdelimiter = ","
      member("information").text = "Você está em: "&gSelecteddata.item[1]

      case (gSelecteddata.item[1]) of
      "node1":
      window().new("first_page").open()
      "leaf1":
      window().new("second_page").open()


      otherwise:
      nothing
      end case


      if pSprite.getIsOpen(value(gSelecteddata.item[2])) = 1 then
      pSprite.setIsopen(value(gSelecteddata.item[2]),false)
      else
      pSprite.setIsopen(value(gSelecteddata.item[2]),true)
      end if
      end

      on itemrollover me
      cursor 280
      end

      on itemrollout me
      cursor 0
      end
      ============================================

      And i have another problem. I made 3 Tree View Menu in 2 cases: on stage and on MIAW. The first Tree View dont have any problem and have 10 items on the tree. The second have this problem I related. And the third when the tree view is on miaw the page (miaw) i open will go open under the tree view miaw and never open active. This problem I solved placing tree view on stage, not on miaw, but if anyone know how can I fix this i`ll be grateful.