Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Vector Shape - Create Grid
Using Acrobat on a CD
Billenium Transitions Xtra
Multiple-timer facility
Stop MPEG with MCI commands
CD Door Close, Open - MCI
Send to Top
Flash Sprite -- Simple Controller [Play, Pause, Rewind]
Library for work with formatted text documents
Gallery navigator
 

 

 

Behavior Go to NetMovie

Added on 7/6/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: KumarK

Go to NetMovie

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

------ Custom Properties ------
property  WhereTo,UrlName,MyCursor,standardcursor,spritenum,MarkerName

------ Get Behavior Description List ------
on getPropertyDescriptionList me
  set description = [:]
  if the currentspritenum = 0 then
    addProp description, #UrlName, [#comment: "Enter URL Name of the Movie Location here(.dcr is required if playing on internet) :" ,\
    #format:#String,#default:"www.icode.com\sample.dcr"]    
    addProp description, #MarkerName, [#comment: "Enter MarkerName here(Optional,Leave Blank if not applicable) :" ,\
    #format:#String,#default:"Marker Name Here"]    
    addProp description, #WhereTo, [#comment: "Where To Attach ?" ,#format:#String, \
    #range:["On EnterFrame","On ExitFrame"],#default:"On EnterFrame"]
  else
    addProp description, #UrlName, [#comment: "Enter URL Name of the Movie Location here(.dcr is required if playing on internet) :" ,\
    #format:#String,#default:"www.icode.com\sample.dcr"]    
    addProp description, #MarkerName, [#comment: "Enter MarkerName here(Optional,Leave Blank if not applicable) :" ,\
    #format:#String,#default:"Marker Name Here"]  
    addProp description, #MyCursor, [#comment: "Select the Cursor :" ,#format:#Cursor,#default:280]      
    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 to NetMovie" & RETURN & RETURN & \
    "Retrieves and plays a new Shockwave movie from an HTTP or FTP server." & RETURN & \
    "The current movie continues to run until the new movie is available.." & RETURN & RETURN & \
    "PARAMETERS:" & RETURN & \
    "* URL Name(Where Movie is Located)" & RETURN & \
    "* Marker Name(Optional, Leave Blank if N/A" & RETURN & \
    "* Cursor" & 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 beginsprite
  standardcursor=sprite(spritenum).cursor
end

on EnterFrame me
  if WhereTo = "On EnterFrame" then
    if MarkerName <> "" then
      gotoNetMovie UrlName#MarkerName
    else
      gotoNetMovie UrlName
    end if
  end if
end EnterFrame

on ExitFrame me
  if WhereTo = "On ExitFrame" then
    if MarkerName <> "" then
      gotoNetMovie UrlName#MarkerName
    else
      gotoNetMovie UrlName
    end if
  end if
end ExitFrame

on MouseUp
  if WhereTo = "On MouseUp" then
    if MarkerName <> "" then
      gotoNetMovie UrlName#MarkerName
    else
      gotoNetMovie UrlName
    end if
  end if
end MouseUp

on MouseDown
  if WhereTo = "On MouseDown" then
    if MarkerName <> "" then
      gotoNetMovie UrlName#MarkerName
    else
      gotoNetMovie UrlName
    end if
  end if
end MouseDown

on MouseEnter
  sprite(spritenum).cursor=MyCursor
  if WhereTo = "On MouseEnter" then
    if MarkerName <> "" then
      gotoNetMovie UrlName#MarkerName
    else
      gotoNetMovie UrlName
    end if
  end if
end MouseEnter

on MouseLeave
  sprite(spritenum).cursor=standardcursor
  if WhereTo = "On MouseLeave" then
    if MarkerName <> "" then
      gotoNetMovie UrlName#MarkerName
    else
      gotoNetMovie UrlName
    end if
  end if
end MouseLeave
------ Events ------  

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail