Skip to main content
Participant
January 6, 2010
Question

as3 MainTimeLine.as class & import fl.video.FLVPlayback

  • January 6, 2010
  • 2 replies
  • 1101 views

hello one and all,

i am creating a package, MainTimeLine.as, to extend my main timeline.  i use the FLVPlayback component under the package.  however, i get the compile error:

1172: Definition fl.video:FLVPlayback could not be found.

so i added the "import fl.video.FLVPlayback;" line to my MainTimeLine.as file, but flash gives the above error.  now i had this problem when i added this code directly under a frame of the main timeline until i added a FLVPlayback instance to my library.  now, i am trying to simply embed all of the code under the MainTimeLine.as file and have the as file encapsulate all of it.  but, i still get that error.

so, how do i get flash cs4 to recognize and use the import properly?  thank you in advance.

This topic has been closed for replies.

2 replies

January 6, 2010

I believe you need an FLVPlayback component in your library.


kglad
Community Expert
Community Expert
January 6, 2010

create a new fla, add the flvplayback component to your library and assign the new fla's document class to be MainTimeLine and add your import statement.  if that doesn't solve the problem, copy and paste MainTimeLine here.