It is currently 23 Jun 2017, 09:41



Help on UILoader

Help to specific problems with your setup, or discussing CasparCG bugs

Moderators: Macey, Jonas Hummelstrand, didikunz

Help on UILoader

Postby arnar » 07 Oct 2014, 08:45

Hi,

Ive been using Caspar for some time for a gymnastics application and its worked like a dream. Now I need to add some team / country logos / flags and used this excellent tutorial (http://casparcg.com/wiki/Content_/_Medi ... h_Template).

Had it working in minutes, BUT when I put the Symbol holding the UILoader into a tween the image completely disappears and will not appear again on SetData.

So my question is, is it impossible to tween UILoader or what am I doing wrong ? The tween is only bringin the image from height 1 to 66 over 25 frames.

If you can help it would be greatly appreciated.

Regards.
arnar
 
Posts: 3
Joined: 06 Oct 2014, 18:22

Re: Help on UILoader

Postby didikunz » 07 Oct 2014, 08:59

You can animate anything, but you must do it from ActionScript, using a library like Tweener or GreenSocks. The tutorial, that you mentioned, left this out for simplicity. In the Wiki there is a paragraph about advanced template creation, that gives an overview of what other routines can be overwriten to handle play, stop, etc.

I can post a link to another example, when I am back at my desk.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3477
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Help on UILoader

Postby arnar » 07 Oct 2014, 09:55

Hey, that would be greatly appreciated.
arnar
 
Posts: 3
Joined: 06 Oct 2014, 18:22

Re: Help on UILoader

Postby didikunz » 07 Oct 2014, 15:32

See this link https://dl.dropboxusercontent.com/u/13685023/Team_Statistics.zip. Please be aware, that this template is COPYRIGHT PROTECTED by the FIVB Fédération Internationale de Volleyball and may not used in any form. I provide this link only for an example, so that you can see, how the animations using Tweener https://code.google.com/p/tweener/ are done. Tweener needs to be installed, before the template will compile. Hope this helps
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3477
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Help on UILoader

Postby Kibim » 07 Oct 2014, 16:03

Thanks for this. sort of makes sense. I'm using Flash CC, and it doesn't seem to like installing tweener, although the file still compiled and ran.

Will have to go through the scripting to find out where/how you animated the items.
Kibim
 
Posts: 49
Joined: 25 Jul 2013, 19:59
Location: South Africa

Re: Help on UILoader

Postby arnar » 08 Oct 2014, 23:39

Thanks for this Didi.

I´m pretty new to Flash but I've been programming for to many years.

I can't seem to get the caurina.transitions to work....

I always get a 5001:

It seems like the compiler cannot locate caurina.transitions.Tween

The exact error is "**Error** D:\Caspar\classes\Tweener.as, Line 1 5001: The name of package 'caurina.transitions' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. D:\Caspar\classes\Tweener.as"

I added the D:\caspar\classes directory in Preferences->actionscript->actionscript3->Source Path ... and according to the error it says its looking there. (This is where I stored Tweener.as and what came with the zip.

I must be doing something really simple the wrong way.

Any pointer appreciated.

Regards
arnar
 
Posts: 3
Joined: 06 Oct 2014, 18:22

Re: Help on UILoader

Postby didikunz » 09 Oct 2014, 05:20

I installed mine some years ago. So I don't remember how I did that. Have you try to find installation instructions on Tweeners homepage? Or on Google?
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3477
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Help on UILoader

Postby d3aak117 » 20 Nov 2016, 09:16

in the sample tam statistic how could call the Image in caspar CG client
actually I face this problem >> the text show on but I couldn't put the Images
d3aak117
 
Posts: 48
Joined: 26 Nov 2015, 13:24


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest