Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

parent scale vs child scale

This is a discussion on parent scale vs child scale within the advanced Actionscript 3.0 forums, part of the Flash CS3 eng category; I ran into some trouble when working with Sprite and MC scaleX and scaleY properties. One thing that was not ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng > advanced Actionscript 3.0

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-07, 01:07
Junior Member
 
Join Date: Oct 2007
Posts: 4
Rep Power: 0
dedavai is on a distinguished road
parent scale vs child scale

I ran into some trouble when working with Sprite and MC scaleX and scaleY properties. One thing that was not clear to me was what happens to the internal scale of an object when it's added as a child of another object that's also been scaled.

It turns out that the child objects are always visually scaled to the scale of the parent object, HOWEVER, their internal scaleX and scaleY remain the same.


I've included a flash cs3 fla to demo this behavior. Hope this helps someone.
Attached Files
File Type: fla parent vs child scaleX.fla (1.10 MB, 20 views)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 08-12-07, 06:53
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,434
Rep Power: 6
Flep is on a distinguished road
Re: parent scale vs child scale

Hi

It's the same of coordinates x and y.
I mean, when you attach a MovieClip into another, let's say the parent has x=100 and y=100. The child has x and y =0 but it is at 100,100 cause of the parent.
The same happens with scaleX and scaleY.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Actionscript 3 variables and functions from child movieclip coma Actionscript 3.0 newbies 8 04-08-08 09:17
Help unloading a child stevekeen Actionscript 3.0 newbies 5 10-03-08 23:59
[This, event.target, parent] ibrahack Actionscript 3.0 newbies 7 02-03-08 22:40
alpha ereditata da parent nootropic.kint Actionscript 3.0 base 2 30-11-07 07:36
Grey scale images with Actionscript 3.0 Flep Tutorials 0 27-09-07 21:04


All times are GMT. The time now is 23:32.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406