A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: width and height?

  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    92

    width and height?

    So i have this picture, that loads into 2 movie clips, movie clip A is on screen and is reduced in size, movie clip B loads off screen and is full size. I have 2 text boxes that take the height and width of picture B, and load them into the text boxes. Now, movie Clip A the code for it is this:

    onClipEvent (data) {
    this._height = 300;
    this._width = 400;
    }

    But i want something like this:

    onClipEvent (data) {
    this._height = text from the dynamic text box divided by 2;
    this._width = text from the dynamic text box divided by 2;
    }


    so...i tried this._height = this.height/2 but that just kept shrinking the pictures by 50% as i kept scrolling...
    Last edited by BonzoHarry; 11-07-2004 at 11:11 PM.

  2. #2
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    Can you post the fla file?

    XFM

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