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








Duplicating A Hit State For A Movie Clip Button


Hi everyone,
I'm currently using movie clips as buttons and was wondering the best way to create a hit state, like what is found on button symbols. The movie clip images I'm using are png's with alphas, so I don't want the entire thing clickable. They need to remain movie clips, because they are animating at different points during the movie.

Thanks in advance.




Ultrashock Forums > Flash > ActionScript
Posted on: 2007-03-12


View Complete Forum Thread with Replies

Sponsored Links:

Duplicating A Movie Clip Using A Button ?
hi all,

i am trying to duplicate a movie clip using a button, and then place the duplicate at a randon spot on the stage.

something like this:

on (release) {
atom.duplicateMovieClip ("atom"+counter, counter)
}

atom is the instance name and counter is a variable set to 1 on the main timeline in the first frame.

but i'm not sure how to reference the duplicate to move it. using dot sytntax, is this how i do it:

("atom"+counter)._x=..some random position.

i know how to generate the random position, but i'm not sure how to reference the duplicate to move it there.

thanks!




[Edited by ian23 on 09-01-2001 at 04:19 PM]

View Replies !    View Related
How Do I Get A Movie Clip Into A Button State?
Hello again. Thx for the help last time but I am still having some trouble implementing it. I am trying to simulate a beating heart on MouseOver. Rather than scripting anything, it was suggested that I create a Movie clip of a beating heart separately and then insert into the button's Over state. How exactly do I do that? I have made a 4 keyframe MC, then on another canvas made the Heart button, but I don't see any way to insert the MC into the Over state. I can't find any examples in the 2 Flash books I have nor this site. Help!!

And again, I appreciate the help. Some of you guys really know your stuff.

View Replies !    View Related
Movie Clip Into A Button State
Is placing a multiframe movie clip into the keyframe of a button's over state possible? On rollover of a button, I want to give the impression that the button is pulsating. Many thanks for the help.

View Replies !    View Related
Movie Clip In A Button's Over State?
Hi,
Is it possible to insert a movie clip into the over state of a button? Whenever I try this, it only shows the first frame when the buttons are enabled. I basically just want to have a few small tweens happen when the user rolls over the button.
Thanks

View Replies !    View Related
Movie Clip In The Down State Of A Button
I'm creating a button to change audio tracks in my movie(s). When the user clicks on the button, I want it to play a small mc animation once through. The problem is, if the user doesn't hold the mouse down, it reverts back to its up state. Is there any way to make sure that the animation plays once through even if the button is switched to the up state? I just started working in flash a few days ago, so I assumed this would go in the newbies section.

View Replies !    View Related
Movie Clip On Button Hit State
okay, i have a movie that i wish to run on the hit state of a button i created. but on release of the mouse button, the movie stops. im guessing i need actionscript, right?

View Replies !    View Related
Movie Clip In Button's Down State
hi everyone.
I have a button in Flash MX with a quick movie clip in the button's down state. My problem is how do i get the button to play the button's full animation once clicked before calling the URL for the next page? The full animation only happnens if you hold down the mouse button and dont release it, othewise you'd only see a couple of frames.
Thanks

View Replies !    View Related
[F8] Movie Clip Button Over State
Hello i have movie clip
I have a button in there, I have text come up on the over state but this is now now not coming up could anyone please tell me one how i can make it come up or how to get around it thanks guys

View Replies !    View Related
Help, Add Video To Button / Movie Clip Over State
How can I add a few seconds of video into the over frame/state of a button?

Visit http://www.fxnetworks.com/shows/originals/rescueme/#/home/ to see the example of video that animates when I mouse over the the red boxes Exclusive Video, About The Show, and Cast & Crew.

View Replies !    View Related
Minimizing/not Duplicating Movie Clip Button Code
I have buttons that push mp3s with no naming convention into an array - I prefer using movie clips as buttons, and currently have the following code on each of them:

