Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Making Buttons In Moving Movie Clips Work



Hello, I neeeeed help. I finished the "Infinite menu" tutorial and got the thing looking great. My problem is that I can't get the buttons that are embedded in the sliding movie clip to work. While the sliding movie clip is in edit mode, I've tried linking the buttons to both frames and frame labels using both the onRelease...gotoandstop action and the similar gotoandstopframeorlabel behavior. Though the button rollover states work, neither action strategy makes the button move the timeline to the specified spot. Assuming that I linked the buttons properly, do I need to add some sort of action script to the sliding movie clip itself or the main timeline to let FLASH know there are buttons that are active links inside the movie clip? How do I make this work?



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 04-12-2006, 12:12 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Making Buttons Work Within Movie Clips?
Dear everybody,

I have made a bunch of buttons, a single movie clip, on the main timeline.
But now the buttons do not work.

How does one make buttons work when they are within a movie clip?

Please help.

Sam.

Moving Buttons (Movie Clips)
hey fellas,

i'm still new to Flash and i need some help with the animated menu i'm trying to do:

i've created a new Symbol (type of Movie Clip) that represents a sigle button, it has the animation when you move mouse over and changes colors, etc.

now, what i'm trying to do is to put 4 of them one undernith (sp?) eachother and when i click one button i want it to move a bit to the right, and the rest of them shall remain still (or if any one was already moved - it shall go back)

u know what i'm trying to do? so, now i need to know how do i put them together and how do i make them move, i did try creating a brand new Move Clip with 4 buttons on it and tired placing them in different positions on different frames - but that didn't work)

please let me know if you need any more details,

thanks,
shizo.

Moving Movie Clips By Buttons
hello all!

im trying to scroll a movie clip by the press of a button.
i cant seem to get it to work.
i want to scroll a movie clip either left or right when a corresponding button is pressed.
when button 1 is pressed the movie clip moves to _x coordinate. when button 2 is pressed the movie clip scrolls the oposite direction to _x coordiante.

i just want a clip event script on the movieclip
and a move to position actionscript on the button.

does anyone know of a simple tutorial
or simple actionscript i can use.

thanks!!

Making Movie Clips Buttons
I'm hoping this is an easy one--I want to use a movie clip to act as a button, so the little hand cursor won't appear. What I want to do is be able to detect when the mouse rolls over this particular movie clip, so it can do something (like an alpha fade to 0). When the user rolls off of the movie clip, the movie clip returns to its original alpha property.
Any help would be appreciated. Thank you.

Help With Making Buttons Or Movie Clips Go 50% Alpha
Let me start of by saying thanks for reading this and willing to help...

I am using Flash CS3 and the file is set up in AS2...

Does anyone know of a way to make buttons or movie clips go 50% alpha when you roll over a button or movie clip.. for example.. I have 5 buttons in a row, i want it to work like this, you roll over the middle button and the buttons to the left and right will got 50% alpha, but the button you roll over will stay 100%. Giving that button the main focus.

I have two different files i can play with.. I have one set up where the 5 images are all buttons and the 2nd file i have is the 5 images are each movie clips with the image as a graphic symbol and a invisable btn over top of it.

Can anyone please help me out with this?? Is something like this hard?

Thank you so much in advance

Making Buttons Within Movie Clips Interact?
I'm a Flash newbie who just got a job that entails working with some Flash. I'm picking it up well enough, but some of the stuff is more advanced than I'm used to... so I'm really not quite clear on WHAT I should look for or ask since I'm not familiar enough with the program yet. So I'll explain my problem as best I can.


For example, there's this training program flash that features three 'matrices' side by side. Each matrix is a movie clip, and within each there's a series of buttons you hit to make more buttons appears.

The problem is, I need to be able to hit a button in Matrix A to make new buttons appear over in Matrix B... but then the stuff in Matrix B doesn't 'react' to the fact there are buttons there and will make the usual buttons appear over them, instead of how normally within the matrices, if you click one button, and then another, the first button's sub-buttons go away and are replaced with the new ones.

I hope this is making sense...

So, how can I make a button in one movie clip tell a button in another movie clip to do something and vice versa? Or is it impossible and I need to remake it all some other way? (I didn't make the file to begin with- I'm working with something the guy before me made.)

Thanks in advance!

Making Buttons Link To Movie Clips
Help! I have movie clip called pages and all my pages are layed out as movie clips in different frames in the pages movie clip. I have placed buttons on each page created and want to link them to other pages. Does anyone know how I do this? Please help very frustrated!

