This is an old revision of Designer/Buttons from 2009-09-24 19:19:13..

How to make FLASH button for site navigation


How to customize Flash buttons to make it work with Fuzzle CMS pages

In demo design file fuzzle-demo-demo.fla in layers btnHTML и btnLogin you can found two buttons with btHTML и btLogin names.


 (9 Kb)


For each button we define specific event listener in layer actions (first frame):

// define event listener
btLogin.addEventListener("click", btLoginClick); 
 
// specify URL
function btLoginClick(event:Event = null):void {
  getClassByAlias("aliasXmLoader").xmLoader.goToURL(url);
  
  // goToURL('thissite://TestPage'); move to  
  // page TestPage
 
  // goToURL('thissite://XmService-login/'); move
  // to login interface
 
  // goToHTML(); переход на html-версию текущей страницы
 
  // goToURL(getClassByAlias("aliasXmLoader").xmLoader.
  //   getHtmlURL('TestPage')); move to HTML-version
  // page TestPage
}


Important: all design file program code must be written on Action Script 3 to be compatible with Fuzzle CMS kernel.

 

For designer