Follow

Sizmek pre-defined methods can be used for various functions inside an ad.

The function uses a trace command to report the clickthrough action to the output panel, as well as when not using the Ad Builder for Flash’s preview monitor.

General Requirements

  • Sizmek Include File: Make sure to add the ‘ebFlashActions include’ file in the first frame of your Flash asset.
  • Flash 5 Support: If you are publishing the FLA to Flash 5, you must add _root before the function name as shown below:
    _root.EB.AutomaticEventCounter();

FS-Commands have been replaced with Methods. Methods provide useful functionality for controlling how the ad displays, terminates, or transitions between panels. Ads make use of these methods within the Flash movie for all interactions that can occur within the ad and need to be reported back to the Sizmek servers.

Below, please find a table with the old commands and the new corresponding method names.

FS-Command Name

Method Name

ebInteraction

//to click through

EB.Clickthrough("InteractionName1")

//to count user actions

EB.UserActionCounter("InteractionName1")

//to count auto initiated events

EB.AutomaticEventCounter("InteractionName1")

ebEndTimer

EB.StopTimer("TimerName")

ebStartTimer

EB.StartTimer("TimerName")

Rich Media

FS-Command Name

Method Name

ebHide/

 

ebAutoHide

//to hide the panel by user initiation

EB.CollapsePanel("Panel1","User")

//to hide the panel automatically

EB.CollapsePanel("Panel1","Auto")

ebShow/

 

ebAutoShow/

 

ebShowWhenReady

//to show the panel by user initiation

EB.ExpandPanel("Panel1","User")

//to show the panel automatically

EB.ExpandPanel("Panel1","Auto")

//to show the panel by user initiation once fully loaded

EB.ExpandPanel("Panel1", "whenready")

ebLoadRichFlash

EB.LoadRichBanner()

ebStartRichFlash

EB.ShowRichBanner()

Out Of Banner

FS-Command Name

Method Name

ebHide/

 

ebAutoHide

 

//to hide the intro by user initiation

EB.HideIntro("User")

//to hide the intro automatically

EB.HideIntro("Auto")

ebQuit/ebClose/

 

ebAutoClose

 

//to close the ad by user initiation

EB.CloseAd("User")

//to close the ad automatically

EB.CloseAd("Auto")

ebClick

EB.GoToMinisite()

ebEndOfMovie

EB.IntroFullPlay()

ebKeepAdOpen

EB.KeepAdOpen()

General

FS-Command Name

Method Name

ebReplay/

 

ebAutoReply

 

//to replay the ad by user initiation

EB.ReplayAd("User")

//to replay the ad by automatically

EB.ReplayAd("Auto")

ebShake

Deprecated

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments