ActionScript 2.0 :: Get A Duplicate Empty Movieclip?
Mar 2, 2005
I tried searching for an answer to this on the forums and it seems you can't duplicate a movieclip that has a dynamically loaded jpg in it, I mean you just get a duplicate empty movieclip?
What I want to do is have 3 copies of a pic, each tinted a little differently, and have them converge and reveal the "composite" of this pic. Do I then have to use loadMovie 3 times?
I have created an empty movieclip to which I've attached two mc's. Now I want to duplicate this movieclip. But all it seems to be doing is copying the empty mc without its attached mc's.
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 loading an external swf into an empty movie clip by use of a button.The movieclip is a sort of menu that begins with an animation of the menu opening, there are multiple different movieclips I am using with this format.What I am trying to accomplish is this.When another button is pressed, I want the movieclip (regardless of which one is loaded) to either:Go to a specific frame and play a closing animation within the movieclip, BEFORE a new movieclip is loaded. OR reverse the animation BEFORE loading new movieclip.Since there are 4 or 5 buttons all loading different clips, I need all the buttons to work this way regardless of which movieclip is loaded.
Is it possible to use duplicateMovieClip to copy a movieClip into another movieclip, or is it only possible to duplicate it inside one and the same containermovieclip?
trying to make an empty movieclip, but after compile the file i press ctrl+L to see the objects instances on stage, it shows only Level #0: Frame=1. how can I make myMC movieclip???
package {import flash.display.Sprite;import flash.display.MovieClip; public class drawCurve extends Sprite { public function drawCurve() { var myMC:MovieClip= new MovieClip(); addChild(myMC); myMC.name="MC"; }}
On frame 1 new fla and I type the following code: [AS] createEmptyMovieClip("clip1",0); clip1.createEmptyMovieClip("clip2",1); [/AS] I have tried over and over again to get this to work but it won't! I want to create an empty MC and then create anoth MC within the first!
I have two movieclips, 1 with nothing in it, the other has a few movieclips within it(the few movieclps are thumbs).I set a variable leading to the name of the clicked thumb.Then I wanted the set the x position of the empty movieclip to that thumb.I tried empty_mc. height =thumb_mc.variable.height;I get a 'A term is undefined and has no properties' error.
Code: var whatThumb; var thumbName;[code].........
Can i target the second key frame of an empty movieclip which is created by actionscript.as for example:this.createEmptyMovieClip("target_mc",1);I want to write some script on the second keyframe on the target_mc movie clip. Is that possible.
I'm making a new as3 file, and there I made an animation, like an intro for my website, in a movie clip. But what I want is, when this animation or this movie clip ends, automatically it charges another swf with my website, without having to press any button. I read some tutorials on internet that I can make this, creating a new empty movie clip, and then writing some code, but it didn't work me.
I'm filling arrays from a XML. These arrays have dynamic textFields inside them, and these textFields are childs of a movieclip.
I tween this movieclip, therefore making the array of textFields animate on the stage one by one. There are two sources of XML, one from an actual site, and another from a XML stored in the hdd. First i fill the arrays of textFields, and then animate the movieclip. I do this for the first one, then animate it, do it again for the 2nd one, animate it, again for the 1st one, animate it, so on so on.
myTween = new Tween(mc,"x",None.easeNone,sizeOfStage,0 - mc.width,mcSpeedAuto,true);
my tween ends at 0 - mc.width, the problem is, if i tween first the "bigger" XML, when the next one which is smaller gets tweened, there's loads of empty space before it tweens the big one again (tweening whitespace?).
onFinish i clear all the arrays (otherwise the tweening of the 2nd one would still have information of the 1st one e.g: 1st has 25 fields, second has 10, 1st shows it's 25 fields, 2nd shows 10, and the 15 that were left from from the 1st one) and call the tween on the 2nd one. I thought that by doing this i'd be clearing all that white space too, apparently not. I think the mc.width just keeps the "bigger" value and always tweens with that, taking longer to end in the 2nd case. I've tried setting the mc.width as the sum of textfield width's everytime i fill the arrays, but this hasn't worked either
i am trying to load a list of jpgs in to flash using as 3. eventually i am going to tile them etc. but right now my script goes through my for loop and just replaces the image i previously loaded... in as 2. i of course would change the name and depth of these images as i loaded them but i am of course not using createEmptyMovieClip or loadMovie etc.. so i am a bit lost..
I'm making a lightbox type of effect in flash. How would I go about making the semi transparent layer that covers up the background fill the screen so if the screen is readjusted it remains covered?
I am using some code I found through a web search to play a YouTube video inside an empty MC: this.createEmptyMovieClip("video_mc", 12); this.video_mc.loadMovie("[URL]"); video_mc._x=50; video_mc._y=280;
Problem is, I can't seem to get it to stop playing. I can have tried: video_mc.removeMovieClip(); And it removes the video on the screen but the audio from it keeps playing and won't stop. Check it out here: [URL] Click on VIDEO, start the video playing and then click on one of the other menu options and you will see what is happening.
How do i position dynamically loaded images inside of an empty movieclip? The empty movie clip is named "cldImage" i tried to give the content loaded an instance name of content_mc and reposition it:
[Code]...
However that did not work...the image is still positioned to the bottom right of the center of the movclip cldImage.i know that movieclips have a default registration in the center - and image registrations are in the top left corner - what i am trying to achieve is to have the image load in the center of my stage in which the empty movieclip itself is placed.
I am trying to load in a sound from XML into a empty movieclip when a user selects a button... this is my code for loading the sound but I can't get it to play.
Code:
function loadXML(loaded) { if (loaded) { _root.ContentSound =
I have a main file running at the bottom (HD video of myself), and several clickable options (for various stuff on my portfolio). To show my digital work, I have a button that takes me to a frame label on _root. and a frame action that tells it to open a movieclip into a containerMC. All this is working perfectly, but it might be needful background info.
This section of my digital portfolio is a mock up of a mac screen desktop (yes I use a mac) / and I want to show my work as "programs". I expect to have 5-10 programs, 2 for now in testing. With no open "programs" at start, but I want the possibility of multiple open "programs", and when you open a new one or click one that already open but in the back, it automatically comes to the foreground (and does not close the ones already open - just like the desktop actually works). Obviously the "programs" have to be draggable too.
In AS2 I would normally create an empty MovieClip, give it an instance name and then in the actions I would make the linkage with emptyMC_mc.loadMovieClip("intro.flv");
In AS3 I'm breaking out to figure this out..., I'm making a game and I want the first frame to load an external FLV, then when the FLV is over, go to frame 2 and load another external FLV and then when this second FLV is over, go to frame number 3..
Why in the world won't this work? I have an empty MC on the stage and nothing else. On the empty MC (named "clip") I have: Code: onClipEvent(load){ this.loadMovie("myexternal.swf"); } I've also tried _root.clip and yes I've quadruple checked instance names etc.