Making Externally Loaded Movie Clips As Buttons
I have a very small doubt. I have three different swfs of different shapes. All the three are pure graphics and exported. In a base movie clip i am loading all the three swfs in another three different movis clips.

_root.mv1.loadMovie("extnalgra1.swf");

_root.mv2.loadMovie("extnalgra2.swf");

_root.mv3.loadMovie("extnalgra3.swf");

Now the problem is when i click the these mv it has to act like buttons.

i hope you are getting me. I have solutions as round trips. but is there a simple way you know

please can you help me out



regards

Muruganandh

[F8] Making Buttons Change Other Movie Clips When Clicked?
I'm making a game where if you click on a button, a person's hair color changes. How would I go about doing this?

Buttons Within Movie Clips - Do They Work?
Hi - I am having a few difficulties trying to get my head around this one... I have a button which - using tell target - controls a movie clip to generate a drop down menu. The problem is is that when I put another set of buttons to both illusrate postion and to allow me to apply script for further navigation within the movie clip the button is not recognised and does not activate. Why is this? - I guess that there must be a reason for it!! - can you help? - thx - Yoonka

Buttons Within Movie Clips - Do They Work? II
Hi - posted this in "general" - guess its a newbie question - but how can i get a button within a movie clip - which itself is within a button to work? - check the .fla for my dilema! - thx

How Do Buttons In Movie Clips Work?
I have created a flash movie with two scenes. A splash scene and the main scene. I created a drop down menu as a movie clip with several buttons in it. I placed the drop down menu movie clip in the main scene and only the buttons to outside links work.

I'm trying to move the main scene to a new location by pressing a button on my drop down menu movie clip. Here's the code I used:

on(release) {
gotoAndPlaylocation("main", 71);
}

gotoAndPlaylocation(targetpath)"main" is the scene name and "71" is the frame. It doesn't work and I can't figure out why. Please help.

Trouble Making Buttons Work In Movie Clip
I have a menu movie clip with some buttons animated in it. The buttons within the Menu movie clip have instance names and are of the type "Movie Clip" (not of type "Button"). The movie clip is linked to myMenu.as. Within myMenu.as, I am attempting to use addEventListener to make the buttons functional. But it is not working. What am I missing??

On the stage:var myMenu_mc:myMenu = new myMenu();
addChild(myMenu_mc);
myMenu_mc.x = 0;
myMenu_mc.y = 0;within myMenu.as:

package {

import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.text.TextField;

public class myMenu extends MovieClip {

public function myMenu() {
trace("menu has appeared.");
instructions_btn.addEventListener(MouseEvent.CLICK , instructionsPress);
instructions_btn.buttonMode = true;

}

public function instructionsPress(e:Event) {
trace("Instructions pressed");
}
}
}

How To Make Buttons Work In Movie Clips?
Anybody know how to make buttons work in a movie clip? for example I want to make a button that jumps to a scene "test" which is inside a movie clip with action script :

on (release) {
gotoAndPlay("test");
}

but it will not work... However this button works OUTSIDE of the movie clip ... any ideas?

Buttons That Are In Two Movie Clips Dont Work
If you go to http://cake-prophecy.tripod.com you can see my site, the problem is the menu is in two movie clips and so it doesnt seem to work. I named all the instances but that didnt do anything. If you want the source to see whats goin on giv me an email.

Damn...buttons Don't Work When Embedded In Movie Clips...why?
SOrry if this question was already made, I couldn't find it. I am using Flash MX under Windows XP and wanted to create a bar with an animation, containing buttons. I first created my buttons and then a movieclip where the bar is animated like I wanted. Then I dragged my buttons to this bar and later dragged the bar (already with all the buttons) to the stage. I test the movie but the buttons don't work.

If I just drag the buttons directly to the stage, they work, meaning the actionscript I inserted, which is...

on (release) {
gotoAndPlay ("framelabel");
}

... seems to be ok. The problem is when I embedd the buttons in a movieclip. Any ideas? Thanks in advance.

Trouble Getting Buttons Inside Movie Clips To Work
i've made some animated dropdown menus for the navigation bar on a site i'm working on, but can't get the links inside the dropdown menu (which is a movie clip) to work. i've used the simple gotoandplay script, and i think i need to tell it to leave the movie clip and return to scene one, but can't find it in my flash book or in the help section of the program. how can i make it work?

