ActionScript 2.0 :: Delete Empty Movie Clip Generated?
Mar 29, 2006I need to know how to the lead a empty movieclip that i made with ASi already tried deletemovieclip is there any other way
View 6 RepliesI need to know how to the lead a empty movieclip that i made with ASi already tried deletemovieclip is there any other way
View 6 RepliesI have a flash file that reads and XML file, it creates an empty movie clip in a placeholder (mc_image_holder) for each entry in the file, so 4 entries in the XML file = 4 movie clips inside the placeholder. it does this like so:
Code:
if(success)
{
var nm:MovieClip = mc_image_holder.createEmptyMovieClip("swfHolder"+i,-((i) * 10));
nm.loadMovie(filename);
[code]....
however, for some reason, the last created movie clip in the place holder never fires the onEnterFrame event more than once, so, If I were to trace the word "hi" I would only get it once, where as if I apply that to each of the other three that are created, it would put it many times, as it should.
how to trace a movie clip and place it into an empty movie clip i create at the begginning of the movie
View 5 RepliesI want to load a random movie clip from the library to an empty clip on the stage called (bg_graphics). the clips in the library are called (green, blue, yellow).
View 5 Replies(Whoops - ALMOST solved - one last issue below!) I've got two buttons, one shared movie clip. The two buttons each load two different movies. All I want to do is TOTALLY CLEAR OUT whatever movie is loaded from one button whenever I press the other to load its cargo into the movie clip.
This seems like it should be so easy to do, but there's always a remnant of the first movie left in this.How do I empty the whole thing while still keeping the shared movie clip (which the two buttons/movies share) in place?
[Code]...
In my project are pages of text with each word having a button that when pressed will display a movieclip presentation about that word (its pronounciation and spelling etc..). In the project I am working on now I have over 450 unique presentations of words to deal with. I don't want to have all of these hundreds of movie clips on the stage and tell them one at a time to stop and rewind and then have one play each time a word button is pressed. That seems to be very inefficient to me.
add movieclips to the stage using addChild(movieclipname) and remove them using removeChild(movieclipname) but there is a problem. I have hundreds of unique movieclips and I don't want to have to manage hundreds of variables containing the indivudual movieclip instancess. It is a real pain having to figure out what instance is still on the stage before i delete it.In Adobe Director all I have to do is this:
I want a movie clip to delete a movie clip when one rollsover the other.
View 16 RepliesWhat I'd like to do is have a checkbox, that when it is checked it loads a movie into an empty movie clip, and when it is unchecked, it loads a different movie into the empty movie clip.Also if possible I'd like to find a way to output to a variable whether the same checkbox is checked or not. And send the info from the variable in an email.
View 11 RepliesIn AS2 I would do this:
for(i=0;i<10;i++){
this.attachMovie("clipLinkageName", "instanceName" + i ,this.getNextHighestDepth());
}
But now in AS3, I'm learning to use:
var instanceName1:clipClassName = new clipClassName();
addChild(instanceName1);
But I don't know how I can put that in a for loop like I did above..this["instanceName" +i]:clipClassName = new ClipClassName(); does not work.
trouble getting a movie to load in an empty movie clip. I am hoping I'm missing something simple.I have a button with the instance name SPS_btn on a layer I've called buttons.Below the button layer i've got a layer called movie clips that contains an emptymovie clip called mainStage_mc.I want to load a .swf into into mainStage_mc. both the buttons and their actions occur on the first frame.I have used this code but it not working.
on (release) {loadMovie (new002.swf, mainStage_mc);
I just get a blue area but the movie does not load. I can run the movie fun locally by clicking on new002.swf file.i also tried the behaviors panel, which produces this code but it also doesn't work:
on (release) {loadMovie ("new002.swf",mainStage_mc);
//load Movie Behavior
if(this.mainStage_mc == Number(this.mainStage_mc)){[code]........
for some reason it will load if i use loadMovieNum () but the registration point is in the top right corner and i don't want that.What's the best way to debug this?When i use test movie the output window dosen't show an error but something's wrong.how can I test if is a path problem? A problem with the loaded movie or a problem with something else? the movie new002.swf is 393KB. I tired making a smaller 2kbmovie using the code above and it wouldn't load either.
I have created an empty movie clip in the root, I load dynamically some jpg to the empty movie clip, but now I want to center it and I can't I have this code, it centers the movie clip but on the registration point of 0,0 not in the middle of the movie clip so the movie clip will show up nice and centered.
ActionScript Code:
var stageL:Object = new Object ();
stageL.onResize = function () {
[code]....
I am trying to test it. I am loading swf's into movie clip with XML stacking each other vertically. I found out that after movie clip is reached the height of 65000 px the other loaded swfs will not be loaded correctly. They are loaded from the 0 point again overlap previously loaded swfs.
View 4 RepliesI am trying to test it. I am loading swf's into movie clip with XML stacking each other vertically. I found out that after movie clip is reached the height of 65000 px the other loaded swfs will not be loaded correctly. They are loaded from the 0 point again overlap previously loaded swfs.
View 1 Repliesokay, in my game, at the end of a level, the player runs into a finish movieclip, the problem is, when the player goes to the next frame, it brings the finish movie clip to the middle of the stage, i tried to remove the movieclip but it dident work, also i have the finish movieclip in the next frame, just in a different place
View 1 Repliesload a .swf into an empty movie clip. I've given the empty movie clip an instance name of "myContainer". This is the code i've got now on a button (which doesn't have an instance name), which doesn't work:
on (press) { myContainer.loadMovie("BVLibrary_Branding.swf");
}
I created a movie clip of a photo gallery that works fine until I test it and get to the frame that the movie clip is on. After doing so, the movie clip stays throughout any other page I click on. I can't get the removeMovieClip function to work.
Here's the code I have:
this.createEmptyMovieClip("container",1);
var imagesNumber:Number = 5;
for (i=1; i<=imagesNumber; i++) {
[code]....
I have two images pulling though an empty movie clip, using the actionscript below. I can't seem to figure out how to position both of them, could anybody shed some light on this? I'm using AS3.
[Code]....
[fmx]
related files: 7MB .FLA File
Okay...
At the _root I have an instance using an empty clip named mainPageEmptyClip. Inside of that, are various other movies.
Now, at the _root there is a menu which, when clicked, should access one of the layers within the empty clip's content.
The problem here is that I can't discern what the target would be to actually access the clip. The action worked fine before I implemented the empty clip, but now it won't work any longer.
I've tried using the target tool built into FlashMX, but it doesn't list any of the instances withing mainPageEmptyClip - that's as far as it goes. I've tried entering in what would seem to be the path, based on the instance names of subordinate movies, but it does me no good - I'm continually given the error of Target Not Found.
These are the two options I've tried....
_root.mainPageEmptyClip.gotoAndPlay(351);
_root.mainPageEmptyClip.webLayer.gotoAndPlay(156);
I created an empty movieclip with[code]...
Where in the script can I add the x and y properties for that empty movieclip?
I'm trying to load images into a row of images. Each image is a different width. Heres the code so far:
Code:
var xPos:Number = 0;
for (y=0; y<5; y++) {
var container:MovieClip = this.holder.createEmptyMovieClip("picholder"+y,y);
container.loadMovie("mypic.jpg");
container._x = xPos;
xPos += container._width;
}
The problem at the moment is that the container._width property is reading 0 so all the images are loading on top of each other. This is the same with "picholder"+y. If I set the xPos value to say 100 then it works fine. I'm guessing its something to do with the fact that the loadMovie happens after the var container is defined. Whats a way around this?
Also just while I'm posting whats the correct syntax for something like this:container.loadMovie("mypic" + (y) +".jpg");
wanted to load an swf into an empty movieclipthen modify the empty movieclips xy scale, and xy positionrecall doing something like that b4, and it seemed like a simple enough taskbut for some reason this doesnt seem to wanna obey me at the moment
View 1 RepliesIm trying to animate a set of empty movie clip containers. When I select them and try to apply a motion tween.
View 2 RepliesI created an empty movieclip with:Code:_root.createEmptyMovieClip("container", 1);Where in the script can I add the x and y properties for that empty movieclip?
View 3 RepliesI want to press any keyboard key to delete movie clip - how do I go about it? This is what I have for mouse click
bubble_mc.addEventListener(MouseEvent.CLICK,rotateBall);
trace("ball working");
function rotateBall(e:MouseEvent):void { ball_mc.rotation+=5;}
addEventListener(Event.ENTER_FRAME, ballMove);
I want to load an instance on my stage into an empty movie clip on my stage when it gets to a certain frame. The instance is called jpeg_2 and the movie clip is called empty_mc.
View 7 RepliesI am trying to make a photo gallery in as3. I found a tutorial for a scrolling thumbnail panel and found how to convert it to as3.
What I would like to know is how do you get the larger image to display when the user clicks on a thumbnail in the scrolling panel? (I have 8 thumbnails, and 8 larger images).
ActionScript Code:
panel.addEventListener(MouseEvent.MOUSE_OVER, panelOver);
function panelOver(event:MouseEvent):void {
[code]....
just a simple actionscript2 loading a movie into an empty movie clip.
do i need to use a loop to change the name of the empty movie clips
why as actionscript cs5 decided to remove the help instructions. online instructions are slower thean previous . rant over .
c_mc2 = _root.createEmptyMovieClip("main_text", 4);
c_mc2._x = 0;
c_mc2._y = 359;
If i use this method to create an empty clip and then once i am done with the clip i unload the movie which was previously in it, what happens to the clip. Do i have to re-create it if i want to reuse the empty movie clip again with the same name?
Trying to do a simple thing, load a textfield into an empty movie clip
Here is the code
clip=createEmptyMovieClip("clip1",2);
//clip.createTextField("my_txt",1,300,20,60,60);
this.createTextField("my_txt",1,300,20,60,60);
[Code].....
It is on tracing variables. I have a attached main.fla, movieclip.fla, and movieclip.swf.
If you run main.fla from within flash you'll notice the actionscript on the first frame of main.fla is loading movieclip.swf into an empty movie clip called container on the first frame of main.fla. No problem.
In movieclip.swf I assigned three values to three different variables, a, b and c, on the first frame of moviclip.swf(See movieclip.fla) like this:
a = 1;
b="string";
c 1.234556;
Also, in the first frame of main.fla, there was actionscript as follows:
container.loadMovie("movieclip.swf");
trace (_root.container.a);
trace (_root.container.b);
trace (_root.container.c);
Now each of the above traces produced undefined results when I ran main.fla from within flash. And yes I had complied moviclip.swf. Why did I get undefined results? What concept am I not grasping?