A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Link movieclip to animated Grid actionscript

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    3

    Link movieclip to animated Grid actionscript

    im trying to link movie clips to the these sections in a separate window on the stage. im trying to link the buttons...

    heres the source

    http://www.senocular.com/flash/files/bubblegrid.fla

    heres the example

    sections = ["circle","square","triangle","star"]

    // Generate Points on the grid/attach buttons
    points = []
    currSection = 0
    for (x=0; x<=gw; x++){
    points[x] = []
    for (y=0; y<=gh; y++){
    // make point
    points[x][y] = new Point(x*sx,y*sy)
    points[x][y].target = new Point()
    if (x && y){ //attach buttons
    this.attachMovie("button","b"+ ++depth, depth)
    this["b"+depth]._x = y*sy; // x and y switched to run along top first
    this["b"+depth]._y = x*sx; // ... otherwise sections run down
    this["b"+depth]._width = sx; // size buttons to fit spacing
    this["b"+depth]._height = sy;
    sect = (sections[currSection] != undefined) ? sections[currSection++] : "..."
    this["b"+depth].section = sect // assign sections
    }
    }
    }
    b25.section = "the end" // last section

    im lost please help

    any help much appreciated

    thanks

  2. #2
    Junior Member
    Join Date
    May 2008
    Posts
    3
    Ive worked out how to apply mc now after discovering a buttonclip mc in the library but still cant figure out how to apply movie clips to just specific sections in the grid.

    heres the buttonclip mc code

    on(rollOver){
    _root.section = section
    }//this code is to make my movie clip visible and invisible on mouse press
    on(press){
    _root.gallery1._visible = !_root.gallery1._visible;
    }
    on(rollOut){
    _root.section = ""
    }

    thanks for looking

    any help appreciated

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center