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
OggXtra
Lissajous Motion
AppSafe Xtra for Authorware and Director
RGB to CMYK
DM Transition Pack 1
How to find the computer's IP Address at runtime
Custom Scroll Bars
MIAW communication
CSS Class
TransMac
 

 

 

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