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
StartFramesScript
Change ShapeType of a Shape Sprite
FilmLoop Controller
Allowing Users to Skew an Image
Director 6 Demystified
Pie Chart - Vector Shapes
Cross Platform Projects
Generic Slider w/Text
Spam and Faoul language filter for shockwave
LEAP YEAR
 

 

 

Behavior Play and Review Flash

Added on 12/14/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: FrankHaili

This movies plays Flash movies by rolling over a button / graphical sprite. When the script is attached to the button / sprite, a flash movie will play on on mouseEnter and play backwards on mouseleave. Just make sure the flash movie is paused and is not looped....

--Description
--------
on getBehaviorToolTip
  return "Plays a Flash movie back and forward "&RETURN&"onr MouseEnter and MouseLeave over a button"
end getBehaviorToolTip


--Code
-------
Property MySprite
Property MyMember

--------------------
--------------------

on beginsprite
  member(sprite(MySprite).member).pausedAtStart = 1
  member(sprite(MySprite).member).loop = 0
end

on MouseEnter

  MonNombreImage = member(sprite(MySprite).member).framecount

  repeat with x = 1 to MonNombreImage
    sprite(MySprite).gotoframe(x)
    updatestage
  end repeat

end

--------------------
--------------------

on MouseLeave

  MonNombreImage = member(sprite(MySprite).member).framecount

  repeat with x = MonNombreImage down to 1
    sprite(MySprite).gotoframe(x)
    updatestage
  end repeat

end


--------------------
--------------------


on getPropertyDescriptionList
  set pList = [:]

  addProp pList, #MySprite, [#comment :"Le flash ` dimarrer se trouve en sprite", #format : #integer, #default : 1]

  return pList
end getPropertyDescriptionList  

 


Contact

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

Send e-mail