Problem in compiling skin with the as files in com directory

4 views
Skip to first unread message

Amit

unread,
Aug 8, 2010, 8:34:10 AM8/8/10
to reops
I copied the com folder from "REOPS\src\com" to folder "REOPS\src
\assets\skins" then tried compiling it in Flash CS5. It shows 12
warnings and 1 error. I am ok with warnings but can anybody help me in
getting rid of the below error.

C:\Documents and Settings\amit\Desktop\REOPS\REOPS\src\assets\skins\com
\realeyes\osmfplayer\controls\ClosedCaptionField.as, Line 13 1144:
Interface method get text in namespace
com.realeyes.osmfplayer.controls:IClosedCaptionField is implemented
with an incompatible signature in class
com.realeyes.osmfplayer.controls:ClosedCaptionField.

P.S. I havent changed anything in the code means "com" folder , just
pasted it in skins folder and tried to compile it.

David Hassoun

unread,
Aug 8, 2010, 8:43:09 AM8/8/10
to re...@googlegroups.com

Well first off I wouldn't move the com folder inwould just add a src path to the Fla for the root sec of the reops project. Then you also need to add the src directory of the OSMF closed caption project to the Fla and a swc or src of the OSMF as well. 

David Hassoun | [sent from my mobile phone]

> --
> You received this message because you are subscribed to the Google Groups "reops" group.
> To post to this group, send email to re...@googlegroups.com.
> To unsubscribe from this group, send email to reops+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/reops?hl=en.
>

Amit

unread,
Aug 8, 2010, 9:02:30 AM8/8/10
to reops
In Actionscript settings I added following paths to source path but
still getting same error.

C:\Documents and Settings\amit\Desktop\REOPS\REOPS\src
C:\Documents and Settings\amit\Desktop\REOPS\REOPS\[source path]
CaptioningPlugin
C:\Documents and Settings\amit\Adobe Flash Builder 4\1.0gm\framework
\OSMF\bin

Regards,
Amit

Amit

unread,
Aug 8, 2010, 1:33:38 PM8/8/10
to reops
Am I doing right? Can anybody try at their end and help me get out of
this problem? I want to modify ControlBar.as and I am getting stuck at
this point itself.

Regards,
Amit

Danny

unread,
Aug 9, 2010, 8:47:58 AM8/9/10
to reops
From the error (which is all we forumers can see at this point), you
appear to have a mismatch between the interface definition and the
impl class.

Have you checked the source of ClosedCaptionField.as against the
IClosedCaptionField.as in particular the get text method? I can't
imagine that you have a version incompatibility because "get text"
likely returns a String and likely returned a string throughout the
history of this class so perhaps you've had a mistaken edit or some
such thing.

I have compiled the project (in Flex) with version 24 of both (July
14th commit I believe) and all compiles fine..although sometimes in
Flex if you don't use or reference a class, the compiler doesn't pick
it up for error checking...but in any case, the signature between the
two agrees public function get text():String

And if that's your only error, it's not likely some biproduct of bad
configuration.

Amit

unread,
Aug 9, 2010, 2:00:08 PM8/9/10
to reops
The pre-compiled code stored in the Library was the culprit. I was
also pointing it to a source directory, so I ran into conflicts. So I
deleted the _code_ object in the library and recompiled. Now I dont
see any errors and warnings. Thanks a lot to Turbididty.

Regards,
Amit
Reply all
Reply to author
Forward
0 new messages