Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Get Propery of a MC loaded in a target |
From: | Helen Triolo |
Date: | Sun, 7 May 2000 16:42:28 +0100 |
Laura Mollett wrote:
>
> Hey Helen,
> I'm trying to find a way to find out what the height of the loaded movie
> is... it knows... if you load a 50x50 movie into a 100x100 movie clip, the
> little movie stays little (it doesn't actually change height). I think I did
> need another frame though. You have to load the movie on one frame and then
> get the property on another... I think.
>
> Still trying :) Thanks!!
It looks like you can do this if you have a dummy movieclip embedded in
the loaded movie that's the same size as the loaded movie, and if you
check the height on the frame after you load it, as you said. Into my
113x200mc (instance=dummyinstance), I load a movie that's set to
100x100, with a 60x60 mc (instance=greencircle) in it. Here's what I
get:
frame 1:
Load Movie ("purple100.swf", "/dummyinstance")
Set Variable: "loadheight" = GetProperty("/dummyinstance",_height)
Set Variable: "mcloadheight" =
GetProperty("/dummyinstance/greencircle",_height)
Stop (and a button on frame 1 to continue to next frame)
loadheight = 113
mcloadheight = blank
frame 2:
Set Variable: "loadheight" = GetProperty("/dummyinstance",_height)
Set Variable: "mcloadheight" =
GetProperty("/dummyinstance/greencircle",_height)
Stop
loadheight = 60
mcloadheight = 60
Strangely, the reported height of the mc being loaded into changed from
its original height in frame1 (113) to the height of the embedded mc in
frame2 (60). So I think if you set a dummy mc to the movie height, you'd
get the correct height of your loaded movie in frame 2.
Helen
----------------------------------------
helen triolo � http://i-technica.com
designeri-technica [dot] com � 301-424-6037
----------------------------------------
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml
Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: Get Propery of a MC loaded in, Laura Mollett
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]