# Display vpaid ad in custom player using action script 3

**URL:** <https://forum.kirupa.com/t/display-vpaid-ad-in-custom-player-using-action-script-3/332105>\
**Category:** Uncategorized\
**Created:** [January 30, 2014, 4:49am UTC](https://forum.kirupa.com/t/display-vpaid-ad-in-custom-player-using-action-script-3/332105 "2014-01-30T04:49:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SmartSneha](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@SmartSneha](https://forum.kirupa.com/u/SmartSneha)\
**Post date:** [January 30, 2014, 4:49am UTC](https://forum.kirupa.com/t/display-vpaid-ad-in-custom-player-using-action-script-3/332105/1 "2014-01-30T04:49:06Z")

</div>

I have developed custom player using action script 3 to play vpaid ad. I have XML tags for eg :“[http://ad2.liver.com/?LR\_PUBLISHER\_ID=342431&LR\_SCHEMA=vast2-vpaid&LR\_AUTOPLAY=1&LR\_CONTENT=6&LR\_TITLE=@videoTitle&LR\_VIDEO\_ID=@videoId](http://ad2.liver.com/?LR_PUBLISHER_ID=342431&LR_SCHEMA=vast2-vpaid&LR_AUTOPLAY=1&LR_CONTENT=6&LR_TITLE=@videoTitle&LR_VIDEO_ID=@videoId)” which returns vpaid ad(.swf file) which is suppose to be displayed in the player but its giving some error as “TypeError: Error #2007: Parameter child must be non-null.at flash.display:: DisplayObjectContainer/addChild()”. Why it is giving this error?
