This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > March 2004 > button control "help for a newbie"





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author button control "help for a newbie"
Jacob Filek

2004-03-09, 11:29 pm

I have a button1 that has the following Action Script:
on (press) {
movie instance1.MovieClip.attachMovie("movie name1");
movie instance1.play();
}
The movie1 has a "stop();" Action in the first and last frame.

I have button2 that attaches and plays movie2.

The button1 will play the movie as I want however
I would like to remove the movie1 when the user picks button2 and vice
versa.

pick button1 play movie1 and clear movie2 from screen.
pick button2 play movie2 and clear movie1 from screen.

The question is what action can be attached to the buttons to clear the
corresponding move?

TIA

p.s.
the removeMovie ActionScript doesn't seem work.


Doctor Wink

2004-03-10, 12:29 am

I wish I knew. I think you might get more responses and help if you post it under flash actionscripts catagory though. Sorry.
Laiverd.COM

2004-03-10, 6:28 am

RTFM > check your as-dictionary on attachMovie() again. Requires three
arguments and you're rpoviding only one.

John
--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_g...s_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------


Doctor Wink

2004-03-10, 8:29 pm

woah hes good =)
Jacob Filek

2004-03-10, 9:29 pm

OK, this is my new script:

on (release) {
_root.products.removeMovieClip();
_root.aboutus.MovieClip.attachMovie("About Us Line", "AU", 0);
_root.aboutus.play();
}

the "_root.products.removeMovieClip();" doesn't do what I thought it should
do and that is to remove the movie named "products" from the screen.

I was also tiring the "._visible = true and false" but I'm not getting good
results.
I'm very new to this stuff so please any help is greatly appreciated.

TIA



"Laiverd.COM" <share_your_knowledge@someserver.com> wrote in message
news:c2mnhq$b6l$1@forums.macromedia.com...
> RTFM > check your as-dictionary on attachMovie() again. Requires three
> arguments and you're rpoviding only one.
>
> John
> --
> --------------------------------------------------------------------------

--
> -----------
> RESOURCES
> http://groups.google.com/advanced_g...s_ugroup=*flash
> --------------------------------------------------------------------------

--
> -----------
> TUTORIALS at
> www.laiverd.com
> Flash & PHP Emailform
> Using textfiles in Flash
> --------------------------------------------------------------------------

--
> -----------
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews