• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Frames duplicate custom cursor in AIR

New Here ,
Jan 28, 2022 Jan 28, 2022

Copy link to clipboard

Copied

I'm using frames to make my test app, and I added a custom cursor because I'm bored of the old plain cursor. The frames duplicated my cursor whenever it restarts from the first. How do I fix this?

TOPICS
ActionScript , Code , Error

Views

70

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 28, 2022 Jan 28, 2022

Copy link to clipboard

Copied

LATEST

put the code you don't want to repeat within an execute once conditional:

 

if(!this.executed){

// code you don't want to repeat

this.executed=true;

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines