Skip to main content
Inspiring
November 30, 2011
Question

Access of possibly undefined property COMPLETE

  • November 30, 2011
  • 2 replies
  • 1743 views

Hi

I'm building a simple AIR app to test video on the iPad... (in Flash CS5.5)

I dropped a FLVPlayback component on the stage, and hooked it up to an external flv file.

I've added some code (all on the stage) to check for when the video has stopped playing:

import fl.video.*;

flvPlayback.addEventListener(VideoEvent.COMPLETE, videoFinished);

But I'm getting a compiler error:

Scene 1, Layer 'STOPS', Frame 2, Line 21119: Access of possibly undefined property COMPLETE through a reference with static type Class.

This all works fine if I build for Flash Player 10 & 10.1

But when I build for AIR for iOS I get this error... any thoughts?

Thank you

-rich

This topic has been closed for replies.

2 replies

flextnetAuthor
Inspiring
November 30, 2011

For some reason, moving the code from the timeline to a Class file fixed it. I've no idea why.

-rich

Participant
December 8, 2011

Hi,

I have a same problem. How did you fixed it? Thanks

flextnetAuthor
Inspiring
December 10, 2011

Hi

I originally had the code in a frame on the timeline of my fla.

All I did was create a Document root AS class file (.as) and put the code in there... for some reason the problem went away after that.

Colin Holgate
Inspiring
November 30, 2011

I don't know if it will affect it, but do you have a controller? Those can't work with iOS, so set that to None.

flextnetAuthor
Inspiring
November 30, 2011

You mean set the 'skin' to 'None'? I tried it, but still got the same error.

I think I may have screwed up my libraries somehow for AIR... it should be linking to AIR 3.0.

Did they change the definition of VideoEvent or something like that?

-rich