Jump to content


movieclip positioning in flash pro cc2015

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I'm not 100% sure this is the correct place to post this.


I have a question about Flash Pro CC 2015 when using the canvas file type. 


When I create a movieclip and set the registration point to the top left corner and place it on the stage. When I change the properties in the Properties panel and set the x and y values to 0 it moves to the top left corner like it should. But when I set these values using javascript this.mc.x = 0 and this.mc.y = 0; It uses the center point of the movie clip. So the top and left half of my mc are off of the stage. I'm not sure why this is. Does it have something to do with how the DOM reads the js file? I would like to have it when I write that code that it does the same thing as it does on the stage when i use the properties panel



Link to comment
Share on other sites

Hello icekomo


This is more of a CreateJS and Flash CC question, and not GSAP related.


The DOM would have nothing to do with this. Since the JavaScript parser is applying your code using the CreateJS library JS that is included in the page by Flash CC when published. Then running that code and applying it to the <canvas> element.


But here is a link to the CreateJS EaselJS Docs regarding the MovieClip Class:




And registration points regX and regY Docs:


regX: http://www.createjs.com/docs/easeljs/classes/MovieClip.html#property_regX


regY: http://www.createjs.com/docs/easeljs/classes/MovieClip.html#property_regY


Maybe something like this

//move registration point to center of your MovieClip
this.regX = this.width/2;		
this.regY = this.height/2;

But again im just shooting blanks here since i cant see your code. And really this not a GSAP related issue, but more of a CreateJS and Flash CC question.


Maybe this or Adobe Flash CC Support could help more:







  • Like 3
Link to comment
Share on other sites

Thanks for the help. I knew it wasn't a GASP issue, but really haven't had much luck in figuring anything out.
It's really odd, when I use:


this.regX = 0;        
this.regY = 0;


It still uses the center point of the movieclip instead of the top left corner. I'll read up on the links you sent me.


Thanks again!



Link to comment
Share on other sites

  • 1 month later...

If you have not solved this, why not use the transform tool in Flash to manually your reg point. When you create an MC you can choose where your reg point is. so I just created one with top left, but I still had a reg point in the center.


One of the speakers at one of the MAX Flash CC createjs presentations definitely talked about this, I just can't remember which one.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.