Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OK this is simple...BUT

0 views
Skip to first unread message

Troyson

unread,
Jul 17, 2000, 3:00:00 AM7/17/00
to
Ok this is simple...Or is should be..
Could someone please tell me how to set the _WIDTH and _HEIGHT of a
Movie Clip. I thought it would be under the set property along with the
x scale and h scale, which would make since. I guess i am wrong. I have
looked in the manual and all it does is basically gives me the
definition of _Width. Could someone please point me in the right
direction. I would appreciate any help.

Thank you.

a fellow flasher,
-Troyson


John Collier

unread,
Jul 17, 2000, 3:00:00 AM7/17/00
to
Troyson,

Just go to "Modify/movie" and you will see textboxes for width and height.
Then, after you publish your movie, open the HTML in a text editor. You
will see those same dimensions in the object and embed tags. If you would
like your movie to fill the browser screen then just change those dimensions
to 100% and 100% in the HTML file.
Hope this helps,

--
John Collier
Multimedia Relations
www.HostUtopia.com


Troyson <Tro...@hotmail.com> wrote in message
news:39735371...@hotmail.com...

Henrik Juhl

unread,
Jul 17, 2000, 3:00:00 AM7/17/00
to
Yep you are right ... SCALE is the thing.
Flash has no (yet anyway) properties for width/height.

The X and Y Scale properties always start out at 100 (or as set within the
editor).

Regards
Henrik Juhl


Philip King

unread,
Jul 17, 2000, 3:00:00 AM7/17/00
to
I think John was a little confused, but Henrik was on target...Say if you
wanted to have a button change the size of a particular movie clip that's on
the main timeline (instance name "mc"). Your code would look something like
this:

On(release)
Set Property ("/mc", X Scale) = 10
End On

Now, to get your specific width and height, simply use a little algebra:
x1 = the original width
y1 = the original height
x2 = the desired width
y2 = the desired height
say you know how wide you want the image to be, but you don't know how high
it would be. Simply plug in the values you do know in the following
formula:
y1 * x2 / x1 = the new height
input these numbers into the x and y fields in the Object Inspector. You
can then go to the Transform Inspector and see what percentage scale it is.
That's the number you write in the action script. If the Transform
Inspector said you changed it to 16.4% of the original, simply change the
code to:
On(release)
Set Property ("/mc", X Scale) = 16.4
End On

Sorry for the confused reply...I'm sorta flaked out today.

Troyson

unread,
Jul 18, 2000, 3:00:00 AM7/18/00
to
Thanks Philip.

I had to change a few things around to get what I needed, but your info put me
on the right track.
Thanks again.

-Troyson

0 new messages