A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: logistical problem

  1. #1
    Senior Member
    Join Date
    Sep 2002
    Location
    Clogland
    Posts
    100

    logistical problem

    // edit, got it sorted....... put the rollover function after the loop


    Howdy,

    I'm trying to make a dynamically generated menu, somewhat like this......

    //loop
    for (i=0; i<number_of_buttons; i++) {

    //create button
    createEmptyMovieClip("button"+i,i);

    //draw button
    button lineTo(x,y)

    etc, etc, etc,

    Problem is when I try to add a mouseover effect.......

    //mouseover
    button.onRollOver = function(){

    I can't get the button to change fill colour, I guess because it already been generated, or otherwise because the onRollover doesn't like being in a loop.

    I'm sure there's some logical way of dealing with this that is escaping my somewhat fried brain at the moment, full code posted on request.
    Last edited by skalie; 06-03-2004 at 04:54 AM.

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