[F8] Remove An AttachMovie?
I have an 'about' button and a 'contact' button on my main timeline. Currently, when the about button is clicked, i disable the contact button, i have a movie clip on the timeline tween from 0 alpha to 100 alpha and then I attach a movie clip from the library. What I want to do is, when the 'close' button within my attached movie is clicked, I want to remove the movie however, I'm having a tough time trying to figure it out. Any help?
PHP Code:
about.onRelease = function() { contact.enabled = false; var fadeTween:Tween = new Tween(holder, "_alpha", Strong.easeOut, 0, 100, .5, true); fadeTween.onMotionFinished = function() { _root.attachMovie("aboutWin", "aboutWin01", _root.getNextHighestDepth(), {_x:250, _y:325}); } }
FlashKit > Flash Help > Flash Newbies
Posted on: 08-07-2008, 11:19 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
AttachMovie And Remove It
i am using attachMovie to attach an MC from the lirary to and MC on the stage!
my suestion is : do i have to delete the attached MC
and only then attach a new movie instead?
if yes - how do i it?
thanks in advance
peleg
Attachmovie And Remove Movieclip
thank you in advance.
This is a problem I've had in flash for awhile now and finally I have to confront it. Yes it sounds like a personal problem.
problem:
Have 20 movies on one screen. Once one is clicked a glow appears behind it. If you click another movie the previous glow disappears and a new glow appears on the one you clicked.
solution:
so far my solution has been just to make multiple frames in a movie clip and call to them individually..
for example
on(press){
Attachmovie And Remove Movieclip
thank you in advance.
This is a problem I've had in flash for awhile now and finally I have to confront it. Yes it sounds like a personal problem.
problem:
Have 20 movies on one screen. Once one is clicked a glow appears behind it. If you click another movie the previous glow disappears and a new glow appears on the one you clicked.
solution:
so far my solution has been just to make multiple frames in a movie clip and call to them individually..
for example
on(press){
_root.glow.gotoAndPlay("glow1");
}
--->well this is way too intensive for 20 movies and my next thought was to use attachmovie.. this worked fine but I thought the levels would overwrite themselves and this would answer the problem. Not so. Only works on loadMovie. I've been messing around with removing the movie clip but can't seem to get what I want.
If any suggestions are out there I would be cheeky.
Thanks,
Squirrel
What Is The Code To Remove AttachMovie?
I am using attachmovie AS like so:
on (rollOver) {
holder.attachMovie("mc_see", "s", 0);
}
What is the AS to remove the clip from the holder on mouse out? (so that it does not stay when mouse over other buttons)
What Is The Code To Remove AttachMovie?
I am using attachmovie AS like so:
on (rollOver) {
holder.attachMovie("mc_see", "s", 0);
}
What is the AS to remove the clip from the holder on mouse out? (so that it does not stay when mouse over other buttons)
Remove Movie Clip Created With AttachMovie
I have a frame that is populated with movie clips that were created with the attachMovie command.
I don't want these movies on the next frame.
How do I delete them ?
I have tried clipname.removeMovieClip(); in the second frame but it isn't working.
Any ideas?
Attachmovie, Dynamic Name, Scoll And Remove. Help Needed
Hi all,
I have a problem which kept me up half the night, and still isn't fixed! Perhaps some of the experts on this forum can help me, once again.
I have an diagonal road movie clip which I'd like to scroll of the screen, at a diagonal angle. I'll be using programmatic motion, and attachmovie to create the illusion of of a continous background. When the background is off the screen, I'd like to remove it.
Unfortunately, I can't work out how to use and IF statement (to see if it's off screen) with a dynamic movie clip name ("road"+i).
I'm aware there are similar threads on this forum, but for the life of me I can't find one that addresses this combination of issues.
Any advice, O gurus?
Many thanks in advance,
Lewis
JavaScript Remove. Remove Flash Applet When Done Playing?
Is there anyway to remove a section of HTML with a javascript? Ive seen ones that replace text segments, and remove certain tags like <br>. I want it to remove the flash applet once its done playing.
I know that its possible, I just need someone that knows javascript better than me. Someone please help it would be MUCH appriciated! Thanks!
Remove Movie Clip Help, Remove Child {AS2}
So, I'm new here, and do to the lack of good help on Kongregate, I have come here =D Hopefully somebody here will be able to help me
if(_root.row2.block1._x == _root.row1.block1._x)
{
_root.row2.block1.removeMovieClip();
trace("working");
}
now, the trace fires, and, if I remove ".block1" the entire movie clip is removed, but with it in there, to remove the MC from within my MC, it WONT be removed, am I doing this wrong or am I making some other error?
AttachMovie() Within Another AttachMovie() Created Instance?
I'm still struggling away on my web site, but I've made quite a bit of progress and I think my code has cleaned up quite a bit. I still have the issue of not being able to attach my new content box movie clip when the button is pressed. I am successfully able to load the data for that instance of the tab, and can access the variables. It also is able to run the newContentBox() function inside it with success, but when it tries to run attachMovie(), nothing happens. Could this be a problem with my depth? Or is it my nesting?
I have been thinking about making a global variable for depth that will increment each time anything is created, so every movie clip is guaranteed to be on its own depth. Would this be a solution?
The site can be viewed here.
The source can be viewed here.
All the data files are located in that directory as well.
This is really driving me nuts, and I want to get something solved so I can move onto the submenu creation.
AttachMovie Inside Another AttachMovie
is it possible to attach a movieclip, and then attach another inside of it? i'm trying to load in images via using loadMovie and XML (a little background) i want the image to be dropped in to have a mask applied to it so that the image appears as a rounded rectangle... here's my code for the for loop that attaches the movie clips...
PHP Code:
for (i=1; i<=totalImages; i++) {
attachMovie("multiplebox", "box_"+i, i);
movieNamer=_root["box_"+i];
}
is it possible to attach a movie inside of 'box_"+i'?
AttachMovie Within An AttachMovie? Not Working
So I've finished a project (let's call it Project Blue) where I use attachMovie which references a folder (of swf's) to place each page of the swf. It worked fine. Next, I made a master 'shell' to place this project (among others) into. To do that I used attachMovie again to place Project Blue in the shell.
But now my attachMovie pages for Project Blue won't show up. Does Flash have a problem with using an attachMovie within an attachMovie?
Thanks for any insight on this....
AttachMovie Nested AttachMovie...
I have in the root timeline an empty movie clip that loads other movies inside of it. Using the attachMovie function.
Inside one of these attachMovie clips I have a nest "attachMovie" clip as well but for some odd reason it's not working. Is there anything I should be aware of when nesting an attached movie?
Remove MC
Hi, can you help me to solve this problem?
I have load a MC in a target (fotina is the name of istance) instead a Flash MC.I want to insert a button that close the MC in target named fotina without close a MC in other target on the same scene.
Thank you very much, and excuse me for my poor english...
REMOVE MC
A movie duplicates a MC 120 times, then it stops.
I then want to get rid of all 120 mc all at once by the press of a button.
I can go:
removeMovieClip("ab" + 1)
removeMovieClip("ab" + 2)
removeMovieClip("ab" + 3) etc etc to 120.......
or I could use........?
I'm sure there's a simple way to do this.
Cheers.
Remove Tag?
as you can see from my previous thread, i've desperately been trying to make flash buttons smaller than the minimum allowed in flash. Now i've realized when inserting the movie in dreamweaver, when i right click on the button i have an option 'remove tag' when i choose it the button becomes much smaller without losing the image (when viewed in browser) whats that all about??? what exactly am i removing, why does the button in turn become smaller and what is the disadvantage of removing this tag? this is more of a dreamweaver question, but i thought i try my luck.
thanks!
Any Way To Remove
i'm putting a website on cd, and would like to remove the notice that asks users to update to flash player 6 when the page is opened, since most of my users will be offline and it tries to make them connect. i published all the .swf's for flash player 5, yet the notice still pops up. any way to do it?
a version is online at http://www.bob-designs.com if that helps. thanks,
bob
How To Remove It?
can anyone teach me how do i remove duplicateMovieClip?! i duplicated 10 of them.. but only the first movieclip was removed from the scene after it move on to the next scene..
the remaining 9 movieclips still remains even when i am at a new scene now.. how do i remove all away?! i want all to disappear after i move to the next scene..
this is how i duplicated my movieclips..
if (max1 != 0) {
for (c=2; c<=max1; c++) {
duplicateMovieClip("con" add (c-1), "Con" add c, c+1);
}
}
a million thx 4 all the help..
Remove MC?
Why doesn't this work to remove an MC named rock? Seems like I'm following the proper syntax!
if(this.hitTest(_root.rock)){
removeMovieClip(_root.rock);
_root.rock._alpha = 30 // Just a test
}
(Flash 5)
Thanks
Remove MC
This should be a relatively easy question. I have a Movie Clip on the stage. How can I get it to be removed when I click it? i try :
On release
this.removeMovieClip() ,
On release
_root.removeMovieClip(this) , but neither work.( I know its not the right syntax).
Remove Me
Please remove my account from this board, i no longer use it!
I don't like to leave accounts wondring around on the net
Thanks in advance... and for any help that i found here!
Ciao!
Remove The Zero (mx)
I have a script that will display the time. However, when it's say...1 pm, it displays 01:00.
Where can I find some info on getting rid of the zero?
Thank you for your time!
Remove Xml
I have a menu that loads a sub-menu into a seperate swf. the sub-menu is coming from an xml file.
the menu sends an id to the sub-menu using local connection which then loads the xml file for selected option. the initial sub-menu loads fine selecting a first option on the menu but that stays there and any consecutive clicks on the menu wont load the appropriate sub menu.
so basically what I want to do is unload the xml submenu when the user clicks an option and load a new submenu. I think!
Remove Name
hi,
can u help me with this.... (Attach file)
i know how can i Add "name"
but i donīt know how can i remove only one "name"
thank you a lot
Remove Swf From Swf
previously i had unloadmovie, but now?
how to remove swf from swf when animation is goind to some frame?
i try:
Code:
var loadit = new Loader();
function remove()
{
removeChild(loadit);
}
addEventListener (Event.ENTER_FRAME, remove);
but this is not good, please help me
Remove Xml
I have a menu that loads a sub-menu into a seperate swf. the sub-menu is coming from an xml file.
the menu sends an id to the sub-menu using local connection which then loads the xml file for selected option. the initial sub-menu loads fine selecting a first option on the menu but that stays there and any consecutive clicks on the menu wont load the appropriate sub menu.
so basically what I want to do is unload the xml submenu when the user clicks an option and load a new submenu. I think!
Please Remove
Fixed
Edited: 01/26/2007 at 12:05:36 PM by d3creative
Please Remove
I recently created a movie with some TextInput components no problem. I just created a new one and i can't get focus on the TextInput. I saw some other posts about this but no solutions. All help appreciated.
c.
Edited: 01/26/2007 at 12:04:54 PM by d3creative
REMOVE
REMOVE
Edited: 05/24/2007 at 09:31:24 AM by flying_scott
Help Me Remove MC
This is probably really simple but I seem to never get the hang of AS :(
I have used "attachMovie" to load a movieclip animation on my webpage.
Now I want that movieclip to remove itself as soon as it reaches its last frame.
I tried using the following actionscript but it doesnt seem to work
removeMovieClip("ball_mc");
Please help me out?
Edited: 03/21/2007 at 09:19:45 AM by aquastealth
How To Have An MC Remove Itself
Okay, I've done things like this a few times, and yet I've ran around every way that I can see possibly doing this without success:
I load an MC dynamically from the library ("WIN_ABOUT"). The MC has a few buttons (MCs) within it, one of which is intended to delete the entire MC from the stage. Here's a few ways that I tried it:
b_close.onRelease = function () {
removeMovieClip(_root.WIN_ABOUT);
}
or?
b_close.onRelease = function () {
removeMovieClip(this._parent.WIN_ABOUT);
}
or?
b_close.onRelease = function () {
this.removeMovieClip();
}
or?
b_close.onRelease = function () {
this._parent.removeMovieClip(WIN_ABOUT);
}
Nothing seems to work. And I know this is a simple one!
Remove Xml
I have a menu that loads a sub-menu into a seperate swf. the sub-menu is coming from an xml file.
the menu sends an id to the sub-menu using local connection which then loads the xml file for selected option. the initial sub-menu loads fine selecting a first option on the menu but that stays there and any consecutive clicks on the menu wont load the appropriate sub menu.
so basically what I want to do is unload the xml submenu when the user clicks an option and load a new submenu. I think!
To Remove A Mc
Code attached
Im trying to have a button that would remove the mc that has been inserted from an array.
Help, Remove
Hi, i was wondering if anyone knew how to remove a movie clip after it is done playing. I know this might sound alittle noobish.
Remove()
is there a remove() method to remove characters from a string in ActionScript?
How Do You Remove This?
Everytime I make a Flash Movie I always have to Click it to activate it. But here: http://www.xploaded.cz/home.html : I noticed that you don't need to click it or press spacebar to activate it, Now how do I do that?
Remove XML?
I've loaded and XML file using
but.onRelease = function() {
xml.load("text.xml")
}
-- is there a way I can remove an xml file or replace it w/ another w/o
adding to the previous xml file???
cheers
Title Bar - Can You Remove It?
Hi - in Flash 4, I am creating a ticker - that's done... Can I set the swf file (or exe file) to show without a title bar? Ie. so it is just the ticker which shows?
Also, is it possible to set the swf/exe to be 'always on top'?
Many thanks for any advice,
Mark
How To Remove Borders
Hi Im not sure how you remove the borders when you publish your site, I was a tutorial somewhere on flash kit but I cant find it, anyone no where it is or can tell me??
Thanks
REMOVE ON CLICK
I have 5 test viz. Test 1, Test 2, Test 3, Test 4, Test 5,
They appear on the first keyframe in the oredr..If the userclicks on Test 1 he is taken to that test and so on..Now at the end of the test(25 questions) there is a button which says main page, which brings him to the 1st keyframe...What I want is that now the link for Test 1 should dissappear since he has already taken it..If he takes Test 4 then at the end of that test the link for that test should disappear..
What is the best way to do this
Thanx
How Do I Remove Text?
I have 3 movieClips on top of each other. I have three buttons controlling these. I want each button to load their corresponding text "on top of everything". I have used _root.MC.blah blah....
This works for me, but I can't get the unwanted text to go away.... What the hell?
Remove Movieclip
I have snow falling in scene 1 created by using duplicatemovieclip. I want the snow to stop in scene 2. I tried removemovieclip but couldn't get it to work. Any suggestions? Thanks!
Remove Movieclip
I have snow falling in scene 1 created by using duplicatemovieclip. I want the snow to stop in scene 2. I tried removemovieclip but couldn't get it to work. Any suggestions? Thanks
How To Remove Movieclips?
hey there, i have a little problem with flash, maybe you can help:
i have a scene where a lot of movieclips get attached but if i switch to the next scene the old movieclip still remain, see for yourself on
http://www.e-missions.de/smiley.html
(when you get gameover)
i want to remove anything, is there something like "removeallmovieclips" ???
thanks in advance guys
How Do I Remove Movieclips ...?
i have this movie where there are lots of small movieclips which are duplicated on click of different buttons.... there's this variable called 'n' on the main stage and on every click n becomes 'n+1' while the movieclip called letsay 'aaa' duplicates as 'aaa1'.... as there is no way to know if there's a 'aaa1' or 'aaa65' or 'ddd76' when i want to refresh the stage i dont know what to remove.... is there something like maybe 'removemc aaa(x)' where 'x' can be any integer....???
|