Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Advance counter v20040306
List Inspector
f3SoundFX
Hold for MPEG then go to marker X
Macromedia Director 7 - Illustrated Complete
Make Projector
cXtraRTF
ProMix
Macromedia Director 8 Shockwave Studio- Illustrated Introductory
Windows and Cascading Menus for Shockwave
MediaMacros Xtras Mall
 

 

 

Behavior Go Loop

Added on 7/6/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: KumarK

Go Loop

---- written for Director 8 ---
---- Kumar.K ----
---- kumark@icode.com ----

------ Custom Properties ------
property  WhereTo

------ Get Behavior Description List ------
on getPropertyDescriptionList me
  set description = [:]
  if the currentspritenum = 0 then
    addProp description, #WhereTo, [#comment: "Where To Attach ?" ,#format:#String,
    #range:["On EnterFrame","On ExitFrame"],#default:"On EnterFrame"]
  else
    addProp description, #WhereTo, [#comment: "Where To Attach ?" ,#format:#String,
    #range:["On MouseUp","On MouseDown","On MouseEnter","On MouseLeave"],#default:"On MouseUp"]    
  end if    
  return description
end getPropertyDescriptionList
------ Get Behavior Description List ------

-- Get Behavior description --
on getBehaviorDescription me
  return
    "GO LOOP" & RETURN & RETURN &
    "This Behavior make the playback head loop back to the nearest previous marker. " &
    "If there are no previous markers, the playback head jumps to frame 1." & RETURN & RETURN &
    "Not compatible with Java." & RETURN & RETURN &
    "PARAMETERS:" & RETURN &
    "* Where To assign this Script."
end getBehaviorDescription
-- Get Behavior description --

------ Availbale for both Frame and Sprite Script ------
on isOKToAttach (me, aSpriteType, aSpriteNum)
  case aSpriteType of
    #graphic:
      return true
    #script:
      return true
  end case
end isOKToAttach
------ Availbale for both Frame and Sprite Script ------

-- Events --
on EnterFrame me
  if WhereTo = "On EnterFrame" then
    Go Loop
  end if
end EnterFrame

on ExitFrame me
  if WhereTo = "On ExitFrame" then
    Go Loop
  end if
end ExitFrame

on MouseUp
  if WhereTo = "On MouseUp" then
    Go Loop
  end if
end MouseUp

on MouseDown
  if WhereTo = "On MouseDown" then
    Go Loop
  end if
end MouseDown

on MouseEnter
  if WhereTo = "On MouseEnter" then
    Go Loop
  end if
end MouseEnter

on MouseLeave
  if WhereTo = "On MouseLeave" then
    Go Loop
  end if
end MouseLeave
------ Events ------  

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail