Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: duplicating movies and setting property to specific x,y |
From: | Nathan Dicken |
Date: | Thu, 4 May 2000 14:52:04 +0100 |
Hi Olga,
There's a few ways that you could do this but here's an idea. The
"spacing" and "startX/Y" variables you could change to whatever you'd
like...
Set Variable: "spacing" = /mc0:_height + 10
Set Variable: "startX" = "100"
Set Variable: "startY" = "100"
Set Variable: "index" = "0"
Set Variable: "n" = "1"
Loop While (n < 6)
Duplicate Movie Clip ("/mc0", "mc"&n, n)
Set Property ("/mc"&n, X Position) = startX
Set Property ("/mc"&n, Y Position) = startY + (spacing * index)
Set Variable: "n" = n+1
Duplicate Movie Clip ("/mc0", "mc"&n, n)
Set Property ("/mc"&n, X Position) = startX + spacing
Set Property ("/mc"&n, Y Position) = startY + (spacing * index)
Set Variable: "n" = n+1
Set Variable: "index" = index + 1
End Loop
Hope that helps...
Nathan Dicken
Fusionary Media
>I feel really inept, I'm having trouble with something that seems like it
>should be fairly straightforward. How does one set the property of a set
>number of dynamically generated mcs such that the placement order ends up
>like this:
>
>1 2
>3 4
>5 6
>
>
>I can't seem to get them spaced apart properly-- I extrapolated from the
>code in a tutorial I found, set property (of mc) to GetProperty (mc, _width)
>+n* GetProperty (mc, _height). -- n being the number of the duplicate.
>
>Thanks!
>olga
>
>
>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
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
FLASH: Speed / benchmark issues., Glen Rhodes
Replies
FLASH: duplicating movies and setting pr, Olga
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]