HitTest Fun: Trouble Getting Buttons To Work In Clickable Movie Clips
hey everyone,

i've got a button inside of a clickable movie clip that i can't get to work and it's driving me nutz.

can anyone take a look at it and find out why the button housed in the MC isn't working?

please see the FLA attached.

Problem With Getting Moving Clips To Work
I am working on recreating a Pc doctor creation using flash. I am trying to use movie clips. What I want to happen is that when a user clicks on the video icon, they will to the test page. I though in order for that to work I needed to double click on the video movie clip and inside the movie clip I could add the next page which is named test page. But for some reason when I do it blends in with the main page instead of have a page to itself and a blue line encompasses the information.

What am I doing wrong. Here is the fla file.

Making This Code Work With In 2 Or 3 Movies Clips
Hi,
This code works fine on the main timeline
loadMovie("aidan.jpg", "me");

aidan.jpg being the image it loads in to the swf.
me being the name of the movieclip it loads into

It loads a image into the swf.
As soon as i try using it within a movie clip it stops working.
idealey it needs to work 3 or 4 movieclips. ... inbeded maybe an easyer way of saying that.

any ideas?

tar
Aidan

Making Buttons Work Help PLZ
Hey, i'm 14 years old and I am new to flash so don't yell at me for asking stupid stuff and I already know some of the stuff to make a flash movie but what I don't know is how to make a button actually work. I made a button in one of my flash movies and I converted it to a button. What I am stuck on is how to get from one part of my movie to another by clicking the button. I know how to set it by going to Actions and then goto and play and setting the frame number but I don't know how to make that frame after my whole movie is finished. In other words what I'm trying to say is this:
-I made a movie upto frame 210
- then I set the loop off over there so it doesn't repeat the movie after it finishes.
- now my button is on frame 210 and I would like it to go to a completely new frame after 210 just like any button on a flash site.
How do I do this? Can anyone please help me? I need this done soon for my video game clan website. THank you

Please Help With Making Buttons Work
Please can anyone help as I'm fast running out of ideas. I'm working on a really important site that is going live in a couple of days and I can't seem to get some buttons working.

Basically, I have some buttons in a Flash movie which is located in the Main Frame of a 2 frame site. The buttons have the following actionscript assigned to them (with the page name changing obviously):

on (release) {
getURL("aboutus.htm", "mainFrame");
}

The whole site works perfectly on my Apple Mac but when I test the buttons on the Flash part of the site on my PC Internet Explorer either sits there doing nothing or I get a 'Page not found' error! As most people who view this site will be using PCs I need it to work on one.

If you want to see what's happening go to www.testarea1.fernonline.net/srt

I have tested it on a friends PC and it does the same thing so it can't just be my computer. The only other thing I can think of is that as I'm testing the site I've put it in a folder, one down from the root directory rather than straight into the root directory as I normally would - could this cause a problem?

Making Buttons Work.
Hi all.

I'm trying to get a button to open a single page in a window frame, while it stops a movie that runs on start up.

Please Help.

Help With Making Buttons Work
Hello,
I'm finishing a site for a oil company and I am dumb founded on why these buttons aren't working from scene to scene below is a link to the .fla if someone could help me out. Thanks a million,
Garrett


.fla on yousendit's server

http://www.yousendit.com/transfer.ph...EB1EE9715684D5

Help With Making Buttons Work
Hello,
I'm finishing a site for a oil company and I am dumb founded on why these buttons aren't working from scene to scene below is a link to the .fla if someone could help me out. Thanks a million,
Garrett


.fla on yousendit's server Actionscript 2.o

http://www.yousendit.com/transfer.p...6EB1EE9715684D5

Making Those Buttons Work
i am trying to make a custom scroller:

thumbScrollUp.onRollOver = function()
{
thumbContainer._y--;
}

thumbscrollup is a button... i want it to repeat the y-- but i need to roll over roll off roll over roll off.. hehe

thx for the help...

snx

Making My Buttons Work
hi all,
I created my 'mainstage' with 3 nice animated buttons (as the tutorial), they work cool!!!
Now I created a new swf with a scrolling thumbnail panel, works funky as well (still have tofind out how to make each thumb clickable)
each button should refer to a different scrollpnel swf.
so when i click for example portraits in should load the portrait scrollpanel in a placeholder in my 'mainstage'. I tried to put an actionscript in the specific buttonlayer but keep screwing up in scripting
Am i on the right way??? any suggestions (i?m pretty much a newbe in the field)

