mhhh can anyone tell me why the round mc wont duplicate into a box, but makes an ugly pyramid with the wrong coordinates on top of that ???here's what's on the duplicate button
My problem is that when I click the letter movieclip it does create the duplicate as it should and it starts to drag the duplicate mc. However, when I release the clip it doesn't stop dragging? I realized that if I put onMouseUP event instead of onRelease it actually does stop dragging when I release the mouse. I would, however not like to use the onMouseUP event if possible.
I am having problems dupliating a movie clip. I can make a duplicate from an original but when I edit the duplicate it also modifies what is in the original. (I am just changing the text, thats the only difference between the 2) How come it effects both clips when I only change one?
i am (was) trying to make a xml driven menu. i am using duplicateMovieClip to duplicate a movieclip inside which there is a textfield which gets filled with a title from an array that is loaded from the xml.that's all fine. But then i wanted some of these buttons (when pressed) to populate additional submenus using another function using duplicateMovieClip. uh oh, the second i clcik my top buttons, the submenu gets filled, but the top menu disappears!what do i do?
Code: /////////////////////////////////////////// //load XML
Im trying to duplicate a mc, but i what im trying to do is, make it so that when the duplication of _root.mc1.mc2 is made, i dont want it to be part of the mc1 anymore but on the root. Right now the script im using duplicated the mc, but when the parent mc is gone so is the duplication. This is the script im using
i = i+1; duplicateMovieClip(hatmissle, "circle2"+i, i);
I have the details in my flash and swf file, but I'll explain what's happening. If you click on the green "i", it opens a window, you can drag the window by the top bar next to the exit and minimize. But unfortunately, if you close this window and open other (duplicate of MC), you can not move the window like you can on the original. My guess is that the AS does not carry onto the duplicate; I am stuck right here, if I can get this fixed, it will fix a lot of my other animations. I've been trying to search for this on Kirupa, but there are no results
I want to duplicate a movie clip within a MC but can't seem to do it. Therefore, I just want the button(MC) to appear on the Gallery MC. It is also being dynamically created but that should not matter.
I'm trying to make a small game and I've got most of it done. I just need to learn how to duplicate the enemy, so when one dies another one or two can take his place. The enemies instance name is "ninja" (no quotes).
I have a welcome page and then 4 pages that can be reached by the main links at the top. In one of my pages, the gallery page where I will display art I have the "graphic" page, which is the link it goes to when gallery link is hit, and also in the "graphic" page there's a link to the "illustration" page along with another link next to it directing back to "graphic". I can get the link to "illustration" from "graphic" but the only way it lets me to get back to "graphic" is by hitting the gallery link at the top. I linked "graphic" from the "illustration" page but I can't get it to work without getting the duplicate error message. I created a separate actions layer corresponding to two galleries pages, 'cause otherwise i would get the "Cannot access a property or method of a null object reference". but still stuck at a dead end.[code]
I have one action for stopping video when i go to another page, and it works great. Here's the code:
function newPage(e:MouseEvent):void { new Tween(highlight_mc,"x",Strong.easeOut,underline_mc .x,e.currentTarget.x,12,false); removeChild(currentPage.targetMC);
I am trying to duplicate a movie clip several times (to create a wallpaper from a background tile). However I'm running all code from the first frame of the file on the _root level, but the MC I am targeting is nested deeper. I'm sure I'm missing something obvious but I just cannot get the duplicated MCs to stay at the same location is the MC I am cloning!
The clip I want to clone is _root.core.bg.tile I want the duplicates to reside in _root.core.bg with names such as...
_root.core.bg.tile_2 _root.core.bg.tile_3 etc
Here's my code:
ActionScript Code: function preloader() { loadImage(global_path + "assets/images/website/construct/wood-texture.png",
Is there a way in which the user could open a SWF file that loads an image contained in the same directory as the SWF file AND then somehow save the SWF or another SWF with this image loaded WITHOUT needing the external file?Basically i need the user to be able to insert there own image without actually using Flash to manually do it, then somehow they would have a duplicated SWF which had this image saved into its library (without the need for the image file to be present in the same directory as the SWF).
How to correctly duplicate a movie which has previously been set to invisible. See commented out lines in the attached fla. Just show on the penny_mc, Also, I could use suggestions on how to assign the movies which hit their targets a number value, and then keep a running total of all hits in a container, and display the content of the container into the dynamic text field. I am very slow to learn this, and could realy use the explanations commented out along side.[code]...
What I'm wondering and seeking is a way to duplicate each dot in the grid one after another, rather then all at once. I was wondering if it would possible to also control the speed at which they are created.
I set up this practice file for a photo gallery, but why do I have to click the "thumbnail" twice to get it to kick in and duplicate? One click should duplicate the thumbnail, enlarge it, move it over, and gray out the thumbnail, which works except for the 2 clicks thing.
I need to clarify some issues in my mind about paths to duplicates b/c while I thought I understood them well enough, I am not obtaining the desired results when working with them. In the below examples, I'm gonna leave out as much extra AS as possible and all of the main MCs are on the _root level.
[code]...
where the bombHitArea MC is only in the first frame within "bombMC" so that as soon as it hits, it advances to a label where the hit area is not present and that hitTest cannot = true, so the whole thing can only play once per hit. When the bullet dups hit the bomb dups, each bomb should explode individually, correct?
I`m trying to attach a mc into position x=0, y=0 and load an image into it.Until here the code works! But I cant make it duplicate 3 times. What I really need is to duplicate it in 3 different places.
First duplication place: x=310; y=0; Second duplication place: x=0; y=310; third duplication place: x=310; y=310;
Here is the code:
Code: // comando para fullscreen fscommand("fullscreen", "true"); fscommand("allowscale", "false");
I'm having an issue with a rollover on a duplicated mc. I have a mc (circle with little squares in it), that when you click on it, it duplicates and you can drag the duplicate. I then would like to be able to be able rollover the square areas on the duplicate and have something happen. The problem is that nothing is happening when I rollover the squares (referred to as slots in the code) on the duplicate.
Here is the main code: ActionScript Code: var tCounter:Number = 0; var root:MovieClip = this; var dup:MovieClip;
Is there a way to duplicate a MovieClip in AS3???I've tried all methods I found (in google) but weirdly none works.I am very pissed as people keep saying it works but it don't!!![code]
I am designing a flash game and I am having a bit of trouble with the Actionscripting, I wondered if you might be able to help me? I will try and explain how the game should function and I attach a JPG that shows the rough layout as well, hopefully from that you may be kind enough to point me in the right direction.
How it should function The idea is you have a glass that you control, left and right keyboard arrows control left and right movements and it only moves on the _x axis and the _y axis always stays at it's current value, this works fine and I have managed to add actionscript to the glass movieclip to do this, the movement also has gravity and friction which means the glass slides on a little even when you move to go the other way.
Using the Glass you need to collect falling object movieclips, there are two types, good and bad. When you catch the good it adds to your score and when you catch the bad it deducts from your score.
The falling objects need to be random and I have successfully managed to get 1 movieclip to fall by using actionscript code and also I have managed to set the _x position as random each time , the actionscript to do this has been applied to the falling object.
I was looking at a video tutorial, and in order to reference a MovieClip, the instructor used:
var mc:MovieClip = MovieClip(e.currentTarget);
What is the difference between using that, and just using:
var mc:MovieClip = e.currentTarget;
Also, is there any way to easily duplicate a MovieClip? (or any class for that matter) There was a function somewhere back there, but that created a dynamic class. I want an exact replica of the class and all it's properties without manually changing over each and every value.