5 Replies Latest reply on Mar 14, 2008 9:09 PM by davdavdavdav

    Flash Components in Director

    davdavdavdav
      Hi, I am new to Director MX 2004 and I have successfully added a Scrollpane (Flash component).

      The problem is that when I make a projector file and run it, before I can scroll on the Scrollpane, I need to click on it once to activate it. This is annoying like many web sites using flash.

      Any solutions to this??
        • 1. Re: Flash Components in Director - need to click to activate
          Level 7
          I don't know whether this particular component is aware of 'the
          keyboardFocusSprite', but you could try attaching the following (as a
          behavior) to it:
          --
          property spriteNum
          property bInitialised

          on beginSprite me
          the keyboardFocusSprite = spriteNum
          bInitialised = 0
          end

          on exitFrame me
          -- try again on the first #exitFrame
          -- (flash sprites like a full frame cycle to initialise)
          if bInitialised then exit
          the keyboardFocusSprite = spriteNum
          bInitialised = 1
          end
          • 2. Re: Flash Components in Director - need to click to activate
            Level 7
            I have a scrollpane in a SWF that gets pulled into director which doesn't
            have that problem.

            However I have had plenty of problems with other Flash things in Director
            requrinand I found changing onMouseUp to onRelease or onMouseDown to onPress
            and it usually solves the problem. I don't know if you have access to the
            code for the scroll pane without overriding the class in Flash.

            Timm

            "davdavdavdav" <webforumsuser@macromedia.com> wrote in message
            news:fr81er$6q5$1@forums.macromedia.com...
            > Hi, I am new to Director MX 2004 and I have successfully added a
            > Scrollpane
            > (Flash component).
            >
            > The problem is that when I make a projector file and run it, before I can
            > scroll on the Scrollpane, I need to click on it once to activate it. This
            > is
            > annoying like many web sites using flash.
            >
            > Any solutions to this??
            >


            • 3. Re: Flash Components in Director
              davdavdavdav Level 1
              Thanks guys. I'll give it a go.

              Also Timm, how did you include the scrollpane into your Director project? Can you give me simple step-by-step directions? I simply dragged the scrollpane to the stage.

              Thanks.
              • 4. Re: Flash Components in Director
                davdavdavdav Level 1
                Sean you were right. "flash sprites like a full frame cycle to initialise"

                I made the sprite over two frams for the ScrollPane and it works perfectly.

                Problem resolved!

                Thanks.
                • 5. Re: Flash Components in Director
                  davdavdavdav Level 1
                  I thought I had fixed it, but it's not working again.. and I have absolutely no idea as to why.