And.. how the @#% do i make my thumbs in the srollpanel (when loaded in the mainstage of course) work and load bigger photos in another placeholder i pu ton the mainstage

Tnx a million
Vince

Complex Buttons - Making Them Work
my website

for those of you who have seen this before, you'll notice it's changed - hopefully for the better - lemme know what you think!

here's the problem:

the nav menu on the left was created as follows:

1)I created a button base (graphic symbol)

2)I animated the base to make it glow(MC symbol)

3)I animated the glowing base so it tweened in and out - with stop functions to slide in on mouseover, and slide out on mouseout(MC symbol)

4)I created a blank button - just a hit area.

5)I created a new MC, with three layers. Bottom layer - blank button, middle layer - tweened glowing thing, top layer - dynamic text label, which I gave the variable name 'label'. I gave this MC component properties to make it reusable, changing the label variable for each button.

6)I placed 6 instances of the component in a new MC to create the menu to be placed on the stage.

when scripting the buttons, this is what happened:

if I use on(release) to load content via the buttons, the animation no longer works.

so then I tried onClipEvent(mouseDown) - with this the animation is no longer affected, but now ALL the buttons load the same content, which is of course USELESS

how can I solve this?

thanks in advance.
your help is much appreciated.

S.

PS - the new board is kinda slow, but otherwise neat - nice job guys!

Making Buttons Work From Keyboard
Hi!
I've been trying to figure out how to make a button work from keyboard pressed keys.
I've tried the following script on the main timeline but it doesn't seem to be able to target the button

stop();
button01.Key.SPACE = function () {
gotoAndPlay(5);
}

I've also tried assigning the actions to the button itself with this:

on (Key.ENTER) {
_root.gotoAndPlay(5);
}

But nothing happens.
Could anyone help me with this?
I am making a sort of flash presentation that you can move to the different frames but pressing the spacebar or enter or some other keys on the keyboard.

Thank you!

Having Trouble Making The Buttons Work
Hi, I am having trouble making the buttons work on a movie clip. What I have is a movie clip with buttons on it and when the movie clip moves to its desired position the buttons wont work. I have included an example of what I am trying to do. Could anyone please help me as I am really stuck on this.

Thanks in advance

Crapitoutjim!

[F8] Help Making Movie Clips Load Other Movie Clips...
well i have miraculously figured out how to make my buttons grow and shrink simultaneously reacting to mouse overs... and even stay large when they are clicked on... however the only way i found to do this was by making them movie clips and not buttons...

now luckily the task at hand i'm assuming will be quite a bit easier than what i've already accomplished...

i am looking to now make those movie clip instances (when clicked on)... load photos into an empty movie clip that will be a separate swf... in the same dreamweaver file...

i have made each photo into a small movie clip that simply tweens the photo from alpha 0 to alpha 100 and back to alpha 0...

so i'm hoping for some code that will call up the first part of the movie clip (the fade up) when the corresponding movie clip is clicked on... and hold it... until another button is clicked... making the current movie clip play to end (fade out)... and then load the new movie (up to the middle... alpha 100) into the empty movie clip...

Making Buttons Work From Keyboard - Flash MX
Hi!
I've been trying to figure out how to make a button work from keyboard pressed keys.
I've tried the following script on the main timeline but it doesn't seem to be able to target the button

stop();
button01.Key.SPACE = function () {
gotoAndPlay(5);
}

I've also tried assigning the actions to the button itself with this:

on (Key.ENTER) {
_root.gotoAndPlay(5);
}

But nothing happens.
Could anyone help me with this?
I am making a sort of flash presentation that you can move to the different frames but pressing the spacebar or enter or some other keys on the keyboard.

Thank you!

