Home

Downloads

FAQs

Sample Book

Features

Forum

 

Transitions

Prior to V1.41 any number of transitions can be defined between the <content> and </content> tags in the pages.xml file. From V1.41 on the transitions are listed in a separate file xml/Transitions.xml

Transitions are given Ids which are used to apply them. E.g. contentsentrance="ExpandHoriz" where ExpandHoriz is the transition Id.

Flash has a set of built in transitions such as this Blinds transition :-

<transition Id="Blinds" >
<param name="type" value="Blinds"/>
<param name="duration" value="3"/>
<param name="easing" value="None.easeNone"/>
<param name="numstrips" value="10"/>
<param name="dimension" value="0"/>
</transition>

You can define different versions of the same transition by altering the parameter values and giving it a different Id.

In addition you can create custom transitions. To add your own you need to edit the script Transitions.as which is in the scripts folder of the source code. By convention the custom transition type should begin with Custom_ to enable the code to identify it as such and handle it differently to standard transitions.

This custom transition spins its target object about its registration point (which is always the top left for dynamically created movieclips).

<transition Id="Spin">
<param name="type" value="Custom_Spin"/>
<param name="easing" value="None.easeNone"/>
<param name="start" value="0"/>
<param name="end" value="720"/>
<param name="seconds" value="3"/>
</transition>