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:14:57 +0100

Laura Mollett wrote:
>
> Hi all,
>
> I seem to be having one of those recurring targeting problems or something.
> I've loaded a movie into another MC (loaded into target) and I want to be
> able to get the height and width of the loaded movie. The movie clip it's
> loaded into is called "screen" and the loaded movie is "test.swf". I read on
> MMs site that when you load a movie into a clip, it takes on all the
> attributes of the clip, including the instance name, but
>
> GetProperty("window1/screen", _height)
> isn't working and neither is
> GetProperty("test.swf", _height)
> or
> GetProperty("window1/test.swf", _height)
>
Hi Laura. GetProperty("/screen",_height) returns the height of the
movieclip screen (if it's on the main timeline, or use "/window1/screen"
if it's nested in mc window1 on the main timeline). When you load a
movie into it, that movie does take on the height of the mc, so you're
really finding the height of the mc, not the original height of the
loaded movie (I just tried it, loading a 100x100 movie into a 113x200
mc, and the height returned was 113). Is that what you were looking
for?

Helen
----------------------------------------
helen triolo � http://i-technica.com
designerati-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 helpatchinwag [dot] com


Replies
  FLASH: Get Propery of a MC loaded in a t, Laura Mollett

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]