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
lingo to php with browser on stage
Advanced Installer Professional
Power Point Viewer
Create Install
Installed Fonts
Wait for a Keypress
E-mailExec 2.0
Stop all the sounds
Stop Projector After Eject CD
Regular expressions
 

 

 

Behavior Add to the back list

Added on 6/8/1999

 

Compatibilities:
behavior D6_5 D7 D8 Mac PC

This item has not yet been rated

Author: MediaMacros (website)

Use this to generate a backlist. This is a straight foward way to track where a user goes. You can place it on the same frame as each marker and track the users progress. To go back, set backState = true and go to the NEXT TO LAST item in the list (the last is the currennt frame). It takes some tweaking for your uses, but is a good start for a back button behavior.

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know.  :-)

on prepareFrame
  global gBackState, gBackList  
  if gBackList = void then gBackList = []
  if gBackState = False then      
    if count(gBackList) > 0 then      
      if getAt(gBackList, count(gBackList)) <> the movieName & return & marker (0) then      
        add gBackList, the movieName & return & marker (0)
      end if  
    else
      add gBackList, the movieName & return & marker (0)
    end if    
  else if gBackState = True then    
    deleteAt (gBackList , count(gBackList))    
    set gBackState = False    
  end if
  if count(gBackList) > 30 then
    repeat with x = 1 to (count(gBacklist) - 30)
      deleteAt (gBackList, 1)
    end repeat
  end if  
end

 


Contact

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

Send e-mail