Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Align to stage after changing canvas size

New Here ,
Jun 06, 2017 Jun 06, 2017

So I've made my work in a 336x380 canvas. When I use align to stage it works perfectly. But if I change the canvas to, for example, 728x90 it won't work properly. If I use align to stage it doesn't center with the canvas. Is there a way to fix this?

1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Jun 09, 2017 Jun 09, 2017

No, that's your issue.  If you try to align within a symbol, it will be aligning based on the size of the symbol, not the size of the main stage.

If you need to align things to the main stage from inside a symbol, a trick would be to create a rectangle the size of your stage, make it a guide layer inside your symbol, and align your objects to that.

Otherwise, you could just keep always the items in your symbol at the 0 x  and y positions, and align to the stage via the main timeline instead.

Translate
LEGEND ,
Jun 06, 2017 Jun 06, 2017

I just tested this and it worked fine.

How, EXACTLY, are you changing the canvas size?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 07, 2017 Jun 07, 2017

First, thanks for your reply.

I work in a HTML5 canvas. Under properties there is size: W: 336 H: 280. When I change the numbers to say: W: 728 H: 90 and align to the middle of the canvas, it doesn't go to the middle. Maybe I have a setting wrong or something, because I can't find the problem online.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 07, 2017 Jun 07, 2017

How, EXACTLY, are you attempting to align something to the middle of the canvas?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 07, 2017 Jun 07, 2017

1. I select the object I want to align to the middle of the canvas

2. I make sure I've 'Align to stage' checked

3. Under 'align' menu I click align vertical center or align horizontal centre

4. Object centres as if the canvas has the old size

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 07, 2017 Jun 07, 2017

Weird, that works fine for me. What version of Animate are you running?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 07, 2017 Jun 07, 2017

Are you trying to align things inside a symbol, or on the main timeline?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2017 Jun 09, 2017

I'm trying to align in a symbol, this should work the same right?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 09, 2017 Jun 09, 2017

No, that's your issue.  If you try to align within a symbol, it will be aligning based on the size of the symbol, not the size of the main stage.

If you need to align things to the main stage from inside a symbol, a trick would be to create a rectangle the size of your stage, make it a guide layer inside your symbol, and align your objects to that.

Otherwise, you could just keep always the items in your symbol at the 0 x  and y positions, and align to the stage via the main timeline instead.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2017 Jun 09, 2017
LATEST

Thank you very much, that is where i was wrong.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines