It is currently 23 May 2017, 04:11



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
Image

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."
http://help.adobe.com/en_US/ActionScrip ... -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
package
{
   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 =    
      <parameters>
            <parameter id="Team1Image" type="string" info="File URL for Flag Home" />
      </parameters>;
   
      override public function SetData(xmlData:XML):void
      {         
         for each (var element:XML in xmlData.children())
         {
           if (element.@id == "Team1Image")       
           {
              PlayeridGroup.Image1.source = element.data.@value.toString();
           }
          
         }
         super.SetData(xmlData);      
      }
   }
}


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

Return to Tech and Development

Who is online

Users browsing this forum: No registered users and 5 guests