onClipEvent(mouseUp){
if(this.hitTest(_root._xmouse,_root._ymouse)){
_global.MyArray.push("SomeSound.mp3");
this.pressed=true;
_root.LOADButton1.gotoAndStop(1);
}
}

Rather than having this same code (except the mp3 name) on each of my thousands of movie clip buttons, I'd rather just take the name of the movie clip and insert it into a saved function or class or something so that as little actionscript as possible could be on individual movie clip buttons.

I posted a thread about this before, but after a few replies things get pretty confusing, so this is the most concise explanation I can provide for what I need. Thanks in advance for any help you guys can give me!


Attached is a sample fla -

View Replies !    View Related
Duplicating Movie Clip AS ... And Assigning A Different Button To Each Clone
hi everybody...

At the moment I am working on a navigation system for a project and have encountered the following problem

stop();

mcPos = new Array();
for (i=0; i<24; i++) {
duplicateMovieClip("mc", "mc"+i, i);
eval(eval("mc"+i)+".d") = i*15;
}
mc._visible = false;
fscommand("allowscale", "false");

this code is duplicating the the movie clip "mc" however within the movie clip there is a button.
Since it is a navigation I need a different button for each clone. anyone have any ideas about how
to assign a different button to each clone`??


Any ideas ??? I am totally lost and a newbee in AS. thanks ;-D








Attach Code

stop();

mcPos = new Array();
for (i=0; i<24; i++) {
duplicateMovieClip("mc", "mc"+i, i);
eval(eval("mc"+i)+".d") = i*15;
}
mc._visible = false;
fscommand("allowscale", "false");

View Replies !    View Related
Movie Clip Within Button - How Do You Disable Down State Of Button?
Hi - I have created a menu down the side of my flash site which is in the form of a button so that when the user rolls over the button, it brings up the menu. Within, this button is just text - the names for each page the user can select to go to (text is within movie clips so I can add actionscript to them).

However, I want to add on (press) {gotoAndPlay("home",1); } etc for each movie clip within this button but when i test the site, this code does not work as the buttons down state has priority over the movie clips within it.

Is there some actionscript code which could disable the down state of a button? (as i only need the button as a rollover anyway and i need the movie clips within the button to have priority in terms of actionscript for linkage etc)

Thanks

View Replies !    View Related
Movie Clip Animation Not Finishing In Button State
I'm sure this question has been asked dozens of times, but the search feature of the board isn't working right now, and I don't feel like sifting through hundreds of posts...

If there's already an explanation on this board, please just point me to it. Otherwise:

How do I get a button state's movie clip animation to play and finish its animation when you click the button?

If the answer is "move the movie clip outside the button", then could you please explain a little further? Do I put it on the main stage? If so, does it matter which frame?

View Replies !    View Related
Movie Clip As A Button: Can't Get My Extra State To Work.
*EDIT: Resolved with solution posted at end, however, the problem was not AS related as I thought. I'll encourage this to be moved to the appropriate forum then.

I'm using Flash MX 2004 Version 7.2

Okay, I'll try to explain this the best I can. I'm trying to use a movie clip as a button with 4 states, 3 of which are standard, as shown below:



The first frame contains a regular stop(); action.
The last frame contains a stop(); action as well, as I want the clip to stop after this tween.

For the movie clip in the document, I'm using the following ActionScript:
code:
on (release)
{
gotoAndPlay("slash");
}


According to the materials I have with me, this is supposed to play the movie clip starting at the "slash" frame (as opposed to the main timeline).

The problem I'm having though is that the tween is only playing to frame 17 of the movie clip, and then it goes blank, as if it's already played.

I've got a FLA linked below, just be warned it's pretty primitive. I'm actually trying to get something like this working so when I create my battle system for a game I plan to make, I don't have to insert frames for these tweens on every new enemy - I can just use the same button over and over, and apply the proper battle equations to it on(release).

FLA: http://atlas.walagata.com/w/naojason...stemengine.fla

View Replies !    View Related
Maintaining Over State On Button Within Movie Clip After Clicking
Hey Guys,

This is frustrating me and its prob so simple and is a tiny thing but is required for userbility.

I have a slide show with next and previous buttons, when a button is clicked i need it to remain in the over state so that the user has the ability to continuosly click through all the slides without having to move the cursor to regain the over state.

At the moment after the click event the button returns to the up state even though the cursor is still over the button.

I have tried a gotoAndStop(2) statement on release of the button but it does not work.

Is this because the buttons are within a movie clip ? because when i test the movieclip on its own the buttons work the way i want but when i test it from the main timeline they do not.

Pleae help

View Replies !    View Related
Movie Clip Button Up-state, Stay Up Until Clicked On Other Btn
hey everyone,

hey does anyone no where any tutorials that highlight how to keep a Movieclip Btn 'Over State' to stay in the over position until another button is clicked?

View Replies !    View Related
Movie Clip As Button - "Hit" State - Please Help
Hello,

I have a movie clip I am trying to use as a button.

My onRollOver and onRollOut animations are working just fine.

I can not get the movie clip to goto to my next scene (button link) when it is clicked:

this.button_mc.onRelease = function () {
button_mc.gotoAndPlay("_down");
}

where fram label "_down" on the movie clip timeline then has actionscript:

gotoAndPlay("new_scene", 1);

I see it goes to the _down frame label in my program but it NEVER executes the gotAndPlay. I have no idea why?

Thanks a lot, Brian

View Replies !    View Related
Duplicating Movie Clip
I am currently haveing a number of movie clips duplicated within a movie - The problem that I am haveing at the moment is that the movie clips that are being duplicated are being positioned on top of other symbols on the stage, even when I place these symbols on layers above the one with the original movie clip that is being duplicated - can any one please help with this problem

thanks
Peter

View Replies !    View Related
Duplicating A Movie Clip
Hi,
I was wondering if someone could help me out.
I want to make something like a 'night sky'...
I have the black background and a movie clip called
star.
Can anyone tell me the script to have the star movie clip
duplicated and randomly placed across the black background?
I don't want more than 15 stars on the background at a time.

Thanks for your help!!

View Replies !    View Related
Duplicating Movie Clip
I have created 5 buttons. I have created 1 movie clip.
I am controlling the movieclip with button1 by doing a "on roll over, tell target (movie1) go to and play 1" I want to use the same movie for the same effect (with changes on layer 2 of each movie)Can I duplicate the movie clip, rename it, drag it onto the timeline, and control with each button. In other words, button 1 controls "movie", button 2 controls "movie2", etc. If not any suggestions would be appreciated...
Thanks for your help - DB

View Replies !    View Related
Fed Up With Duplicating Movie Clip... Please Help
Hi All,

I'm working on a presentation for a educational institution. I came across one problem for which i need you people's help.

This presentation is for primary level and so its a alphabetical exercise. I animated a bear entering on screen carrying two papers on which "A" and "a" is written. and then another enter with "B" and "b" and so on till "Z". What I've done is made a movie clip of one bear (with "A" and "a") and duplicated it 25 times (As there are 26 alphabets). Now when I'm placing all these animated movieclips on screen. The file size get heavier and the animations moves slow and jerked. There is no changes in bear appearance and colour or stucture, the only change is the alphabets.

Is there any way to do it easily as the file size should not increased and it play smoothly.

Please help me with solution

VICKYMUSTDIE

View Replies !    View Related
Duplicating A Movie Clip
I have a movie clip (smallwheel) that contains two movie clips (wheelclip1, wheelclip2). At the begining of the movieclip (smallwheel3) only wheelclip1 is visible, after a simple motion tween only wheelclip2 is visible. Wheelclip2 can then be dragged. What I would like to happen is this:

After Wheelclip2 has been dragged and released a duplicate of the movie (smallwheel3) is created and place in the original position.

The duplication occurs but after the second wheelclip2 is dragged and released it simply disapears. I would like to be able to have many copies of wheelclip2 that can be dragged on press.

Here is the code that I have placed on wheelclip2:

on (press) {
startDrag(_this);
}
on (release) {
stopDrag();
for(i=1;i<i+1;i++);{
duplicateMovieClip("_root.draw.smallwheel3","small wheel3"+i,i);}
}

Any help would be greatly appreciated.
Thanks

View Replies !    View Related
Duplicating A Movie Clip
i have a movie clip that a user can duplicate by pressing a button. i want the new duplicated movie clip's ._y attribute to be 50 pixels offset. the first duplicate i make is offset, but all the others just duplicate in the same place.

cna someone please tell me what i'm doing wrong and how to get each new movie clip to be offset from the previous one


here is my code:

// initial container name is "container0"

copy=0;
apply_drag(copy);

//copy button
_root.more.onRelease=function() {
duplicate_container();
}
//duplication functionality
function duplicate_container() {
copy++;
container0.duplicateMovieClip("container"+copy,cop y);
_root["container"+copy]._y+=50;
apply_drag(copy);
}
//dragging
function apply_drag(copy) {
_root["container"+copy].frame.onPress=function() {
_root["container"+copy].startDrag(false);
}

_root["container"+copy].frame.onRelease=function() {
_root["container"+copy].stopDrag();
}
}

View Replies !    View Related
Duplicating Movie Clip
Hi People
Maybe somone could help?

I need a simple code i can use to duplicate movie clips, I also need to use this script for more then one movie clip, the duplicated movie clip needs to be able to be draggable.

It would hep if someone could help me, im using flash mx professional

Thanks in advance

ben_2005

View Replies !    View Related
Duplicating Movie Clip
Can someone help me check this file so that whenever i press the dupe button a cube will duplicate and and form steps down instead of moveing the 2 cubes?

http://b.1asphost.com/connexi/Terrain1.fla

View Replies !    View Related
Duplicating Movie Clip
I expect this is simple but I cant get it to work....
I have a movie clip that when clicked I want it to duplicate randomley accross the stage....
Can anyone help...Cheers

View Replies !    View Related
Help With Duplicating Movie Clip.. ^^
Hi everyone..
This is my first post and... my first question.. I got this shooting game that I want to do..
Basically a bunch of target (movie clip called "blah") will fall randomly.. done with actionScript.. this is the code:


Code:
for(i=1;i<4;i++){
blah.duplicateMovieClip("blah"+i,_root.getNextHighestDepth());
}
where blah is the movie clip.. as for the shooting cursor, I used mouse.hide and another movie clip with the mouse drag code:


Code:
onClipEvent (load) {
startDrag(this, true);
Mouse.hide();
}
Somehow all of those duplicated movie clip (Target) seems to be above the shooting cursor, instead of below it - except one which is the main copy, I suspect it's something to do with the _root.getNextHighestDepth() code in the duplication.. so I tried messing around with it.. it doesn't work (T_T).
I tried deliberately setting the depth into its own depth, i.e.:

Code:
for(i=1;i<4;i++){
blah.duplicateMovieClip("blah"+1, blah.getDepth());
}
Can someone please help me?? (T_T)
Thanks in advance..
Oh by the way.. I'm using Flash 8 Professional...

-B.B

View Replies !    View Related
Help Duplicating Movie Clip
hey every body i need some help duplicating a movie clip... its for like a shooting game...

i have a dot which is named circle and i have this code on it


Code:
onClipEvent (enterFrame) {
_root.newCircle._y -= 5;
if (Key.isDown(Key.SPACE)) {
_root.newCircle = this.duplicateMovieClip("newCircle"+_root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.newCircle._x = 69;
_root.newCircle._y = 93.5;
}
}

it works fine but when i press space the new movieclip goes back to where it was and starts moving from there... it doesnt create a new movie clip in that spot...

can anyone help me duplicate this more then one time?

View Replies !    View Related
Duplicating Movie Clip
A ball which is clicked it should duplicate 5 balls in first row. 4Balls in next row. Numbers should appear randomly. The number should not be repeated. How to do this flash?

thanks

View Replies !    View Related
Duplicating A Movie Clip?
I have been wondering about duplicating a movie clip.

Is there a way to duplicate one already made and then rename it - so it is a new clip with the same animations/coding/actions on the inside without changing the original clip???

It seems every time that I've tried to do this, it will still change all / or the original clip.

Does this make sense?

View Replies !    View Related
Duplicating A Movie Clip?
I have been wondering about duplicating a movie clip.

Is there a way to duplicate one already made and then rename it - so it is a new clip with the same animations/coding/actions on the inside without changing the original clip

It seems every time that I've tried to do this, it will still change all / or the original clip.

Does this make sense?

View Replies !    View Related
Duplicating Movie Clip
hello,

can anyone suggest me how to duplicate movie clips into different position but still in the boundary of the box?

View Replies !    View Related
Duplicating Movie Clip
I have an instance inside of a movieclip that I am trying to duplicate on press. I also am trying to have this duplicated instance take the name of the original instance plus a variable. I'm sure I'm way off, but this is what I'm trying:


Code:
on(press) {
_root.currentNum++;

duplicateMovieClip(this,this._name+_root.currentNum,1);
this._x += 100;

trace(this._name);
trace(_root.currentNum);
}
The instance is duplicated, but it's not getting the right instance name.

View Replies !    View Related
Duplicating Movie Clip
I have a welding torch fallowing a path and i need the sparks from the torch to play and stay at the spot it started to play at while the torch moves along and i want to use action script to do this i'm a beginner and i dont really know how to do this please help me!!!!

oops i put this in the wrong section can someone put this in the actionscript section?

View Replies !    View Related
Duplicating A Movie Clip
hey all.......

i'v just wrote this script in flash 5 for doing a random x/y position for a movie clip nClipEvent (enterFrame) {
_x = random ( 500 );
_y = random (500);
}

but i just want it to be duplicated every time it is in any x/y position ......

so wanna help from ya guy, i am a newbie so i want a little bit explanatoin thx 4 helping........

View Replies !    View Related
Duplicating A Movie Clip Onto Another
I'm sure I'm just not thinking about this right but rather than scrathc my head for hours, hopefully someone can tell me where I'g going wrong.

I'm trying to produce a sort of gallery. I want to be able to duplicate a thumbnail as many times as I require. I then want to use a mask so that the thumbnails slowly appear.

So the problem I have is duplicating a movie clip so that the duplicate lies on the layer which is being masked. I have a movieclip in the masked layer on to which I want to put the duplicated thumbnails. In other words, how do I stop my duplicate movie clip from appearing in _root?

View Replies !    View Related
Duplicating A Movie Clip?
Simple movie clip and I am trying to duplicate it a few hundreds times. So it appears on various parts of the stage.

Anyone know the code?

Cheers.

George

View Replies !    View Related
Duplicating Movie Clip
The below script has a duplicate movieclip in it yet it does not seem to be working ? Can anyone tell me why thanks:

on (release) {
//font = _root.extras.font_cb.getValue();
font = font_cb.getValue();
_global.text = input;

//if (_root.inputbox.text != "" ) {

count++;
duplicateMovieClip(_root.extras.textmovie,"textmov ie"+count,count+12);
this["textmovie"+count].onPress = function() {
this.startDrag();
this.dragging = true;

};

View Replies !    View Related
Duplicating A Movie Clip (help Please)
I want to duplicate a movie clip for each item selected from an XML file.
I can't seem to find anything that works. Can somebody give me something to start with?

Thanks!

View Replies !    View Related
Help With Duplicating A Movie Clip
i read the tutorial, and can't get it to work...
i'm trying to get the bullet to be duplicated at the correct position each time the gun is fired
the fla is attached, will someone plz tell me what i'm doing wrong?
thanks

BTW- all artwork was made by porpous (except the line that he walks on lol)

fla can be found

HERE

View Replies !    View Related
Duplicating Movie Clip
I'm setting up a simple photo gallery with thumbnails. I've made one thumbnail clip, and then I'd like to duplicate that clip as many times as necessary to house the various thumbnail images that will be loaded dynamically.

I started to script it, but for some reason, although the duplication part works fine, it doesn't seem to recognize any attempts to work with the properties of the duplicated clips? Long story short, this script doesn't work (and yes, of course spacer is defined, and the syntax itself is fine. When traced, the values are all correct - just doesn't apply to the movieclip targeted for some reason??):


ActionScript Code:
for (var i=1; i<total_images; i++) {
    duplicateMovieClip(thumbs.btn0, "btn"+i, i);
    thumbs[btn+"j"]._x = thumbs["btn"+(j-1)]._x + thumbs["btn"+j]._width + spacer;
}


...but this one does?


ActionScript Code:
for (var i=1; i<total_images; i++) {
    duplicateMovieClip(thumbs.btn0, "btn"+i, i);
}
 
thumbs.btn1._x = 200;
thumbs.btn2._x = 300;
//etc...
 


Why can't I control the properties of the duplicated clips within that first loop? Am I just missing a step someplace?

Any help would be great! Thanks!

View Replies !    View Related
Duplicating A Movie Clip
i have a movie clip that a user can duplicate by pressing a button. i want the new duplicated movie clip's ._y attribute to be 50 pixels offset. the first duplicate i make is offset, but all the others just duplicate in the same place.

cna someone please tell me what i'm doing wrong and how to get each new movie clip to be offset from the previous one


here is my code:

// initial container name is "container0"

copy=0;
apply_drag(copy);

//copy button
_root.more.onRelease=function() {
duplicate_container();
}
//duplication functionality
function duplicate_container() {
copy++;
container0.duplicateMovieClip("container"+copy,copy);
_root["container"+copy]._y+=50;
apply_drag(copy);
}
//dragging
function apply_drag(copy) {
_root["container"+copy].frame.onPress=function() {
_root["container"+copy].startDrag(false);
}

_root["container"+copy].frame.onRelease=function() {
_root["container"+copy].stopDrag();
}
}

View Replies !    View Related
Down State Prob With Clip Inside Button
hello,

i have a button which has a movieclip in the over state.
the movieclip is just basically a line expanding in width.
on the down state i put just the end frame of the moiveclip in.

but.... when i rollover the button all is fine, it expands and then stops but when i click "down" instead of just staying the same the clip seems to start again > annoying

what am i missing here?

View Replies !    View Related
Movie Clip Hit State
Hi,

I have some movieclips acting as buttons, what I want to do is give them a visited, or currently hit state.

I have kind of achieved this but when another button is clicked then I need to reset the first button to its original stater# so I dont have more than one button in a 'hit state'.

The buttons cannot be referenced in any way as there are loads of them in my actual site, so this may not be possible

I have linked an exaple fla that better depicts this.


Hope some one can help,Thanks

View Replies !    View Related
Movie Clip Hit State
Hi,

I have some movieclips acting as buttons, what I want to do is give them a visited, or currently hit state.

I have kind of achieved this but when another button is clicked then I need to reset the first button to its original stater# so I dont have more than one button in a 'hit state'.

The buttons cannot be referenced in any way as there are loads of them in my actual site, so this may not be possible

I have linked an exaple fla that better depicts this.


Hope some one can help,Thanks

View Replies !    View Related
Duplicating Movie Clip In Specified Pattern
hi

i am not sure how to go about starting this project. i have never had success with duplicating movie clips and if there is anyone out there kicking around today, i would really appreciate some help.

i need to make a duplicating movie clip swf

the mc is a circle and i would like it to duplicate to the number 910

in a square pattern that is 26x35

then i need to be able to target each duplicated circle to be able to change its color.

i bet i can get a duplicating movie clip going, but how to go about making it duplicate equally spaced in a square pattern, 26x35...

stummper.

thank you for listening and i look forward to any help you can offer me.

best
slimpixi

View Replies !    View Related
Depth Of A Movie Clip After Duplicating?
hello,

I have MovieA which is Duplicated about 37 times with the below code:

---------
duplicateMovieClip (this.CalendarX, "mc"+start, start);
setProperty ("mc"+start, _x, newx);

That works fine, but i have a button inside of the movie, which displays info when a user rollover it. I need the code to to movie the the movie which the mouse is over to be on top of the other 36. I have tired the below with no luck. Please help Thanks!!!

onClipEvent(load){
this.swapDepths(50);
}

View Replies !    View Related
Duplicating Movie Clip Problems.
Hey,

I'm trying to spawn enemies so that whenever one is killed another one spawns to a maximum of 3 on screen at a time.


Quote:




// Frame 69 Actionscript
enemycoordinates = [ [ 100, 150, 100 ],
[ 200, 300, 75 ],
[ 400, 150, 50 ],
[ 600, 200, 25 ],
[ 750, 75, 92 ]
];

while (_root.enemiesalive < 3) {
_root.enemiesalive += 1;

duplicateMovieClip (_root.level1enemy, "level1enemy_" + _root.enemiesalive, _root.enemiesalive);

enemytospawn = random(5);
set("level1enemy_"+_root.enemiesalive+"._x", enemycoordinates[enemytospawn][0]);
set("level1enemy_"+_root.enemiesalive+"._y", enemycoordinates[enemytospawn][1]);
set("level1enemy_"+_root.enemiesalive+"._xscale", enemycoordinates[enemytospawn][2]);
set("level1enemy_"+_root.enemiesalive+"._yscale", enemycoordinates[enemytospawn][2]);

"level1enemy_"+enemiesalive.gotoAndPlay("Alive ");
}

// The above appears to be getting set as when I go List Variables it displays the x, y, yscale and xscale for each of the three objects, but they don't seem to appear on screen anywhere.

// Frame 70 Actionscript
prevFrame();

// For level1enemy actions
on (release) {
if (this.dying != true) {
totalshots += 1;
totalscore += 1;

this.gotoAndPlay("Dying");
}
}

// When the enemy is clicked it goes to the dying label, does the animation and then calls
removeMovieClip(this);




Anyone have any ideas? Post if you need any more information.

Thanks.

View Replies !    View Related
Duplicating A Movie Clip W/ Animation
I need a thing that on enterframe adds 1 to a count, so it would have the frame number stroed in count. I would also need a movieclip to duplicate itself on certain frame numbers (like frame 5, 100, or 4000). But when I get it to duplicate, it doesn't play the movieclip. (The movie clip has an animation inside it.) So how would I make a .play(); that would work with this?

Thanx Much

View Replies !    View Related
Duplicating A Duplicated Movie Clip
I am doing a project in which lot of images should be displayed. Each images is retrieved from the database.

What I have done is, I have placed a movie clip and duplicating it as necessary on clicking of a button. So depending upon the number of images stored in the database, movie clip will be duplicated and gets loaded with the images.

These duplicated movie must be draggable. Therefore If the user wants to choose particular image, he will be able to drag these movie clip and put into another movie clip. The user can choose a single image multiple times.

So I want to duplicate the duplicated movie clip on the release event of the duplicated movie clip.

How to do this?

Thanx in advance.

Nagarajan.V

View Replies !    View Related
Duplicating Movie Clip + GotoAndPlay
I have duplicated a moviclip which contains a button within it,

I need the button to gotoandPlay a sceen in the movie but the normal menthod is not working.

I have tries a geturl and this works so why gotoandplay not?

Gareth

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved