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
Scroll Thumb Track
sprite movement according to mouseV
Director 8 Workshop
Add all to the search path
cXtraEditBox
ResolutionX Xtras
FrameReady()
ESCAPE Video Studio
Set WarpMode of a QTVR Sprite
Sound 2 CuePoint
 

 

 

Behavior Download Net Thing

Added on 1/31/2000

 

Compatibilities:
behavior D6_5 D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: JulioPerdigao

Copies a file from the Internet to a file on the local disk, while the current movie continues playing. Use netDone to find out whether downloading is finished

--JDP EasyBehavior - 1999 JDP - Julio Diniz Perdigao
--Possibles values are (0, 1, 2, 3, 4, 5, 8, 12, 16, 49)

property  campo2, Event, mode

on initGotoFrame me
  init me
end

on mouseUp me
  if Event = #mouseup    then init me
end

on mouseDown me
  if Event = #mouseDown   then init me
end
on mouseEnter me
  if Event = #mouseEnter    then init me
end

on mouseLeave me
  if Event = #mouseLeave    then init me
end

on enterFrame me
  if Event = #enterFrame  then init me
end

on exitFrame me
  if Event = #exitFrame  then init me
end

on init me
  if the mode of me = #"download" then
    downLoadNetThing(the campo2 of me)

  end if
end


on getPropertyDescriptionList  
  set p_list = [ ¬
    #Campo2: [ #comment:   "Address:", ¬
                    #format:   #string, ¬
                   #default:     "http://www.JDP.com/JDP EasyBehavior", the applicationPath&"JDP EasyBehavior" ], ¬
  #Event: [ #comment:   "Handler:", ¬
                    #format:   #symbol, ¬
                     #range: [ #MouseUp, #MouseDown, #MouseEnter, #MouseLeave, #EnterFrame, #ExitFrame], ¬
                   #default:   #MouseUp ], ¬
      #Mode: [ #comment:   "Action:", ¬
                    #format:   #symbol, ¬
                     #range: [ #"Download" ], ¬
                   #default:   #"Download" ] ¬
  ]
  return p_list
end

 


Contact

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

Send e-mail