Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2017
    Location
    Reunion Island
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 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. 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)

  2. #2
    New to the CF scene
    Join Date
    Sep 2017
    Location
    Reunion Island
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, as I haven't had any advice about that till now, I just want to say that I found a way to realize the animation I wanted to, though not as a combination of Animate CC and AS3 scripting. There are many tutorials on the web on how to animate a rotating cube, and I didn't know anything about 3D in Flash, so it was the opportunity to discover the features related to it. With a bunch of layers each one holding a side of a cube, rotations of a square to build the cube and rotation of the entire cube combined with motion tweek and color effects for the shades, it's not so hard to do.

    I remain interested by the question of combining AS3 coding and Animate CC. I'm pretty sure now that scripts effects can't be seen in Animate untill you check the animation, but I'll try instead to use classes built in Animate with timeline (for example a rotating cube) in an AS3 program, and also to code the same RotatingCube.as class in pure AS3 since there are functions dedicated to 3D rotation and positioning, and one can use listeners of frame events for the animation itself.

    It's learning at its beginning ... so your comments are welcome.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •