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

I need an assistant

New Here ,
Dec 25, 2018 Dec 25, 2018

Hi

I need an assistant and I do not know exactly what the problem is

When you apply the code, this message appears to me

Capture.PNG

160
Translate
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 ,
Dec 25, 2018 Dec 25, 2018

Hi.

The error means that you are trying to access an object, property, or method in line 176 of the frame 1, in the main timeline, that is not available at that moment or that doesn't exist at all.

But to tell you exactly what it is, we need to see your code.

Regards,

JC

Translate
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
New Here ,
Dec 25, 2018 Dec 25, 2018

tempsnip.png

The code for this lesson has been applied and has not been successful

Translate
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 ,
Dec 25, 2018 Dec 25, 2018
LATEST

Thanks.

There is an error in the change function. This is a handler function for mouse event listeners so it expects a MouseEvent as a paramater and not a MotionEvent.

Instead of this:

function change(e:MotionEvent):void

{

     mc1.transform.colorTransform = ct;

}

Should be this:

function change(e:MouseEvent):void

{

     mc1.transform.colorTransform = ct;

}

Please let us know if this fixes the issue.

Regards,

JC

Translate
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