It is currently 28 Jun 2017, 08:12

Place .swf file into UILoader

CasparCG Server, Client and development

Moderators: Macey, Jonas Hummelstrand, didikunz

Place .swf file into UILoader

Postby gilar » 14 Apr 2016, 13:01

I have succses to put Image into UILoader
here is my thread before viewtopic.php?f=5&t=3495&p=23909#p23909

What i'm trying to do is .... I want to create a Soccer Graphic template for LineUp
Like in this picture

I want to change Player image with video. the format will be in .swf
I read on Adobe page that
"The UILoader component is a container that can display SWF, JPEG, progressive JPEG, PNG, and GIF files." ... -7f9d.html

Just now i try load .swf file with my script before but It never works.

here is my AS3 Script:
Code: Select all
   import flash.display.MovieClip;
   import se.svt.caspar.ICommunicationManager;
   import se.svt.caspar.IRegisteredDataSharer;
   import se.svt.caspar.template.CasparTemplate;
   import fl.containers.UILoader;   
   public class UILOADER extends CasparTemplate
      private const customParameterDescription:XML =    
            <parameter id="Team1Image" type="string" info="File URL for Flag Home" />
      override public function SetData(xmlData:XML):void
         for each (var element:XML in xmlData.children())
           if (element.@id == "Team1Image")       
              PlayeridGroup.Image1.source =;

Comment and help would be Appreciate
Gilar Kadarsah | Graphic Engineer | Custom SportCG | | Youtube: Gilar Kadarsah | IG @gilarkadarsah | Jakarta, INDONESIA
User avatar
Posts: 50
Joined: 26 Aug 2014, 23:51
Location: Jakarta | INDONESIA

Return to Tech and Development

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests