0 Replies Latest reply on Jan 17, 2011 5:14 AM by Jdlcbgn

    Need Help coding




      I've started a post en AS3, but I was wrong, it should have been in this section.

      I'm a newbie on Flash, but I have a work to be delivered very soon and I'm blocked.


      A customer made me buy a flash template, and guess what, wants me to add a feature!


      The template bring up a header with slides (something you could call drawers like).

      When you click on one, it pulls out a picture.

      Then you can click on the link of that slide to open a html document (page).


      Actually this works, but he wants as in a regular menu so when the appeled html doc (or page) is showing, that the proprer slide/drawer shows pulled out (somewhat as in a regular menu which shows the selected link.)


      Note: This header is embeded on each html page.


      Originally from that script, it does get info from the page with the body id

      Example for html page 4 which html doc page name is "Stickers.php"


      <body id="page4" onLoad="javascript: preloader();changeimages();">
      <div class="flash1">
         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  width="100%" height="86" id="FlashID" tabindex="1" title="Menu">
          <param name="movie" value="flash/menu_v8.swf?button=4" />
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <param name="swfversion" value="" />


      Here is the AS script on that frame


      onClipEvent (load) {
          num = 4;
          this.pX = _root["xkoord"+num];
          accel = _root.accel;
          rate = _root.rate;
          this.hitArea = this.area;
      onClipEvent (enterFrame) {
          a = this._x*accel+(_root["xkoord"+this.num]-_x)*rate;
          _x += a;
          if (Math.abs(_root["xkoord"+this.num]-_x)<1) {
              _x = _root["xkoord"+this.num];


      Where or what should I add in order to have that slide selected/opened/pulled on arrival of that page "Stickers.php"?


      I'll will have to do the same system for all of the seven pages so that the proper slide is showed pulled out.


      Thanks very much for any help.