A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: AS2 ScrollPane --- how to control content props???

  1. #1
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508

    AS2 ScrollPane --- how to control content props???

    ok, as the title implies, I'm using an AS2 ScrollPane component and I want to be able to control the content of the ScrollPane....like change it's _x/_y or _height/_width....how do I do this?

    thx in advance!

  2. #2
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    come on....somebody has to know how to do this!
    thx again for looking!

  3. #3
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    ok, found the answer, but that presents a new issue...for those interested, here's how you access the scrollPane content:

    Code:
    scrollPaneInstance.content._alpha = 50;
    however, the reason I wanted to access the content is to reposition the content BUT _x & _y props don't seem to make any changes to position...I use _alpha and that works, _height & _width work...but why not _x & _y?

    am I missing something?

  4. #4
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    update: the properties for _x & _y are instead x & y, without the underscore however, they are listed as "read-only"....so does that mean you can't reposition scrollpane content? plz anybody!

  5. #5
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    seriously?!

  6. #6
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    wow, it seems that no one has ever needed to change a ScrollPane's content position?!
    can't find nuthin!

  7. #7

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