A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Changing two clips' attributes at once

  1. #1
    Senior Member
    Join Date
    Mar 2005
    Posts
    206

    Changing two clips' attributes at once

    What I have is a program that places jpgs ontop of movieclip art, so that it looks like I have framed pictures. How would I set it up so that if I change, for example, the height attribute, I change the jpg and the movieclip's at the same time, so that their heights have the same ratio between them?

    I tried creating an empty movie clip and attaching the jpg through loadMovie and then the movieclip through attachMovie, and then changing the container clip's attributes, but that doesn't seem to work.

    Thanks.

  2. #2
    Senior Member dudeqwerty's Avatar
    Join Date
    Mar 2005
    Location
    Bosnia
    Posts
    1,626
    code:
    _root.picture._height=_root.frame._height


  3. #3
    Senior Member
    Join Date
    Mar 2005
    Posts
    206
    uhhh...not quite

    If I have two clips, picframe and pic, and picframe "holds" pic...I'd like to be able to enlarge picframe in such a way that in enlarges pic too...but picframe is about 20px wider and longer than pic, and is also offset at a different x and y.

  4. #4
    Senior Member dudeqwerty's Avatar
    Join Date
    Mar 2005
    Location
    Bosnia
    Posts
    1,626
    do u want this done with a button?

    send me ur .fla and ill have a look

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