[F8] Having Problems Making Submenu Buttons Work
I'm trying to build my website and am currently stuck and need help making my submenu buttons work. Basically what I did was type the main button ("Portfolio") in scene 1, made it into a movieclip then created the submenu buttons within it. When I test it, the submenu pops up fine when I put the mouse over the main button, but when I click on them nothing happens.
(For the moment I'm trying to make the 1st submenu button load a swf named "port1.swf" in the targetClip in scene1)

I typed this action for the 1st submenu button:
on(press){
loadMovie("port1.swf",targetClip)
}

It doesn't do anything. What should I do to make it work?
Thanx in advance!

Making Buttons Work That Are Not On Scene Layer
Hello,

Pardon me if this lingo sounds funny but I am new at this. I am trying to create a web page were there are buttons on a symbol off of the Scene. I want to move the time line when that button is pushed. However I can figure out the script to direct the button that is not on the Main Scene to do the movement on the Scene timeline.
If this makes any sense it's a miracle but I thank you if you can help me with the scripting lingo.

Bernie

Making Flash Buttons Work With Frames -help
Ok I'm doing a simple site with Frames in dreamweaver -the frame to the left is named leftframe where i have five flash buttons within a table. The main frame is named -mainframe. Now I can put a simple html link in leftframe and use the target="mainframe" to get the document to open in the mainframe like i want. But I am having problems with the Flash buttons. I added the on release action to the button and the get url and it worked fine- but in the window part where you have the option of _blank, _self etc. I figures I could just put the target="mainframe" but its not working. The new page keeps loading in a new window. How do I get it to open in the mainframe? I even tried adding no action to the buttons and using the regular <a href> tags before and after the object tags and god knows why the link won't work. I tried the href before the <TD> tag and that didnt work. Why cant i use simple html to make my flash buttons links? But I'd really like to know how to get the document to open in the correct frame through the actions in Flash. I really need an answer quick -i hope someone can help-thanks

GetURL... Making Buttons Work In Actionscript 3
Was painfully learning bits and pieces of actionscript 2, now with AS3 I really need help. Dug around online, found some code and tried to implement it for the homepage of http://www.littleshiva.com to make the buttons on the image work, but no go. Can anyone tell me what to do here? Oh, and for the contact button I'd rather it open an e-mail window than go to a page. I just put a page link in 'cos I didn't know how to do the mailto code. I have this so far:

contact_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.littleshiva.com/flash.html"));
}

magazines_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.littleshiva.com/magazines.html"));
}

trash_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.visibletrash.net"));
}

__________________________

I get the following error messages for lines 7 and 12, and my links don't work:

1021: Duplicate function definition.

Moving Movie Clips
I want to make a mr. potato head kind of game where i have differnt flash images and i want the user to be able to roll over the body and be able to drag the diffent pieces around.

do you have any suggestions?
Thank you

Moving Movie Clips
does anyone know how to move multiple movie clips at the same time by moving another movie clip

Moving My Movie Clips
Hey, im actually pretty lousy at action scripting, so my question may be a bit dumb or easy to solve for you (hopefully)

Ok, Im trying to make this idea work for a menu.
I have 3 squared movie clips (instance names sq1, sq2, and sq3) one next to each other, and what I want, is, click on one of them, and when I release it, make the other 2 squares move.
I got some code working but the movie clips just "appear" in the place I want, but I need them to move.

I did this once but with the onEnterFrame event and adding the code the the MC I wanted to move, this time I want to trigger the motion with some other button.
This is the code I used for that Enter Frame event:

xSpeed = random (40) - 20;
ySPeed = random (40) - 20;
square1.onEnterFrame = Function (){
with (this) {
_x = _x + xSpeed;
_y = _y + ySpeed;
}
}


Hope you can help me out
Thanks in advance

Moving Movie Clips
I have three movie clips

all called stage1, stage2, stage3 and then a menu mc (which only has text in it at the moment)

