My account
Shopping cart
Knowledge base
Support


Apply themes to Drop Down Tree Menu V3 - tutorial



1. Open your Adobe Flash CS3 software and create a new file (File/New/Flash Document). Drag a drop down tree menu on the stage from the Component palette.

2. If you can’t find the drop down tree menu component, please see the How to install a MXP file tutorial. If you have trouble configuring your drop down tree menu please see the How to find Help for Jumpeye components.

3. Before you continue with this tutorial please read the Create a Simple Drop Down Tree menu tutorial.

4. Open the SkinAssetsDropDownMenuV3.fla file from the Demo folder that came with the Drop Down menu. Move back to your fla file file that you created and click the little button on the upper right corner of your library for adding a new library panel.



5. Click the dropdown button from one of the library panels and choose the SkinAssetsDropDownTreeMenuV3 file. From this library drag the DDMThemeBlueA1MainClip movie clip to your drop down tree menu file.



6. Now you don’t need anymore the SkinAssetsDropDownTreeMenuV3 library panel. You need to define your new styles in the xml file like this (or you can simply use the edited xml file you’ve received together with the assets fla file):

In order to read about every style tag, please read the styles documentation file.

<styles>
     <level1_style>
          <itemSpacing>17</itemSpacing>
          <barIconSpacing>2</barIconSpacing>
          <popIconSpacing>16</popIconSpacing>
          <fixedSize>false</fixedSize>
          <folderIconId></folderIconId>
          <itemHeight>21</itemHeight>
          <textFormat>
               <font>Tahoma</font>
               <size>11</size>
               <bold>false</bold>
               <color>0xFFFFFF</color>
               <underline>false</underline>
               <align>right</align>
               <rightMargin>4</rightMargin>
          </textFormat>

          <parts>
               <left>DDM_BlueA1_style1_left</left>
               <right>DDM_BlueA1_style1_right</right>
               <hseparator>DDM_BlueA1_style1_hseparator</hseparator>
               <vseparator>DDM_BlueA1_style1_vseparator</vseparator>
               <top>DDM_BlueA1_style1_top</top>
               <bottom>DDM_BlueA1_style1_bottom</bottom>
               <folderIconId>DDM_BlueA1_style1_folderIcon</folderIconId>
          </parts>               

          <states>
               <up>
                    <mcLinkageId>DDM_BlueA1_style1_up</mcLinkageId>
               </up>
               <over>
                    <mcLinkageId>DDM_BlueA1_style1_over</mcLinkageId>
               </over>
               <down>
                    <mcLinkageId>DDM_BlueA1_style1_down</mcLinkageId>
               </down>
               <selected>
                    <textFormat>
                         <bold>false</bold>
                         <color>0x005979</color>
                    </textFormat>
                    <mcLinkageId>DDM_BlueA1_style1_selected</mcLinkageId>
               </selected>
               <disabled>
                    <textFormat>
                         <color>0x666666</color>
                    </textFormat>
                    <mcLinkageId>DDM_BlueA1_style1_disabled</mcLinkageId>
               </disabled>
          </states>
     </level1_style>

     <level2_style>
          <folderCollapsedIconId>ATM_BlueA1_style1_collapsed_icon
          </folderCollapsedIconId>
          <folderExpandedIconId>ATM_BlueA1_style1_expanded_icon</folderExpandedIconId>
          <spacing>3</spacing>
          <itemNextSpacing>1</itemNextSpacing>
          <textFormat>
               <font>Tahoma</font>
               <size>11</size>
               <color>0x016080</color>
               <underline>false</underline>
          </textFormat>

          <states>
               <up>
                    <mcLinkageId>ATM_BlueA1_style2_false_up</mcLinkageId>
               </up>
               <over>
                    <textFormat>
                         <underline>false</underline>
                    </textFormat>
                    <mcLinkageId>ATM_BlueA1_style2_false_over</mcLinkageId>
               </over>
               <down>
                    <textFormat>
                         <underline>false</underline>
                    </textFormat>                            
                    <mcLinkageId>ATM_BlueA1_style2_false_over</mcLinkageId>
               </down>
               <selected>
                    mcLinkageId>ATM_BlueA1_style2_false_selected</mcLinkageId>
               </selected>
               <expanded_up>
                    <mcLinkageId>ATM_BlueA1_style2_true_up</mcLinkageId>
               </expanded_up>
               <expanded_over>
                    <textFormat>
                         <underline>false</underline>
                    </textFormat>
                    <mcLinkageId>ATM_BlueA1_style2_true_over</mcLinkageId>
               </expanded_over>
               <expanded_down>
                    <mcLinkageId>ATM_BlueA1_style2_true_down</mcLinkageId>
               </expanded_down>
               <expanded_selected>
                    mcLinkageId>ATM_BlueA1_style2_true_selected</mcLinkageId>
               </expanded_selected>
               <disabled>
                    <textFormat>
                         <color>0xFDFDFD</color>
                    </textFormat>
                    <mcLinkageId>ATM_BlueA1_style2_false_disabled</mcLinkageId>
               </disabled>
          </states>
     </level2_style>

     <level3_style>
          <itemSpacing>8</itemSpacing>
          <barIconSpacing>2</barIconSpacing>
          <popIconSpacing>6</popIconSpacing>
          <fixedSize>false</fixedSize>
          <folderIconId>DDM_BlueA1_style2_folderIcon</folderIconId>
          <itemHeight>19</itemHeight>
          <textFormat>
               <font>Tahoma</font>
               <bold>false</bold>
               <size>11</size>
               <color>0x016080</color>
               <underline>false</underline>
               <align>right</align>
               <rightMargin>4</rightMargin>
          </textFormat>

          <parts>
               <left>DDM_BlueA1_style3_left</left>
               <right>DDM_BlueA1_style3_right</right>
               <hseparator>DDM_BlueA1_style3_hseparator</hseparator>
               <vseparator>DDM_BlueA1_style3_vseparator</vseparator>
               <top>DDM_BlueA1_style1_top</top>
               <bottom>DDM_BlueA1_style3_bottom</bottom>
               <folderIconId>DDM_BlueA1_style3_folderIcon</folderIconId>
          </parts>

          <states>
               <up>
                    <mcLinkageId>DDM_BlueA1_style3_up</mcLinkageId>
               </up>
               <over>
                    <textFormat>
                    </textFormat>
                    <mcLinkageId>DDM_BlueA1_style3_over</mcLinkageId>
               </over>
               <down>
                    <textFormat>
                         <underline>false</underline>
                    </textFormat>                            
                    <mcLinkageId>DDM_BlueA1_style3_down</mcLinkageId>
               </down>
               <selected>
                    <textFormat>
                         <bold>false</bold>
                         <color>0x005979</color>
                    </textFormat>
                    <mcLinkageId>DDM_BlueA1_style3_selected</mcLinkageId>
               </selected>
               <disabled>
                    <textFormat>
                         <color>0x666666</color>
                    </textFormat>
                    <mcLinkageId>DDM_BlueA1_style3_disabled</mcLinkageId>
               </disabled>
          </states>
     </level3_style>
      ………….      ………….      ………….      ………….      ………….      ………….      ………….

