Skip to main content
Participant
February 19, 2008
Question

Implementing Interface

  • February 19, 2008
  • 2 replies
  • 254 views
I apologize in advance for the newbie question. Is it possible to have my flash file implement a top level interface. I am trying to create component in flash and I would like to define an interface which it will implement but i'm not sure where I would even add in the implement statement in flash.

This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
February 21, 2008
yes and no: you couldn't have your document class be your interface. your document class (or any other class) could implement your interface, though.
kglad
Community Expert
Community Expert
February 20, 2008
when you create your component class, it will implement your interface. so in your component's class file, you'll use something like:

public class yourComponentClass implements yourInterface{
jmirkinAuthor
Participant
February 20, 2008
kglad, thanks for responding. just one follow up question... i'm authoring my flash component in flash cs3. so i would associate my document with the class which implements the interface, correct? there isn't a way to have the document just implement an interface.