Skip to main content
Known Participant
February 23, 2012
Question

Movie Clip is a class but i can't call it's functions?

  • February 23, 2012
  • 1 reply
  • 478 views

Hi,

I have a document class that assigns some button on the stage an function.

I have 2 cards on the stage. They have their own class.

From the buttons script i can trace the cards and i get:

[object MovieClip]

But I cannot call a function in them like

card_0.flipUp();

it errors:

TypeError: Error #1006: dimMe is not a function.

the card class is public starts out like:

 

       public class FlipCard extends MovieClip {

 

 

 

The function is public:

                    public function dimMe ():void {

                              this.alpha = .1;

                    }

 

 

 

Now, it's been a while since i have worked in flash so i am totally rusty. I sure hope this is something incredibly stupid i am forgetting!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 23, 2012

it's not clear what flipUp() has to do with dimMe() and it's not clear what custom class card_0 is a member of.  so, try that explanation again.