A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Getting Width and Height of loadMovie swf??

  1. #1
    Senior Member
    Join Date
    Oct 2001
    Posts
    105
    I am loading an animated movie clip with...

    myclip.loadMovie("myswf.swf");

    then trying to get the width and height with

    mywidth = myclip._width
    myheight = myclip._height

    problem is that the size I get back is the size of the animated element and not the stage size it was created on. Is there anyway of getting its stage size??? Because the animation is moving in an out of its stage the size also keeps changing.. Help, this is driving me around the twist.

    Cris.


  2. #2
    Rusty Flasher
    Join Date
    Jul 2002
    Location
    Utahr
    Posts
    51
    Have you tried applying a mask in the swf file that is being loaded? That would make it so that it stays within it's movie size.

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