#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    2
    Rep Power
    0

    Combining onEnterFrame functions


    i have a few onEnterFrame functions like 6 to 7 which I want to combine them into a single function. But it doesn't work after adding the function.
    Thanks in advance.
  2. #2
  3. No Profile Picture
    Gotta get to the next screen..
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2003
    Location
    Legion of Dynamic Discord
    Posts
    6,675
    Rep Power
    3164
    Need more information to go on such as some example code and a better description.
    Quis custodiet ipsos custodes?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2006
    Posts
    660
    Rep Power
    31
    Why not put them all in one onEnterFrame function and use if statements for each code you want executed based on conditions?
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    2
    Rep Power
    0
    Thanks, managed to figure it out myself. Right now am trying to remove a hitTest object
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2006
    Posts
    660
    Rep Power
    31
    Tanns, right you know. It would be best to show some form of code samples of what you are talking about. It's like asking for directions without saying what your destination is?

IMN logo majestic logo threadwatch logo seochat tools logo