Can I handle in Animate CC UI symbol with external class AS3 definition ?

ساخت وبلاگ
Hi everybody,

I'm not much trained in AS3 and (formerly) Flash but I know object-oriented concepts and have already realised little projects either in pure AS3 or with Flash Professional CC (and now Animate CC) user interface. I want to mix classes scripting in FlashDevelop with Animate graphical object and timeline handling, and as a result of the amount of time I've spent googling and surfing tutorials and forums, I guess that what I expected to be able to do is probably impossible - but at least I have to ask the question to experienced coders !

Now here is the issue : when I define in Animate a symbol that I link to an external class I wrote previously in FlashDevelop, it doesn't show off in Animate, though it will compile and be visible when I check the animation or publish it. (I'm not talking of AS3 code on the timeline, but of something.as files in the root folder).

What I would like to do : write a class in FlashDevelop, let's say for example Dice.as, with a constructor like Dice(points: uint) and then create a tween in Animate CC from an instance of Dice(1) to Dice(6) (with some key frames in between, but that's not the main point) so that one would see the dice rolling and stopping on the "six" face.

I can't - just because my dice won't show off until I check the animation. So I said to my myself, well, I'm relying on my Main.as as document class to do the job, and obviously it is interpreted only at compilation time.

What if I create the "Dice" symbol in Animate and link it to Dice.as ? I felt I was coming close to the solution. :cool: Unfortunately, when I try to drag it from the library onto the stage, only the anchor point (?) will appear as a little circle. Not very easy to manipulate. Dimensions are 0 and Animate won't let me change that, with an error message. :(

I am trying to make a barrow take off, or just not pressing the right button ? Thanks in advance for your advices !

(As you probably could notice I'm French and some explanations could be a bit confuse or make no sense, I would be glad to bring more precisions)
CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 209 تاريخ : شنبه 18 شهريور 1396 ساعت: 4:26