ActionScript 2.0 :: Duplicating A Draggable Movie Clip?
Jan 16, 2004
I'm wondering if there is a way to duplicate a mc so that when you drag & drop a ball, for example, there can be 50 balls stacked underneath, each with its own capabilities to be dragged individually? Obviously the goal is to be able to do this without applying the start/stop drag action to each ball.
View 2 Replies
Similar Posts:
Jun 5, 2010
CS3 Flash - Complete newbie to Flash and I'm trying to change an existing flash piece.It consists of 4 different text statements that appear on a Black background - the first appears and stays on-screen for 10 secs, then it starts to blur and fade away in about a sec, and then the next statement appears, etc, etc., and the whole lot loops.The 4 statements appear as Video Clips (Symbols?) in the library.I need to add a new statement, which means there will be 5 statements. I duplicated one of the library items and renamed it, which seems to have worked fine... but I cannot then work out how I insert that video clip into the Timeline and still have the same visual effects and timing as the existing ones? I can insert a blank frame, but then I can only drop the new video clip text onto that one frame.I've tried copying and pasting a whole set of frames, and then go in and change the text. Which I thought had worked, but then discovered that it also changed the original frames.... now understand that's because they are just instances and any change will affect the master Video Clip!
So can anyone advise if I can insert my newly added and renamed video clip into the timeframe and create the same effect as the others?Please keep any advice as idiot-proof as possible as this is my first venture into Flash... not finding it as intuitive as I hoped, spent 6hrs to date just trying trial and error without any real success.
View 1 Replies
Feb 27, 2009
I have a movie clip "origblock" inside another movie clip "blocks". I'd like to duplicate origblock so that the new block is inside clip "blocks". however, when I do it, it shows up in _root. I've embedded my duplicate code below (take note that it references a variable "j", which is the variable of a for loop that this code is inside):
[Code]...
View 2 Replies
Apr 16, 2003
I am basically trying to duplicate a movieclip by using a button.. (no probs there).however, i want to drag each movie clip individually.. ( my brain froze)here is my butchered code..// graphic is the mc i wanna drag, n is the textfield that i want to count up.
on (press) {
addmore = "graphic" add n;
duplicateMovieClip("graphic", addmore, n);
[code]......
View 14 Replies
May 15, 2010
in flash 8 im trying to duplicate movie clip - after clicking on button i am calling loadT function.
Code:
function loadT () {
xpos = 1;
ypos = 1;
[code]....
View 4 Replies
Apr 3, 2006
The below script has a duplicate movieclip in it yet it does not seem to be working ?
on (release) {
//font = _root.extras.font_cb.getValue();
font = font_cb.getValue();
_global.text = input;
[code]....
View 4 Replies
Feb 3, 2011
I need a matrix that has 4 rows and 7 columns with a movie clip that automatically reproduces every second. Ive looked all over the forums but theres nothing related to movie clips in it. [code]...
View 4 Replies
Dec 21, 2008
I am writing an interactive 'bingo' game which creates a bingo card with 20 boxes. In AS2 I used duplicateMovieClip and 'push'ed the duplicate into an array. I could them access each movie clip when clicked (to turn a cross on or off on the movie clip). My original movie clip is called symbol_box_mc and the array I want to push it into is called symbol_box I've a load of other queries about this project but one step at a time! I've defined the array earlier with... var symbol_box:Array = new Array();
View 3 Replies
May 31, 2007
I'm looking for a way to duplicate a movie clip outside the stage in a random position. it doesnt have to be duplicated in that position, i can do onClipEvent(load) but i just need to know how to put a movie clip in a random position OUTSIDE the stage,
View 1 Replies
Sep 6, 2009
I know this is a bit common now, but I can't seem to find a way to make this work as I need it to.I've got a movie clip that I need to allow dragging on.The movie clip is the background to a website. It is very long in dimensions (lets say 5,000px by 384px).Anyway, the movie clip will align at 0,0 and then should be able to be scrolled horizontally until the end of the graphic reaches the end of the stage.My document size is 1024 x 384.I'd like to be able to make the movie scroll and ease on drag.
View 1 Replies
Oct 14, 2009
I have created an application that lets the user dynamically edit the content of an online greeting. I want the application to be able to duplicate the edited greeting 4 times, so the printed page will contain 4 exact duplicates.
I tried using duplicateMovieClip, but it would not duplicate the dynamic content edited on runtime.
I was able to use attachBitmap and "capture" the screen content, only to find out the resolution of the duplicates was far from being acceptable (I guess because screen resolution is only 72 dpi, and I need it to print nicely).
View 3 Replies
Jan 22, 2010
I have a menu that loads external images as buttons and once its built I need to create multiple instances of it next to one another. Senoculars duplicateMovieClip class wont duplicate graphic information, which my menu has, so can anyone suggest an alernative method to creating this using the same instance of the set of loaded images?
View 1 Replies
Feb 14, 2010
i want to have a copy of it and add new features to it. rather than re coding the whole thing again but when i duplicate the movie clip and make the changers the original is effected as well.
View 0 Replies
Oct 14, 2009
I have created an application that lets the user dynamically edit the content of an online greeting. I want the application to be able to duplicate the edited greeting 4 times, so the printed page will contain 4 exact duplicates.
I tried using duplicateMovieClip, but it would not duplicate the dynamic content edited on runtime.
I was able to use attachBitmap and "capture" the screen content, only to find out the resolution of the duplicates was far from being acceptable (I guess because screen resolution is only 72 dpi, and I need it to print nicely).
View 2 Replies
Nov 11, 2009
I got a flash file which reads xml data and based on total data I need to duplicate movie clips and show them horizontally. Till now i have read the data and displayed it but dont have idea how to display them horizontally.
Code:
i = 0;
level = 100;[code]....
I have done this till now, it duplicates the movie clip but when i want it to change its x coordinate it shows error
**Error** Symbol=mc_contentHolder, layer=Action, frame=1, Line 20: There is no property with the name 'x'.
newClip.x = 328;
Total ActionScript Errors: 1, Reported Errors: 1
View 7 Replies
Feb 14, 2011
I'm trying to keep a fresh copy of my loaded swf's in the loader.content while I use a copied version in my main swf. What I'm trying to do is make a slide show using a master swf to load many other slide swfs. The first time through each swf plays just fine but the second time through there can be problems with eventListeners, etc so I want to trash each slide when I'm done with it and get a fresh copy when the user wants to see it again. I've done this utilizing the cache in the browser but I'd rather use the method below.
I saw this code from: [URL] that allows you to copy movie clips so I should be able to do that with this method but I'm clueless how other then cutting and pasting code and praying that it works.
Security.allowDomain("*");
var myMovie:Sprite;
var l:Loader = new Loader();
[Code].....
View 4 Replies
Aug 9, 2009
I'm creating a draggable movie clip (an arrow symbol) that drags along a rectangular track. Works fine but my issue is when the arrow's y axis is at a certain position, it needs to remove a movie clip instance and also run a trace statement. Right now, it's not doing that (if I change the == in the if statement to += it works but then it just works as soon as you mouse down on the arrow) and I'm wondering where I'm goofing up. Here's my code:
import flash.display.Sprite;
import flash.display.DisplayObject;
import flash.events.MouseEvent;
[code]...
View 9 Replies
May 29, 2009
I am building a click through presentation that has some small text in it. To maintain the design and allow for readability, I have added a zoom feature.Here is the structure of the movie,Stage - contains pages movie clip and forward/reverse click buttons for changing pagesThere is a button at the _root level that uses a tweener to scale the pages_mc up to 170%. When this is clicked, it allows the pages to be dragged around the screen so you can look at different sections. When you click the button again, it returns the pages back to their original size stops drag.My problem is, on the pages, there are buttons with links to external sites. Once startDrag has been invoked, I cannot touch the buttons inside the movie clip. Is there a way to make these buttons work?
Code below
magUp_btn.onRelease = function() { this._visible = false; TweenLite.to(pages_mc, .25, {_x:-250, _y:-193, _xscale:170, _yscale:170}); TweenLite.to(magUp_mc, .75, {_alpha:0});
[code].....
View 3 Replies
Feb 1, 2010
I have a movie clip on the main timeline in frame 1 that I named moveablekey. What it is supposed to be is a key for a map that you can move around on the map. When you scroll over/off the key it will hide/unhide the actual key. The key has some buttons that I want to allow to go to a different link when clicked. When I test the key without the code below it will work on the link and take me to the link, but when I put the code into the main timeline it stops the link from working. Here is what I think is happening: The code seems to make it so wherever I click on the movie clip it is doing the start/stop drag code and won't recognize the buttons within the movie clip. So is there a way that I can make just the header of the key to be clickable to start/stop the drag, but still move the entire key, and allow for the buttons to be clicked?
Code:
stop();
moveablekey.onPress = function(){
startDrag(this);
Mouse.hide();[code]..........
View 3 Replies
Apr 19, 2005
i just made a draggable window for my website, its contained within a movie clip(profile_mc) and with in that there is a button which has these actions applied to it :
[code]...
now it all works good, but its reall jerky and just stops even if you dont release.
View 9 Replies
Apr 14, 2008
I have created a multi-scene flash document. One of my buttons on the stage loads a movie clip from my library and has the following script:
on (press) {
this.attachMovie("help", "window", 1);
window._x = -300;
window._y = 200;
}
Works great. Then inside this movie clip, I have an invisible button with the following script:
on (press) {
startDrag(window);
}
on (release) {
stopDrag();
}
This allows the movie clip that popped up to be draggable. This also works perfectly.
My problem is, the button will only attach the movie clip on the first scene. I currently have it loading in level 1. Does anyone know how I can work around this?
View 1 Replies
Apr 9, 2010
Unfortunatly im having to extend to more draggable objects. So they will be within another movie clip so i can have them scrolling. After making the scroll, the draggable objects dont register on the droptarget as they are within another movie clip. Below is i think the part of the code that needs to be changed so the draggable objects know where to find the drop target.
View 1 Replies
Mar 21, 2011
I am developing and interactive CD application for kids that consists in a menu and two chapters with animations and exercises. To select the chapter I have an "Accordion" style menu with draggable panels. In each chapter panel I have a button which upon being clicked should direct me to the chapters first frame. The problem is it doesn't.
View 9 Replies
Aug 27, 2004
I want to make a draggable movie clip with an input text box in it. It's going to be a "Make your own comic" game, where you can type in the speach bubbles what you want the characters to say.
View 7 Replies
Jan 18, 2005
My name is rajesh n i hav a small problem.
i m duplicating a singla movie clip (as button) but when i defining URL for all ten button it's not taking.
For each button i wanna different html url.
for ur reference i m giving url to download the file.[URL]..
View 1 Replies
Sep 27, 2010
I have a fla with a button that makes a movie clip appear. The movie clip is draggable (via the DragDrop class I created) and contains a small "close" button which I cannot get to work, so there is no way to make the movie clip dissapear.
View 21 Replies
Oct 25, 2004
Why is it that when i have button in a movie clip and that movie clip is a draggable object the button becomes inactive? How can i have both the button and the movie clip draggable and the button continue to function. below is the script i have for the draggable movie clip, which has the button contained within that:
[Code]....
View 6 Replies
Aug 31, 2009
I want to create another button on the main menu of my flash site. I want to take one of the existing buttons (which are set as movie clips) and modify it to show a different menu name and page link. BUT when I go into my library and "duplicate" my movie clip, change the instance name, drag it to the stage and attempt to modify it, the original changes as well. I need to keep the original the same and create a new one with the same code, frames, etc but with different static text. I keep going in circles
View 1 Replies
Aug 18, 2004
I'm making a banner ad for work and have a part where I want to basically rain our logo for like 15 frames or so. I've started doing this manually but as you can imagine, it's a bit tedious and time consuming. I looked at Kirupa's tutorials on snow and continual motion but I'm wondering how I would go about scripting it so it does the following within mc_logorain (which is sitting on the root) on enter:
1. duplicates mc_logo many times, randomizing size.
2. Rains for a set amount of time or frames and unloads.
I think I understand the logic of what's supposed to happen, just not sure of the syntax. Would there be two loops? One for the duplicate/random size and one to say basically "while i < 100, keep duplicating and raining"?
View 9 Replies
Jun 1, 2011
I have looked around for solutions to this problem and have come accross sombe but it still wont work.
Flash CS4 File: [URL]
square_mc is the draggable clip with the buttons inside, it is constrained to only move horizontally.
ActionScript Code:
buffer = 0 - square_mc._width + Stage.width;
square_mc.onPress = function()
{
startpos = this._x;
[Code].....
View 3 Replies