Groups | Blog | Home
all groups > flash actionscript > october 2007 >

flash actionscript : Adding import fl.video causes a compiler error


ScottEOsborn
10/6/2007 10:08:00 PM
So I added this to my action script:

import fl.video;

And got these compile errors:

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

Checked my version, and I DO have CS3 Professional.

I'm assuming I'm missing something really easy. Help?

Thanks,
Scott Osborn
myIP
10/6/2007 10:19:08 PM
fl.video is just the package. You would need a wild card to access the classes;
import fl.video.*;
ScottEOsborn
10/6/2007 10:30:52 PM
myIP,

Tried that, and no go.

Went to Edit->Preferences...->ActionScript
Clicked the "ActionScript 3.0 Settings..." button.

Looked in that path, and it wasn't there. Did a search on my Flash CS3 folder
and found what looked to be the video playback code in:

...\Component Source\ActionScript 3.0\FLVPlayback

Added that to path to the "ActionScript 3.0 Settings".

Tried it, and I'm in.

I THINK this is the solution, but will have to wait until I've tested all the
functionality.....

Thanks man,
Scott
ScottEOsborn
10/7/2007 1:13:46 AM
Short answer: The path to the fl.video package wasn't in the ActionScript 3.0
setttings.

To fix it:
Go to Edit->Preferences...->ActionScript
Click the "ActionScript 3.0 Settings..." button.

The video playback code is in:

[Config folder]\Component Source\ActionScript 3.0\FLVPlayback

Add that path to the "ActionScript 3.0 Settings".

At least, that fixed it for me.
myIP
10/7/2007 2:09:21 AM
That seems odd. You shouldn?t have to change or even go into the global
classpath config settings to get access to the FLVPlayback class.

I was able to access the FLVPlayback class using the wildcard in the import
statement.
AddThis Social Bookmark Button