ActionScript 2.0 :: Duplicate MC Within MC?
Apr 18, 2004
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.
Some Code:
Code:
duplicateMovieClip ("btn", "btn" + child, child);
setProperty ("btn" + child, _y, 170 + child*20);
setProperty ("btn" + child, _x, 190 + child*0);
[Code].....
View 9 Replies
Similar Posts:
Mar 20, 2010
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.
[Code]...
View 2 Replies
May 4, 2010
If I have an object that calls
addEventListener(Event.ENTER_FRAME, update);
addEventListener(Event.ENTER_FRAME, update);
will that add 2 listeners?
View 2 Replies
Sep 26, 2000
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?
View 6 Replies
Nov 22, 2004
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
[code].....
View 4 Replies
Jul 21, 2006
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);
View 4 Replies
May 8, 2003
<embed src=http://mlkdesign.online.fr/misc/kirupa/dup_experiment.swf height=300 width=300 type=application/x-shockwave-flash>
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
Code:
on(release){
for(m=1; m<=5; m++) {
[code]....
View 2 Replies
Jan 3, 2009
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
Code:
on (press) {
bn = "window" add n;
[code]........
View 2 Replies
Mar 3, 2010
I can not the mc duplicate more than 1. It suppose to duplicate more than 1 mc on stage on release of button.
View 3 Replies
Jul 28, 2007
i have movieClip on stage with name ==>> myStar. i do not know how to duplicate that movieClip ? i am trying
Code:
var myStarContainor:Sprite = new Sprite();
myStarContainor.addChild(myStar1);
myStarContainor.addChild(myStar2);[code].....
View 12 Replies
May 2, 2009
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).
View 1 Replies
Jul 17, 2009
how to remove duplicate values from xml although it successfully done using array but not in xml
here's my xml data looks like (list.xml)
Code:
<?xml version="1.0" ?>
<gallery>
<menu maker="adobe1" software="flash"/>
<menu maker="adobe2" software="photoshop"/>
[Code].....
View 5 Replies
Nov 11, 2009
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]
View 5 Replies
Feb 8, 2010
How can I duplicate a loader so that i can have a copy of the loaded data. I want to avoid sending request again back to load the same content,
View 1 Replies
Jul 15, 2010
Flash actionscript3.0 How to dublicate the movieclip and attach the movieclip in stage.
View 2 Replies
Dec 19, 2011
In stage there is one mc i need duplicate for that mc how .
View 1 Replies
Sep 22, 2009
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);
[Code]....
View 1 Replies
Nov 4, 2009
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",
[Code].....
View 2 Replies
Dec 21, 2010
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).
View 0 Replies
Nov 22, 2003
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]...
View 1 Replies
Nov 25, 2003
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.
[Code]...
View 10 Replies
Jan 9, 2003
I was wondering what you put in for addressing the duplicate MC?
View 10 Replies
Jan 4, 2004
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.
View 3 Replies
Jan 29, 2003
duplicate an empty MC ?
View 12 Replies
Mar 28, 2005
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?
View 2 Replies
Jun 13, 2003
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");
[code].....
View 3 Replies
Jun 30, 2007
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;
[code]....
View 1 Replies
Dec 23, 2007
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]
View 10 Replies
Jan 15, 2009
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.
[Code]...
View 3 Replies
Mar 25, 2009
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.
View 2 Replies