Group scaling moving issue

Good Morning,

I must not be getting it.  Can someone tell me what my group does not scale or move with this code:

chap1_5Group = self.view

television = display.newImage(tmis3imageSheet,teleindex)
television.x = centerx
television.y = centery
–television:scale(1,1)
chap1_5Group:insert(television)
–transition.to( television, {time=3000, yScale=2.5, xScale=2.5, y=television.y+600})

testpattern = display.newImage(tmis3imageSheet,testpatternindex)
testpattern.x = centerx
testpattern.y = centery-100
–testpattern:scale(1,1)
chap1_5Group:insert(testpattern)

chap1_5Group:scale(.1,.1)
chap1_5Group.x = centerx
chap1_5Group.y = 0
–transition.to( chap1_5Group, {time=3000, yScale=2.5, xScale=2.5, y=chap1_5Group.y+600})

I would expected the bolded line to scale everything in the group to .1 size, but it does not.  It does not move the gorup to y = 0 either.

Any ideas?  Am I all wet?

thanks!!!

Arthur

y = 0 is the default so there is nothing to move. I think what you want to do is move the inserted objects to 0 you would get this if you set chap1_5Group.anchorChildren = true; chap1_5Group.y = 0. Might also get the scaling to work, not sure about that.

Hi,

When I execute the transition on the group that is commented out the group will move. The scaling however does not work

I tried the anchor thing that did not work either.

Thanks,

Arthur

have you tried different scale values like .5, .5. Does this work?

Hi There,

I found the problem!  I was trying to use the screen.view group to do all of this.  I created a new group just for the objects I wanted to zoom and it worked like a champ!

Thanks,

Arthur

y = 0 is the default so there is nothing to move. I think what you want to do is move the inserted objects to 0 you would get this if you set chap1_5Group.anchorChildren = true; chap1_5Group.y = 0. Might also get the scaling to work, not sure about that.

Hi,

When I execute the transition on the group that is commented out the group will move. The scaling however does not work

I tried the anchor thing that did not work either.

Thanks,

Arthur

have you tried different scale values like .5, .5. Does this work?

Hi There,

I found the problem!  I was trying to use the screen.view group to do all of this.  I created a new group just for the objects I wanted to zoom and it worked like a champ!

Thanks,

Arthur