</styles>


7. After you defined you styles, you have to call them up in the data node like this :

<data>
     <main childStyle="level1_style">
          <item title="Home " childStyle="level2_style" >
               <item title="Subtitle 1" childStyle="level3_style">
                    <item title="Subtitle 1" />
                    <item title="Subtitle 2" />
                    <item title="Subtitle 3" />  
               </item>

               <item title="News" childStyle="level3_style">
                    <item title="Subtitle 1" />
                    <item title="Subtitle 2" />
                    <item title="Subtitle 3" />  
               </item>

               <item title="Products" childStyle="level3_style">
                    <item title="Subtitle 1" />
                    <item title="Subtitle 2" />
                    <item title="Subtitle 3" />
               </item>
          </item>

          <item title="About us " childStyle="level2_style">
               <item title="Our Stuff" childStyle="level3_style">
                    <item title="Subtitle 1" />
                    <item title="Subtitle 2" />
                    <item title="Subtitle 3" />
               </item>

               <item title="Portfolio" childStyle="level3_style">
                    <item title="Subtitle 1" childStyle="level2_style">
                         <item title="Subtitle 1" />
                         <item title="Subtitle 1" />
                         <item title="Subtitle 1" />
                    </item>
                    <item title="Subtitle 2" />
                    <item title="Subtitle 3" />
               </item>

               <item title="History" childStyle="level3_style">
                    <item title="Subtitle 1" />
                    <item title="Subtitle 2" />
                    <item title="Subtitle 3" />
               </item>          
          </item>

          <item title="Contact us " childStyle="level2_style">
               <item title="Our Adress" childStyle="level3_style">
                    <item title="Subtitle 1" />
                    <item title="Subtitle 2" />
                    <item title="Subtitle 3" />
               </item>

               <item title="Support E-mail" childStyle="level3_style">
                    <item title="Subtitle 1" />
                    <item title="Subtitle 2" />
                    <item title="Subtitle 3" />
               </item>

               <item title="Other Info" childStyle="level3_style">
                    <item title="Subtitle 1" />
                    <item title="Subtitle 2" />
                    <item title="Subtitle 3" />
               </item>
          </item>
     </main>
</data>


8. Save your xml file and hit Ctrl + Enter to test your movie. This is how your swf should look like :