I’m having a problem with dynamic images loaded in flash, I need to animate them in the beginning (in) and in the end (out), along with text and BG imported from sequences of images, like a flash template (bottom third, basic and simple) . The problem is that I put any animation as a movement (classic interpolation), for example, at the beginning (In), I export in .ft and run on the CasparCG playout server. However, the changed dynamic image appears static and still until the end of the flash template.
I’ve tested this with your file.
If you insert the UILoader into a symbol it does animate as expected.
Make sure you nest all parts correctly.
Create a new symbol.
The symbol has a name, eg. classIcon
Insert your UILoader in to it.
The UILoader has an instance name eg. icon
Put an instance of the classIcon on your timeline.
The instance of classIcon has a name, eg. weatherIcon
Your SetData function should do:
weatherIcon.icon.source = element.data.@value.toString();
I tried it that way too, but it made a mistake in the code call, while exporting in .ft, maybe you mentioned the instance name in the .as code wrong, but I’ll follow it step by step.
As a rule: Whenever you put something into a movieclip, the name of the movieclip is added to the object’s name. Let’s say you have a textField called myText. Put it insife a movieClip named myMovieclip, in ActionScript to access for instance the text property of myText it reads myMovieclip.myText.text = “whatever”; This rule aplies for every container (movieclip) you wrap your stuf in. Ending in hugeMovieclip.bigMovieclip.smallerMovieclip.smallMovieclip.myTextfield.text=“blabla”; Do you see the pattern?
For some strange reason my templategenerator does not output the .as parameters i am giving it. I have done both the dynamic image setup (TeamStatistics.as and weather.as) and both give me the right parameters at Temp. Gen.
A basic setup with a UILoader and a scriptfile.
The generator returns me following:
<components></components>
<keyframes></keyframes>
<instances></instances>
<parameters></parameters>
</template>
-----------------------------------------------------
***Info***
The CasparCG flash template was successfully created! You can find the .ft file in:
While the Weather returns the correct .as parameters
I might be something inside my .fla, not sure. Seems pretty forward to me in the guides. I have the same issues with the TeamStatistics file in the guide. Cant load the pngs