Flasher Archive

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


Subject: FLASH: multiple set properties
From: Sarah Lamont
Date: Tue, 14 Dec 1999 20:00:25 GMT

hi all...
I've got a problem (as usual...)
What I have is:
2 draggable movie clips, whose visibility turns to 0 when over the drop
target. Specifically, the movie clips are gifts, and they get dropped
into santa's sack.. (okay, don't laugh at me, it's just for practice :)
anyways, I am trying to give the impression that the sack gets larger as
each gift is put inside it. So each If statement inside the button
inside the gift movie clip looks like this:

On (Press, DragOver)
Start Drag ("")
End On
On (Release, Release Outside, Drag Out)
If (GetProperty ("", _droptarget) eq "/open"
Set Property ("/gift", Visibility)=0
Set Property ("/sack", X Scale)=../:sizex
Set Property ("/sack", Y Scale)=../:sizex
End If
Stop Drag
End On

I used variables because I thought it would make it easier, but I'm not
sure it did...

sizex=GetProperty("/sack,_xscale)+5
and sizey=GetProperty("/sack",_yscale)+5

these exist in the main timeline. I also tried using the call function,
but it wouldn't work.
When I drag and drop the gift into the sack, it does increase the size
of the sack, but only for the very first gift that I wrote the script
for, even if I put another gift in the sack before that one.
Does anyone have any imput/advice as to why this is doing this? Or how
to get around it?
Thanks in advance!
:]sarah


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


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