SWC binding error

590 views
Skip to first unread message

plamena.m...@iqdigital.de

unread,
Oct 25, 2013, 4:48:39 AM10/25/13
to ima...@googlegroups.com
Hello,

do somebody know a solution of following problem?

Ich try to bind the Google IMA SDK to my Flex Project in FlashDevelop by using the Google Example Files (SdkIntegrationExmapleFlex3.as; SdkIntegrationFelx3.mxml; VideoPlayerFlex3.as). But it comes always thr following errors:



Loading configuration file C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\frameworks\flex-config.xml
C:\Users\..\project\src\SdkIntegrationExampleFlex3.as(112): col: 52 Error: Type was not found or was not a compile-time constant: AdsManagerLoadedEvent.

    private function adsManagerLoadedHandler(event:AdsManagerLoadedEvent):void {
                                                   ^

C:\Users\..\project\src\SdkIntegrationExampleFlex3.as(168): col: 48 Error: Type was not found or was not a compile-time constant: AdErrorEvent.

    private function adsLoadErrorHandler(event:AdErrorEvent):void {
                                               ^

C:\Users\..\project\src\SdkIntegrationExampleFlex3.as(178): col: 55 Error: Type was not found or was not a compile-time constant: AdErrorEvent.

    private function adsManagerPlayErrorHandler(event:AdErrorEvent):void {
                                                      ^

C:\Users\..\project\src\SdkIntegrationExampleFlex3.as(201): col: 57 Error: Type was not found or was not a compile-time constant: AdEvent.

    private function contentPauseRequestedHandler(event:AdEvent):void {
                                                        ^

C:\Users\..\project\src\SdkIntegrationExampleFlex3.as(215): col: 58 Error: Type was not found or was not a compile-time constant: AdEvent.

    private function contentResumeRequestedHandler(event:AdEvent = null):void {
                                                         ^

C:\Users\..\project\src\SdkIntegrationExampleFlex3.as(225): col: 43 Error: Type was not found or was not a compile-time constant: AdEvent.

    private function startedHandler(event:AdEvent):void {
                                          ^

C:\Users\..\project\src\SdkIntegrationExampleFlex3.as(242): col: 51 Error: Type was not found or was not a compile-time constant: AdEvent.

    private function allAdsCompletedHandler(event:AdEvent):void {
                                                  ^

Done(7)


Thanks
Message has been deleted

Mandazhieva, Plamena

unread,
Oct 25, 2013, 10:30:29 AM10/25/13
to ima...@googlegroups.com

Hello,

 

yes the library is correct imported and the the top of the file is also correct   import com.google.ads.ima.api.AdErrorEvent;

  import com.google.ads.ima.api.AdEvent;

…..

 

I see the following when I start to build the videoplayerflex3.as  

 

Flex compiler process starting:

java.exe -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=US -classpath "C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\lib\mxmlc.jar;C:\Users\mandazhieva\AppData\Local\FlashDevelop\Data\AS3Context\Flex4Shells.jar" Mxmlc4Shell

Loading configuration file C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\frameworks\flex-config.xml

C:\Program Files (x86)\FlashDevelop\Projects\140 ActionScript 3 - Flex 3 Project\src\VideoPlayerFlex3.as: Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.

 

C:\Program Files (x86)\FlashDevelop\Projects\140 ActionScript 3 - Flex 3 Project\VideoPlayerFlex3.swf (2541 bytes)

Done(0)

[No debug Flash player connection request]

 

Where can I either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option ?

 

Thanks

 

Von: ima...@googlegroups.com [mailto:ima...@googlegroups.com] Im Auftrag von Bret McGowen
Gesendet: Freitag, 25. Oktober 2013 16:25
An: ima...@googlegroups.com
Betreff: Re: SWC binding error

 

Hello,

 

Can you verify that the the file SdkIntegrationExampleFlex3.as has the correct imports? Top of the file should be:

  import com.google.ads.ima.api.AdErrorEvent;

  import com.google.ads.ima.api.AdEvent;

  import com.google.ads.ima.api.AdsLoader;

  import com.google.ads.ima.api.AdsManager;

  import com.google.ads.ima.api.AdsManagerLoadedEvent;

  import com.google.ads.ima.api.AdsRenderingSettings;

  import com.google.ads.ima.api.AdsRequest;

  import com.google.ads.ima.api.ViewModes;

 

 

Also, can you double-check that you've installed the SWC file (see: SWC file installation instructions / FlashDevelop in https://developers.google.com/interactive-media-ads/downloads)

 

 

Thanks,

Bret McGowen, IMA SDK Team

--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/-rGo8_ehzFk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+u...@googlegroups.com.
To post to this group, send email to
ima...@googlegroups.com.
Visit this group at http://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/groups/opt_out.



Plamena Mandazhieva
IQ DIGITAL Campaign Management
 
iq media marketing gmbh
Ein Unternehmen der Verlagsgruppe Handelsblatt
Kasernenstraße 67
40213 Düsseldorf
 

Telefon   +49 211 887 2655
Fax         +49 211 887 97 2655
E-Mail     Plamena.M...@iqdigital.de
Web
        www.iqm.de
 
iq media marketing gmbh;
HRB 27830 Düsseldorf
Geschäftsführung: Martin Fischer, Christian Herp, Franjo Martinovic


Bret McGowen

unread,
Oct 25, 2013, 5:43:54 PM10/25/13
to ima...@googlegroups.com
The message about shared libraries is a warning not an error so that shouldn't be a problem; however if you do want to change the compilation options you can do so in the C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\frameworks\flex-config.xml config file. 

Thanks,
Bret McGowen, IMA SDK Team



To unsubscribe from this group and all its topics, send an email to ima-sdk+unsubscribe@googlegroups.com.


To post to this group, send email to

Reply all
Reply to author
Forward
0 new messages