5 Replies Latest reply on May 21, 2008 10:00 AM by Applied CD

    MIAW for Web

    MughalShahzad
      I have some lesson files each has some tabs say Tab1, Tab2, Tab3....
      These tabs are calling another .dcr file and in the .dcr file I have markers each representing a Tab.
      Properties of tab file are
      window type = tool, minimizebox=false, maxmizebox=flase, closebox=false, visible=false, border=line
      while lessons file's properties are
      window type = document, minimizebox=false, maxmizebox=flase, closebox=false, visible=false, border=line.

      Code behind lesson file
      global gTabWin
      ON PREPAREMOVIE
      window().new ("Tabs")
      set gTabWin = window("Tabs").name
      --window(gTabWin).filename = the moviePath & "Tabs.dcr"
      window(gTabWin).filename = "Tabs.dcr"
      END

      --Tab1
      global gTabWin
      on mouseUp me
      whichTab(sprite(me.spriteNum).member.name)
      end

      --MovieScript
      global gTabWin
      on whichTab pTab
      case pTab of
      "Tab1":
      openWin pTab
      "Tab2":
      openWin pTab
      "Tab3":
      openWin pTab
      end case

      end
      on openWin pTab
      sound(1).pause()
      window(gTabWin).open()
      window(gTabWin).rect = rect(390, 240, 900, 720)
      window(gTabWin).moveToFront()
      tell window(gTabWin)
      go to string(pTab)
      end tell
      end

      When I play these lesson files independently it works fine, tabs appear at right place but I want to embed these lesson files in an e-learning site.
      Imagin I have a list of lectures at left panel user clicks any lecture that lecture appears and played in specified panel and when user clicks on any tab that tab file appears on top of lecture file. My problems starts from here if lecture file appears it works fine but when I click any tab file does not appear, I wish that my tab should behaive like a traditional tab.

      If someone have any idea, pice of code share with I can share my files as well if required.
      Thanks and Regards