A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Writing code funtion is pink not blue

  1. #1
    Junior Member
    Join Date
    Aug 2016
    Posts
    11

    Writing code funtion is pink not blue

    I am working in Adobe Animate CC

    CCUploadTextColour.jpg

    I am following an AS3 tutorial. The script I have attached(screenshot) works perfectly but 'function' and 'if' are displaying in pink in my Actions window yet are showing in Blue in the example I am following.
    Does any wise member know why the difference in colour between the two examples. I am just a bit confused as to why my script shows 'function' and 'if' in pink.

    Thanks guys,

    Peace.

  2. #2
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,835
    Not what you're asking for but that code can be condensed with the switch statement: http://www.republicofcode.com/tutori...ash/as3switch/. I can't think of any real answer for what you're asking.
    .

  3. #3
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    if you click under the x of the actions window on top right you can click preferences and change the syntax colors, the example likely had it customized.

  4. #4
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,835
    That is a possibility. I just didn't think it was likely considering it shows up differently in app vs in screenshot.
    .

  5. #5
    Junior Member
    Join Date
    Aug 2016
    Posts
    11
    Thanks guys. Alloy Bacon you had it right. Although now in Adobe Animate that menu in the Actions Panel has been removed. I used the keyboard shortcut Ctrl U to bring up the preferences. Seems like the Actions Window has been going backwards since they renamed Flash to Animate.

    Thanks again for the help guys.

  6. #6
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    hey not a problem , and speaking of blue, I just finished my study of Bluetooth 4.0 to work in adobe as3 air for ios/android and published a working version, lots of new possibilities with that.
    Last edited by AS3.0; 07-10-2019 at 10:55 PM.

  7. #7
    Junior Member
    Join Date
    Jul 2019
    Posts
    3

    New

    You have a great site
    I read this full post
    I enjoyed
    Good luck !

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