Skip navigation
Currently Being Moderated

f() duplicated

Apr 7, 2012 4:03 PM

Hello

 

I have the same f() in frame 1 and frame 2, and when I play the movie again, it says f() dupliicated.

How can change it in the second frame, not to be the same. Here is the f()

 

 

function onEnterFrame(event:Event):void
{

 

domystuff;
}

 
Replies
  • Currently Being Moderated
    Apr 7, 2012 5:02 PM   in reply to Samsimms

    Don't use the same function name, or just use the one from frame 1 if they both do the same thing... just have frame 1 extend thru frame 2

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 7, 2012 8:01 PM   in reply to Samsimms

    You can use a function that is in frame 1 even in frame 2 if you extend it along the layer.  Just like if you wanted an object to span across frames, you can do the same with code elements like functions and variables.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points