It is currently 28 Jun 2017, 20:21



Use AS3 to edit animation created in Flash

Videos, graphics, Flash templates – how to create and play them using CasparCG

Moderators: Macey, Jonas Hummelstrand, didikunz

Use AS3 to edit animation created in Flash

Postby dlp » 09 May 2017, 13:28

Is there a way to alter/edit an animation created in Flash... using AS3 ?

For example during 'in' animation, i want a rectangle to shrink from width=100 to width=50... except that i also want to change the '50' value during SetData...
dlp
 
Posts: 8
Joined: 27 Aug 2016, 13:43

Re: Use AS3 to edit animation created in Flash

Postby didikunz » 09 May 2017, 18:13

Short answer; Yes. Long answer: It will probably not work, when you do your animation on the main timeline. I would suggest moving it into a MovieClip (put a stop(); action frame at the first frame) and start it from the play() routine. So you have everything under control. Needless to say, that the object you want to manipulate needs an instance name...
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: 3480
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland


Return to Content

Who is online

Users browsing this forum: No registered users and 2 guests

cron