SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2007
    Location
    Leeds, U.K.
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get correct _height value, without the hidden mask part

    I have a movieclip, which I want to keep central on the screen. however, part of it is hidden using a mask, but it still includes the hidden bit in the _height reference.

    Is there a variable that does not include the masked area, or am I just clutching at straws?

    to see what I mean, look at this : http://toddish.co.uk/beta. notice how it is fine before the thumbnails load, then changes once you move the screen (as it is higher).

  2. #2
    SitePoint Guru [Paul Ferrie]'s Avatar
    Join Date
    Oct 2007
    Location
    Glasgow, Scotland, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you could get the height on the mask?
    .:To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Glasgow Flasher
    bringmadeleinehome.com

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2007
    Location
    Leeds, U.K.
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    aye, true, and then maybe take away the rest of the height. that's still getting too specific for what I was hoping to be a general function though. I think I'm just going to have to set a variable for each item I want sending in, and if statements for their heights.

    Cheers for the suggestion though


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •