Comunidad de diseño web y desarrollo en internet online

programar botones en flash para html

Citar            
MensajeEscrito el 23 Mar 2007 10:33 pm
Hola!
Ojala alguien me pueda auidar, tengo el siguiente codigo,

Código :

onClipEvent (load) {
   // -- set up names of main items here
   // -- you can add as many new sections as you want (or your computer can handle)
      mainSections = new Array("QED", "PRODUCTS", "SERVICES", "EVENTS", "APROACH", "RESULTS" , "CONTACT");
   // -- one array for each main Section - 
   subSection0 = new Array("ABOUT US", "OUR TEAM", "JOIN US");
   subSection1 = new Array("PUBLICATIONS");
   subSection2 = new Array("SOLUTIONS", "LEARNING", "RESEARCH");
   subSection3
   subSection4 = new Array("SMART MANAGEMENT ®", "SMART PROGRAM MANAGEMENT ®", "SMART PROJECT MANAGEMENT ®", "SMART RISK MANAGEMENT TM", "SMART STRATEGIC DELIVERY TM" , "SMART CONTRACTING TM");
   subSection5 = new Array("VALUE", "CASE STUDIES / SUCCESSES", "CLIENTS", "ACCOLADES");
   subSection6 
   // --
   // --
   // -- build the main buttons
   for (i=0; i<mainSections.length; i++) {
      attachMovie("mainButton", "main"+i, i+100);
      myButton = this["main"+i];
      myButton.subs = this["subSection"+i];
      myButton.button.value = mainSections[i];
      myButton._x = myButton._width*i;
      // -- build subsection buttons for each main button
      for (x=0; x<myButton.subs.length; x++) {
         myButton.attachMovie("subButton", "sub"+x, x);
         mySub = myButton["sub"+x];
         mySub.button.value = myButton.subs[x];
         mySub.button.outYpos = myButton._height+(mySub._height*x);
      }
   }
   // -- function that opens the subsection on rollover
   function openSubs (target) {
      for (i=0; i<this[target].subs.length; i++) {
         subMenuCounter = 0;
         this[target]["sub"+i].button.newY = this[target]["sub"+i].button.outYpos;
         currentOpen = target;
      }
   }
   // -- close subsections function
   function closeSubs (target) {
      for (i=0; i<this[target].subs.length; i++) {
         this[target]["sub"+i].button.newY = this[target]["sub"+i].button.oYpos;
      }
   }
   // - this is the fuction you would change to load content, or add more functionality to the buttons
   function doSubSection (target, sub) {
      _root.currentSelection = target +" "+ sub;
      closeSubs(currentOpen);
   }
}
onClipEvent (enterFrame) {
   // -- a timer that closes the menus after a certain amount of time
   subMenuCounter++;
   if (subMenuCounter>100) {
      closeSubs(currentOpen);
      subMenuCounter = 0;
   }
}
onClipEvent (mouseUp) {
   // -- this closes the curently open submenu if the user clicks outside of the menu
   if (!this.hitTest(_root._xmouse, _root._ymouse)) {
      closeSubs(currentOpen);      
   }
}


he logrado ajustar la interfas a las necesidades del diseño, pero no logro programar las funciones del los botones para que en cada accion abra terminada pagina en HTML. La pagina donde se va a colocar es estatica, unicamente el menu es en flash.... alguien puede ayudarme???

Gracias!¡¡

mA

Por maria__an

0 de clabLevel



Genero:Femenino  

firefox
Citar            
MensajeEscrito el 23 Mar 2007 11:02 pm
FSCommand, sorry, no se mucho de como se usa, pero FSCommand es para comunicar flash con otros "lenguajes", intenta, pero si nada mas abrirás una nueva pagina al presionar un botón pues usa getURL en el flash :P

Por El_Beto_TM

156 de clabLevel

1 tutorial

Genero:Masculino  

Mexicali, Baja California

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.