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
Wait for a DirectMedia CuePoint(Name as Reference)
Gallery navigator
Convert Fonts
Help and Manual
Angle detection by J.R.D.R.
Volume Behaviour (Buttons)
UltimateNet Xtra
List Inspector 1.1 with Tree View
lingo to php with browser on stage
Get VideoForWindows Version
 

 

 

Behavior Magic Button

Added on 3/10/2005

 

Compatibilities:
behavior D8 D8_5 D9

This item has not yet been rated

Author: lingoman (website)

This Behaviour Was Developed for Rapid Production of Interface in Director, when you have 2 Cases of Button Shape, it Automaticley Detect (mouseEnter) Shape Case that most Widley used by Developers,All Details inside the Source (*.DIR) file Attached with this Script

Download PC Source
--With The Name of God--
--Magic Button Behaviour
--Developed By : Mohammed Ibrahim Hasanin © -- MARCH 2005
--medos20@yahoo.com
---------------------------------------------------------
--How To Use:
--Ex: Your Sprite Member Name in Stage will  be (Button) then the Another member That will
--be Used in (mouse Enter) handler will be (Button copy) or you can chage the SYMBOL at the
--end of member name (look at the Range :1,A,B,Copy, or you can chage the Range to Qualify your needs.
--Can Work from anyCast And you can put your members as you like!.

property pCastMember --The Current Sprite of member in Stage
property pMemberSymbol --The Sub Name Added in The End of Member

on getPropertyDescriptionList me
  SymbolRange = ["1","A","B","Copy"]
  return [#pMemberSymbol: [#comment: "What is The Symbol at the End of Member:",
          #format: #String,#range:SymbolRange, #default: "A"]]
end

on getBehaviorDescription me
  return "Change The Sprite Member in MouseEnter"
end

on mouseEnter me
  pCastMember = Sprite(me.SpriteNum).member.name
  cursor 280
  Sprite(me.SpriteNum).member = member(pCastMember & pMemberSymbol)
end


on mouseLeave me
  cursor -1
  Sprite(me.SpriteNum).member = member(pCastMember)
end

  

 


Contact

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

Send e-mail