Actionscript 101

Many elements of the Videoplaza ad formats are swf files thay may be customized in almost any way you want. Basically, you can do anything you want within Actionscript inside your custom swf files.

There are however a few exceptions:

  • Since your assets are loaded dynamically into our plugin, which in turn is loaded into the publishers’ video players, the stage or the root of the Flash object is not available. Cross-scripting is not allowed, which means that any code trying to reference objects in the player will fail. Make sure that all Actionscript code that references objects within your swf are of relative paths and not absolute. Remember, you don’t have access to root.
  • You don’t have to put clicktags in your creatives. The Videoplaza platform will take care of making the assets clickable and have them lead to the specified landing page URL.
  • Since your swf file is loaded into the context of the video player you cannot rely on the borders of your stage to mask out content that extrudes your stage. In the same manner the background color of your stage will have no effect. In other words, make sure that you have a object acting as background if you want a colored background of your swf, and a mask to prevent content outside the borders of your stage to be seen.
  • You are allowed to load external assets into your custom swf files, you are however not allowed to stream video inside the overlay banner as it might interfere with the streaming of the content if the end user’s bandwidth is limited. In all other custom swf assets you are however free to load video dynamically.
  • Your swf file must be AS2 based and compiled for Flash 8 or earlier to be guaranteed to work.
  • Since Flash player prevents keyboard input when in full screen mode, you are advised to take this into account if you plan to have forms or other elements expecting keyboard input from the end user.