EMBEDDING FLASH

It is possible to embed Flash 8 movies into Director 10.1 (with Flash Asset Update). This is very good news for Director since Flash can do a lot of cool stuff.

HOW TO DISPLAY FLASH CURSOR CORRECTLY

A major problem with embedded Flash movies is to show the right cursor. When the cursor is above a Flash movie Director should display one of tree cursors:


  1. Show an arrow when cursor is not above a button.
  2. Show a finger when cursor is above a button.
  3. Hide cursor if it is hidden by Flash movie.

To make Director show the correct cursor create a behavior containting the code below and attach the behavior to a sprite with a Flash member.

on enterFrame me
  pChannel = sprite(me.spriteNum)
  if pChannel.member.type = #flash then
    if integer(pChannel.Mouse.hide()) then
      pChannel.Mouse.show()
      if pChannel.hitTest(the mouseLoc) = #button then
        pChannel.cursor = 280
      else
        pChannel.cursor = -1
      end if
    else
      pChannel.cursor = 200
    end if
  end if
end