Reply
New Member
whoisbenli
Posts: 9
Registered: ‎11-30-2010
0 Kudos
Accepted Solution

Static variables in Ad Display Swf

Hi,

 

I am creating an AdDisplaySwf, which loads another swf at the start. It is meant to be inserted at the preroll insertion point, but i dont want to have to reload the swf every time the AdDisplaySwf is constructed. I tried keeping a reference to the class being loaded (ie loader.content.constructor) in a static class variable in the AdSwf subclass, but it doesn't seem to be preserved across instantiations of the AdSwf.

 

Any suggestions?

New Member
whoisbenli
Posts: 9
Registered: ‎11-30-2010
0 Kudos

Re: Static variables in Ad Display Swf

Nevermind, I figured it out -  the AdRules Swf api will help me with this.

New Member
whoisbenli
Posts: 9
Registered: ‎11-30-2010
0 Kudos

Re: Static variables in Ad Display Swf

Nevermind, I figured it out -  the AdRules Swf api will help me with this.

Brightcove Team
BC-BrianD
Posts: 275
Registered: ‎12-10-2008
0 Kudos

Re: Static variables in Ad Display Swf

We completely unload the ad SWF, and as you've figured out, and the ad rules SWF is one way to keep an ad SWF around.   You can also just do it with an ad translator if you want to keep using our built-in ad policy screen in the ad module.

-----
Brian Deitte, Brightcove player developer
http://twitter.com/bdeitte