Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
ProjectorLook Xtra
f3VideoCapture
Mac Disk
Rescale Image
WinDirs XObject
Colour Conversions Galore!
Giving a shadow for a sprite
bubbleSortForStrings AND bubbleSortForStringLists
Version
Close Box MIAW behavior
MediaMacros Xtras Mall
 

 

 

Behavior Flash Rotator

Added on 6/7/1999

 

Compatibilities:
behavior D6_5 Mac PC Shockwave

This item has not yet been rated

Author: TorKristensen (website)

Rotates a Flash Sprite

--Code by Tor Kristensen (tor@araneum.dk)

---------------------------
-- code by tor kristensen
-- tor@araneum.dk
-- www.araneum.dk/tor
-- redistribution permitted as long as this header is not removed
---------------------------

property pMyFlash,pDir,pRotate,pSmooth

on new me
  return me
end

on mouseDown me
  
  IF pSmooth = #true THEN
    
    repeat while the mouseDown  
      case (TRUE) of
          
        (pDir=#left):
          set the rotation of sprite pMyFlash to the rotation of sprite pMyFlash-pRotate
          updateStage
          if the rotation of sprite pMyFlash = -360 THEN set the rotation of sprite pMyFlash to 0
          
        (pDir=#right):
          set the rotation of sprite pMyFlash to the rotation of sprite pMyFlash+pRotate
          updateStage
          if the rotation of sprite pMyFlash = 360 THEN set the rotation of sprite pMyFlash to -360
          
      end case
    end repeat
    
  END IF    
  
end


on mouseUp me
  case (TRUE) of
    (pDir=#left):
      set the rotation  of sprite pMyFlash to the rotation of sprite pMyFlash-pRotate
      
    (pDir=#right):
      set the rotation  of sprite pMyFlash to the rotation of sprite pMyFlash+pRotate
      
  end case
  
end


------------------------------------------------------------------------------------
on getPropertyDescriptionList
  set description = [:]  
  
  addProp description, #pMyFlash,[#default:"1",#format:#integer,#comment:"The Number of the Flash Sprite"]
  
  addProp description, #pRotate,[#default:"10",#format:#integer,#comment:"Rotate View By?"]
  
  addProp description, #pDir,[#default:#left,#format:#symbol,#comment:"Which Direction is it going?",#range: [#left,#right]]
  addProp description, #pSmooth,[#default:"#FALSE",#format:#symbol,#comment:"Zoom while the mouseDown?",#range: [#TRUE,#FALSE]]
  
  return description  
end

on getBehaviorDescription
  return ¬
              "picks a random member from a list of member numbers"
end

 


Upload Provided by ABCUpload ASP

Contact

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

Fax - (206) 339-5833

Send e-mail