Flasher Archive

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


Subject: RE: FLASH: How do I tell a movie clip to disappear?
From: Paul Willoughby
Date: Fri, 3 Nov 2000 13:25:45 GMT

Hi Nico,

What you want to do is put the instance name of the showing text into a
variable, so you can target it and send it back to frame 1 when the next
clip is pressed. Maybe it will be clearer if i show you the code for one of
the buttons:

On (Press)
Begin Tell Target (/:visibleText) (won't do anything the first time a
clip's clicked, as the variable's not set yet)
Go to and Stop (1)
End Tell Target
Begin Tell Target ("../Apple text")
Play
End Tell Target
Set Variable: "/:visibleText" = "/Apple text"
End On

On the bear clip you would set the variable /:visibleText to "/Bear text".
One problem I noticed with your movie that stops this working is that you
have a little tween on the apple, and a keyframe with an instance of the
apple on the button layer in frame 3. I got round this by taking out this
instance and the stop action and just letting the clip loop back to frame 1.
Let me know off list if you'd like the adapted FLA mailed back to you.

hth

paul


Nico Irby wrote on 03 November 2000
>
>
> Hi Everybody!
>
> I am in the process of making a Flash 'alphabet' for my
> children where there is a picture of an Apple, Bear, Carrot,
> Dog etc. which will hopefully get them to learn something
> about the alphabet (as well as improving my Flash skills!).
> However, I can't seem to be able to make a movie clip
> disappear automatically when I start another movie clip. At
> the moment, when you click on the Apple, a little text box
> about the Apple appears. When you click on the Bear, a
> little text box about the Bear appears and so on. What I
> would like would be for the text boxes to disappear when a
> different object is clicked. I'm sure it can't be too hard -
> but my tired brain can't seem to get around the problem...
>
> I have uploaded some of what I have done to
> http://www.free0041720.free4all.co.uk/ and the FLA file is
> also up there at
> http://www.free0041720.free4all.co.uk/clips.fla If any of
> you can take a look at it to see what I am doing wrong I
> would be most appreciative. I have been trying various
> things all evening to sort this out but don't seem to be
> getting anywhere.
>
> Many many thanks,
>
> Nico.
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and the Flash(tm) Film Festival
> November 27-29, 2000, LONDON, National Film Theatre
>
> Produced by United Digital Artists and lynda.com
> -Sponsored by Macromedia, Adobe Systems and Apple Computer
> -http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
> Register before November 10 and save £200
> http:// www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save £200
http:// 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]