hmmm how to explain this
I have a menu which is in a white space (the menu mc is only text in white so you can't see the text) when you press one of the stages I want it to move to an area and then the menu move to another, but when a different stage is selected then the menu and previous stage move back to there origional place and then again that stage will move and the menu etc... hopefully that expains what im trying to achive

can anyone help me achive this.?

Moving Movie Clips
Okay, I have a movie clip that I am planning on using about 6 times. The thing is it does not stay in one place...starts out in a new location everytime and then moves to a new location each time.
There is not really any consistancy to where it starts and finishes.
Is there something I can do to be able to control this?

Moving Everything To The Right (after Making Size Of Movie Bigger)
Hey,
how is the easiest way to move all my content of my movie to another place? Because I have made my movie bigger (from 550x400 to 780x656); and now I want all the content on the right upper corner. This all because I have added a bigger picture in the movie. This picture (780x656) has empty space (in right upper corner); where my original movie (550x400) wil play in.

(picture is attached, so you maybe can easier undertstand my problem)

Movie Clips Acting As Buttons Can't Load Other Movie Clips
Frame 1 has three movie clips on it, instance names are A, B, C. I have the following actionscript on frame 1 as well:

stop();
import flash.filters.GlowFilter;

ar = [A, B, C];

for(var z=0; z<ar.length; z++) {
ar[z].onRollOver = rollover;
ar[z].onRollOut = rollout;
}

function rollover() {
this.swapDepths(0);
this.filters = [new GlowFilter(0x333333, .20, 7, 7)];
}

function rollout() {
this.filters = null;
}

This code creates a glow, obviously, on whatever movie clip I rollover. What I want to do as well is this:

I want to click on mc "A" and have it launch a different movie clip (let's say "X") on top of everything else (so that A, B and C are still visible in the background). "X" is in a sub-folder of "A" if that makes any sense or is relevant. Same kind of action for mc's B and C. B should launch mc "Y" and C should launch mc "Z".

What is the actionscript for this? Any questions please let me know. Please respond, I need this info as soon as possible. Much appreciated!!

Text

Variables Moving Movie Clips
i went to this site:

www3.telus.net

and i saw this cool menu trick where you click a button and it slides the list of titles until the right one is highlighted. I was wondering how they do this?
i thought they'd do it with variables or something but i don't see how they can make the movieclip have every possible combination of animations.
i've been looking at the "set x position" property but i don't see how you use that to animate a movieclip's position.

thanks for any help

Moving And Replacing Movie Clips
Greetings,

Could anyone tell me how to move movie clips to specific locations in actionscript (not timeline). I am working on a card game and am in need of sliding cards from one place to another through pure code. Just like if someone is dealing cards.

Thank you very much for any assistance you could provide.

Moving Movie Clips Smoothly
Heres what I have: 1 movie approx. 105 frames long. I have four buttons at the bottom as a nav. Those 4 buttons launch according movie clips into a viewing window above, which is under a masked layer. Above the viewer on the bar are two arrows. Up and down of course. They control the movie clips by way of 'tell target' 'goto and play' next frame. Utimately the movie clips have a stop action on frame one and then a motion tween which moves the clip up a few pixels on the last frame. So what you get is when the user clicks the button the movie clip movies up inside the viewing window. I'd like to know how to make the buttons trigger the movie clip to smoothly advance up rather than be clicked and the movie clip moving up frame by frame. What's the easiest way to do this?

Thanks in advance ::

Moving Movie Clips With Actionscript, Help Please
Hi, I have a movie clip named toad head, with an instance name of head. I would like to gradually move the movie clip up when the user presses enter. Currently y=282 and i would like to have it gradually move up so y=82 and then gradually move back to 282 and stop there. I have tried to set the y with action script but it just instantly moves it to 82 and instanty moves it back. All i want is it to scroll up there, scroll back down, and stay there. I dont want to draw out the frames because it will interfere with the collision detection and all that junk. Anyways, hope you can help me. Thank you!

Moving Variables Along Movie Clips
hey everyone
i have alittle proplem
i have a website that the user enters the name in an input text
then i need to copy his entrance to another movie clip or another SWF file
so how can i do that ??
thnx in advance

Moving Movie Clips In An Array
It's quite hard to explain what I'm trying to achieve. I want to have an array of objects which each contain a movie clip and move the movieclips around within the array.

At the moment when I copy the clip, there is only 1 clip which responds to references to both array locations and if I remove the clip via the old reference, the clip is removed completely.

I want the clip to only respond to references to it's new array location, it doesn't matter whether I have 2 clips or 1 for what I'm doing, if I get 2 clips I'll just remove the old one.

I've put the code from a test movie below, the movie clip name is clip1. There is no need for it to be in seperate frames, but with a slow frame rate you can see what happens.

// FRAME 1
grid = Array();
grid[0] = new Object();
clipParams = new Object();
clipParams._x = 100;
clipParams._y = 100;
grid[0].clip = clip1.duplicateMovieClip(clip,1000,clipParams);
clipParams._x = 200;
clipParams._y = 200;
grid[1] = new Object();
grid[1].clip = clip1.duplicateMovieClip(clip,2000,clipParams);

// FRAME 2
grid[2] = new Object();
grid[2].clip = grid[1].clip;
grid[2].clip._x = 300;

// FRAME 3
grid[1].clip._x = 400;

// FRAME 4
grid[1].clip.removeMovieClip();

Copyright © 2005-08 www.BigResource.com, All rights reserved