Flasher Archive

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


Subject: RE: FLASH: Flash 4 Scripting
From: mark carolin
Date: Wed, 19 Jul 2000 01:05:23 +0100

perhaps you need a / before tree1

Set Property ("/Tree1", X Position) = 150 (no quotes)
Set Property ("/Tree1", Y Position) = 77

Mark

>I still can not get this to work. Any more suggestions?
>
>Tree1 is an instance of a movieclip and in the main timeline.
>
>Ed
>
> > ----------
> > From: Helen Triolo
> > Reply To: flasheratchinwag [dot] com
> > Sent: Tuesday, July 18, 2000 2:40 PM
> > To: flasheratchinwag [dot] com
> > Subject: Re: FLASH: Flash 4 Scripting
> >
> > Assuming Tree1 is an instance of a movieclip which is sitting on the
> > main timeline (or on whatever timeline you're executing this code from),
> > then try:
> >
> > Set Variable: "TreeAlpha" = GetProperty ( "Tree1",_alpha)
> > If (TreeAlpha = 100)
> > Set Property ("Tree1", X Position) = 150 (no quotes)
> > Set Property ("Tree1", Y Position) = 77
> > Else
> > Set Property ("Tree1", X Position) = 70
> > Set Property ("Tree1", Y Position) = 432
> > End If
> >
> > hth,
> > Helen
> > ---------------------------------------------------
> > helen triolo � http://i-technica.com � 301-424-6037
> > Flash Q&A archive � http://i-technica.com/flashlist
> >
> > Ed Harvey wrote:
> > >
> > > I have a Tree1(instance name) sprite that in the color effect, I set
> > alpha
> > > to 10. Then I have a button the sets the Tree1's alpha to 100. When I
> > select
> > > the button the Tree1 sprite does changes its alpha to 100, but the
> > sprite
> > > doesn't move. The movie only contains 1 Frame.
> > >
> > > Can anyone tell me why I can't get the Tree1 sprite to x 150 y 77.
> > >
> > > Set Variable: GetProperty ( "Tree1",_alpha) = "TreeAlpha"
> > > If ("TreeAlpha" = 100)
> > > Set Property ("Tree1", X Position) = "150"
> > > Set Property ("Tree1", Y Position) = "77"
> > > Else
> > > Set Property ("Tree1", X Position) = "70"
> > > Set Property ("Tree1", Y Position) = "432"
> > > End If
> > >

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.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]