need help on actionscripting movie clips object

Discussion in 'Graphics & Multimedia' started by popol, Aug 8, 2006.

  1. #1
    hi i need help on actionscripting on flash.. i've already looked up on the manual but can't seem to find something.

    1. how do you know the width and the height of an image?

    2. how do you address the textfield object inside a movieclip object so i could change it's font properties?
     
    popol, Aug 8, 2006 IP
  2. slickricky

    slickricky Active Member

    Messages:
    240
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #2
    1. Look up MovieClip._width and MovieClip._height, I believe those return and allow you to edit the movie clips dimensions. Of course you replace "MovieClip" with the path of the MovieClip you're referring to.

    2. For font editing tutorial look here: http://www.kirupa.com/developer/actionscript/changing_font.htm

    If you simply want to know how to address the text field, you have to use the path to the movieclip text field. It might look something like this _root.containermovieclip_instancename.movieclip_instancename.textfield_instancename

    Think of the "." dots as "/" slashes in a directory structure. _root is your main stage, then on that stage you have a movie clip with an instance name, and so on.
     
    slickricky, Aug 11, 2006 IP