dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: processor power control?

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Posts
    336
    hi

    in my movie i have a bunch of MCs with an

    onClipEvent (enterFrame) {}

    type of code on them, which is constantly cycling when the movie is playing but is essential to my movie's presentation. Due to this, the movie takes up a massive amount of the computer's processing power and the everything becomes very sluggish. does anyone know how i can control the enterFrame cycling better so that it doesn't take up so much of the processor's power? thanks for your help!

  2. #2
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food
    Posts
    3,789
    why do you have to use it so much?... can you show one example of where your using onEnterFrame...

  3. #3
    Senior Member
    Join Date
    Dec 2000
    Posts
    336
    ok here is an example:

    onClipEvent (enterFrame) {
    if (this.rspin == 1) {
    this._rotation += 5;
    }
    if (this.lspin == 1) {
    this._rotation -= 5;
    }
    }

    the code has to be cycling like this bc the user could enable rotation action at any time. any ideas?? thanks!

  4. #4
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food
    Posts
    3,789
    how do they enable rotation? pressing a button? rollover/out?

  5. #5
    Senior Member
    Join Date
    Dec 2000
    Posts
    336
    ya pressing a button..thanks for your help!

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