I'm trying to add a VideoEvent.COMPLETE listener to an flv and I keep getting an error saying: "1172: Definition fl.video could not be found."
As a result I imported the video class:
Code:
import fl.video.VideoEvent;
and I also tried import fl.video.*; but the error still persists.
This seems pretty straight forward to me and I can't figure out why the compiler can't find the definition. Could it be a problem with my flash installation? I'm using Flash CS3 on a mac.
Re: 1172: Definition fl.video could not be found.
I had a similar issue on my Windows XP installation. I believe the error arises because your component definitions are not in their standard locations, see http://livedocs.adobe.com/flash/9.0/...=00000388.html
My components are installed on F: rather than C: drive. A solution was to add the correct path the Classpath. On the XP installation of CS3 Flash:
- Select Menu Edit > Preferences...
- Select ActionScript in the list at left
- Click the ActionScript 3.0 Settings button
- The use Navigate to Folder to add the correct folder.