A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Mc position inside a scaled movieClip

  1. #1
    Senior Member somlemeg's Avatar
    Join Date
    Aug 2000
    Posts
    171

    Mc position inside a scaled movieClip

    I have a mc on stage. I want to add a new mc inside it and position it at the bottom of the mc.

    The code works fine when the container mc is 100% scaled, but when I scale it, the mc inside positions wrongly.

    Heres my code:
    PHP Code:
    // Lage scroller:
    var o0LbScroll:Object getChildByName("o0LbScroll");

    o0LbScroll.oppKnapp = new scrollKnapp;
    o0LbScroll.nedKnapp = new scrollKnapp;
    o0LbScroll.addChild(o0LbScroll.oppKnapp);
    o0LbScroll.addChild(o0LbScroll.nedKnapp);

    o0LbScroll.nedKnapp.o0LbScroll.height
    Any help is appreciated.
    Last edited by somlemeg; 01-24-2010 at 02:42 PM.

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Try this:

    PHP Code:
    o0LbScroll.nedKnapp.o0LbScroll.height * (o0LbScroll.scaleY); 
    Please use [php] or [code] tags, and mark your threads resolved 8)

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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center