Movie Clip Duplication Problem
Not sure how to do this, but I have a rather elaborate button that I have converted into a movie clip and I want to duplicate that button into several others that look just like it, but have different images on them. The problem is that when I duplicate the clip in the library, and then edit the new clip, I don't want those changes to reflect in the original clip. I just want to be able to duplicate the original button, and then edit the copy to make another button independant of the original. I would think that this would have a simple solution, however, it seems to be eluding me at the moment. My appreciation for any help that can be given.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 10-14-2005, 09:41 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help With Movie Clip Duplication
hello!
I have attached the file i have done so far, which doesnt work
but this is whats going on:
This .swf needs to create a list of Real Estate Listings dynamically with an variables from a text file.
Each listing is a Movie Clip that contains the following:
A photo (which needs to be loaded dynamically)
A description
An Address
Price
# of Beds and Baths
Size of property by square ft.
All of those are dynamic text fields inside of the movie clip.
So far I have a text file like so:
&N=3
&descripts="Desricption 1¿Desricption 2¿Desricption 3"
&addresses="Addr 1(BR)City 1¿Addr 2(BR)City 2¿Addr 2(BR)City 2"
Note: The (BR)'s really equal < b r > without the spaces, i dont know how to turn off html code in this message haha.
Then I tried to load an array with the variables, spilting them by the character '¿' (alt+168)
Then depending on how many listings, it would duplicate the movieclip and file in the information for all the listings in the text file. the listings would be placed under one another, and would be put in a scrollable movieclip (I dont need help with that part, just how to create them dynamically and fill them with the correct information.)
Thanks!
Movie Clip Duplication
I'm using flash 5. When I try to duplicate a movie clip the copy becomes one of my tweens. I have about 600 tweens and the only way I founf to get around this problem is to delete the tween that the clip turns into. But if the tween is something that I need then I can't delete it.
What do I do? Please help.
Movie Clip Duplication And Randomization
I have some text
I want that text to fly from right to left across the screen at a random speed at a random height along with duplicates with random properties.
So multiple instances on the screen at at once at random heights acceleration/speed across the screen.
Can action script do this ? plz
Thanks in advance
Movie Clip Duplication Problems
I qualify as a very novice flash designer. But I'm under the gun and have a deadline to meet.
My problem is that when I try to duplicate a movie clip the copy becomes one of my tweens. This is a big problem when I need to duplicate a complex movie clip that I want to re-use for a different purpose. You understand what I mean.
If anyone can help me with this problem I would really appreciate it.
Problems With Duplication Of Movie Clip
can someone take a look at the attached .fla and see if you can spot what my problem is here.
an onEnterFrame handler created for an empty movieclip is supposed to run until 11 reps have finished and thus 11 duplicates of this clip will be made and lined up in a row.
problem is the onEnterFrame handler is only running once. so the clip is duped and positioned once only. don't understand why.
and here's something else strange. if i eliminate the stop() method in the parent clip's timeline (frame 15) then suddenly the onEnterFrames are ALL executed, as though i had really removed a stop() that was on the empty clip's timeline (the clip doing the onEnterFrame executions). but even then, the clips that are duped exist only until the next dupe happens, and then the prior clip is deleted for some reason.
????
i'm really confused. maybe lack of sleep, but i've actually been working on this before and had the same problems.
help would be greatly appreciated.
XML And Dynamic Duplication Of Movie Clip...
I'm trying to develop this flash journal/blogging system...
My only hang up...
I am trying loading XML variables into a single movie clip... and then duplicating that clip based on a _y value. I have the text autoSize set to true... so that there is no character limit.
But the movieclip isn't dynamically sensing the y value it should - once the text autoSizes...
Here is my code for duplicating the clip and setting the new _y:
///////////
if (myXML.loaded != 1) {
gotoAndPlay(_currentframe-2);
} else {
if (myXML.firstChild.hasChildNodes()) {
myDesktops = new Array();
myDesktops = myXML.childNodes;
TotalDesktops = myDesktops.length;
for (i=0; i<TotalDesktops; i++) {
duplicateMovieClip("new_event", "new_event_"+i, i+1);
curClip = this["new_event_"+i];
curClip.date = myDesktops[i].firstChild.firstChild;
curClip.text_container.description = myDesktops[i].firstChild.nextSibling.firstChild.nodeValue;
curClip.text_container.link = myDesktops[i].firstChild.nextSibling.nextSibling.firstChild.nod eValue;
curClip._y = Math.round((_parent["new_event_"+(i-1)]._y)+(_parent["new_event_"+(i-1)]._height));
curClip.i_value = i;
}
} else {
gotoAndPlay(1);
}
}
stop();
////////////////
I think my problem happens here:
curClip._y = Math.round((_parent["new_event_"+(i-1)]._y)+(_parent["new_event_"+(i-1)]._height));
If I could somehow sense when the text is loaded... maybe that would fix it....
I was thinking some sort of loop that duplicates the clips individually... and senses when the previous clip is loaded... and then sets the _y values after they are loaded.
Any thoughts?
Random Movie Clip Duplication
RANDON MOVIE CLIP TRIGGERING:
1)i have a movie clip, and i want to duplicate 50 of them. The order will be one below the another. The height of one movie clip is 10 pixels, so they will go like 10, 20, 30, 40, etc. (x=0 for all of them and y= 10, 20, 30, 40,....)
2) those duplicated movie clips will be RANDOMLY duplicated and then play.
How can i do this? Any help is appreciated!
Tunnel Effect Movie Clip Duplication Help
I've got to create a tunnel effect and must keep the file size to a minimum. I have a series of simple circular movie clips, all similar to one another, that will zoom from the centre outwards and rotate.
I need to have some actionscript that will do the following... and I warn you this is very complicated.
1) Select one of these, lets say 5 clips at random.
2) Duplicate the selected movie clip after a random number of miliseconds / frames
3) Rotate the movie clip randomly before playing it so it's different from the others.
4) Loop this sequence.
Does anyone know how this can be done? It would be extremely helpful.
Mike
[Edited by mikehalsey_uk on 10-15-2001 at 11:13 AM]
How To Stop A Movie Clip Duplication After A Certain Frame?
i want to make movie clip that duplicates and apear randomly but does stop after a certain frame i tried but i failed to make it stop i put the following script
_root.my movieClip.unloadMovie()
in the frame i want it to stop at but it didnt why???!!!
Duplication Of A Movie Clip On A Lower Layer
Okay, I'm new. no duh. So I'm not going to say 'go easy', cuz I know the rules of forums. You wanna call me a loser or idiot or whatever, I surrender myself to the flames lest I missed something obvious.
I am using the candle effect in Flashkit's movie archives as the flames for a jetpack, as a school project. I experimented and halfway worked-out the Duplication effect that replicates the movie clip. However, the replicates appear on the front layer, and I don't know how to have them replicated to a lower layer.
Here's the actionscript for the first frame...yes, the movie clip being duplicated is named 'fl'.
i = 0;
setProperty ("fl", _visible, 0);
xx = getProperty("fl",_x);
here's the second frame's actions:
if(i < 35)
{
duplicateMovieClip ("fl", "fl" add i, i);
setProperty ( "fl" add i, _alpha,i*8);
setProperty ( "fl" add i, _x,random(3) + xx);
i = i + 1;
}
Maybe I am an idiot, not knowing how to do this. I'm not exactly the flash guru, but any help would be appreciated. Thanks again for tolerating a new guys' post.
Random Movie Clip Duplication In Order
random movie clip duplication in order
i have 48 boxes, each row has 9 boxes and each column has 6 boxes so it is 9 x 6. Each box size is 80 by 80 pixels with 2 pixels between each box vertically and horizantally.
when my movie starts, i want the initial box1_mc clip to duplicate itself randomly to generate 48 boxes on the stage in their spot.
How do i achieve this. I know how to duplicate them randomly on stage but not in their actual spot and remember that they only have to be duplicated only once.
Please help!
Random Movie Clip Duplication In Order
i have 48 boxes, each row has 9 boxes and each column has 6 boxes so it is 9 x 6. Each box size is 80 by 80 pixels with 2 pixels between each box vertically and horizantally.
when my movie starts, i want the initial box1_mc clip to duplicate itself randomly to generate 48 boxes on the stage in their spot.
How do i achieve this. I know how to duplicate them randomly on stage but not in their actual spot and remember that they only have to be duplicated only once.
Please help!
XML And Dynamic Sensing Of Size And Duplication Of Movie Clip...
I'm trying to develop this flash journal/blogging system...
My only hang up...
I am trying loading XML variables into a single movie clip... and then duplicating that clip based on a _y value. I have the text autoSize set to true... so that there is no character limit.
But the movieclip isn't dynamically sensing the y value it should - once the text autoSizes...
Here is my code for duplicating the clip and setting the new _y:
///////////
if (myXML.loaded != 1) {
gotoAndPlay(_currentframe-2);
} else {
if (myXML.firstChild.hasChildNodes()) {
myDesktops = new Array();
myDesktops = myXML.childNodes;
TotalDesktops = myDesktops.length;
for (i=0; i<TotalDesktops; i++) {
duplicateMovieClip("new_event", "new_event_"+i, i+1);
curClip = this["new_event_"+i];
curClip.date = myDesktops[i].firstChild.firstChild;
curClip.text_container.description = myDesktops[i].firstChild.nextSibling.firstChild.nodeValue;
curClip.text_container.link = myDesktops[i].firstChild.nextSibling.nextSibling.firstChild.nod eValue;
curClip._y = Math.round((_parent["new_event_"+(i-1)]._y)+(_parent["new_event_"+(i-1)]._height));
curClip.i_value = i;
}
} else {
gotoAndPlay(1);
}
}
stop();
////////////////
I think my problem happens here:
curClip._y = Math.round((_parent["new_event_"+(i-1)]._y)+(_parent["new_event_"+(i-1)]._height));
If I could somehow sense when the text is loaded... maybe that would fix it....
I was thinking some sort of loop that duplicates the clips individually... and senses when the previous clip is loaded... and then sets the _y values after they are loaded.
Any thoughts?
Clip Duplication
I want to duplicate an instance (horizontally,maximum 10 duplication)whenever i click a button. The duplication will come randomly.I mean sometime it will show 5 boxes, then 9boxes and so on. Please help.
Thanks
Clip Duplication
Houston, we've got a situation here...
could u rectify where the coding algoriths gone wrong here..
actually i am making a flash intro based on the matrix trailor. i ve made the falling matrix code near perfection. but the problem is in order to make multiple instances of my clip flow_mat on the main timeline i have to set each and evry instance manually. i wanted it to do through action script. so i made a new movie and tried the following way.
in my clip <flow_mat>(which has the tweening effect of the matrix) i put the actionin the frame 1~ 5:
this._x=this._x+(Math.random()*4)-2;
this._y=this._y+(Math.random()*4)-2;
to randomize the clip appearance.
then in the 6 frame i put the action:
gotoAndPlay(1);
then in the main timeline i put the following action to duplicate the clip instances:
onload
counter=40; //** this the number of duplication i want**//
while (counter>0)
{
duplicateMovieClip("mat","mat"+counter,counter);
counter= --counter; //** to cycle down the counter**//
}
stop();
where <mat> is my instance name for the clip flow_mat. but when i played the movie there was very negligible duplication and that too just arround the instance that i put on the main movie..
any helps please..
help me out to create the matrix effect through action script..
regards
Dynamic Movive Clip Duplication
I have an empty movieclip (mc_holder).Now I dynamically create some textbox
instances inside this movieclip.
A function takes this mc_holder and duplicates it with a new name.
Strange the mc_holder duplicated does not have the textboxes.
How to do that
Help .
[MX04] Clip Duplication Based On Array
Hmm I seem to remember haveing seen this done, but cant remember where or how.
Essentialy I want to dynamically generate a picture our of 2 different small MovieClips.
I can make a square grid of them nicely. But what I want is for certain ones to be one colour and the rest another. So that it makes a pattern.
I thought there was some way to do it with arrays, something vaguely like this sprang to mind.
0, 0, 0, 0, 0,
0, 1, 1, 1, 0,
0, 1, 0, 1, 0,
0, 1, 1, 1, 0,
0, 0, 0, 0, 0
That would represent the layout of duplicated clips on the stage and the 0s would be one colour and the 1s another. Is there a way to do this or am I just making it up? How else might I go about it?
Thanks.
MovieClip Duplication Deletes Previous Duplication
I have created 2 instances of a movie clip based button inn_btn and out_btn.
They are both contained in the same movie clip to which the following code is attached. The code duplicates the buttons in a column but as each of the out_btn buttons is deletes the inn_btn one that proceeds it. If I remove all the references to the out_btn one, all the inn_btns duplicate and work fine. If I keep the code in for the out_btns, all the out_btns appear and work fine but only the original inn_button is present. I've stepped it through and seen each inn_btn get deleted as the out_btn is created. I've tried lots of variations on this all with the same results.
I am fairly new to action script but doing lots of learning!
ActionScript Code:
onClipEvent (load) {
trace("Main init");
var inSel = 0;
var outSel = 1;
numButtons = 9;
vSpacing = 22;
//duplicate buttons
for (i=0; i<numButtons; i++) {
if (i != 0) {
inn_btn0.duplicateMovieClip("inn_btn"+i, i);
this["inn_btn"+i]._y += i*vSpacing;
out_btn0.duplicateMovieClip("out_btn"+i, i);
this["out_btn"+i]._y += i*vSpacing;
}
this["inn_btn"+i].onPress = function() {
trace(this._name);
};
this["out_btn"+i].onPress = function() {
trace(this._name);
};
}
}
Dynamically Duplication Movie And Its Child Movie Clips
Hi all,
I have a movie clip in my library. This movie clip contains other movie clip also.
Now I want to bring this movie clip to the stage. I have used attachmovie method to do this. Whatever the new name, I have assigned to the movie clip in the AttachMovie method works well. But the movie clips inside that movie clip doesn't have the name.
How to name the movie clip and all its child movie clip.
Thanx
Nag
Movie Duplication
I have a button on stage. On Press it duplicates a MC (instance name dragme) 20 times, adding variable "a" to the instance name to give a unique instance name.
Then it should move each separate instance of the MC by 20 pixels.
On Release it should remove the instances again.
Here's the code:
----------------
on (press) {
startDrag ("_root.dragme" add a, true);
set (a, 1);
while (a<=20) {
duplicateMovieClip ("_root.dragme", "dragme" add a, a);
setProperty ("_root.dragme" add a, _x, getProperty("_root.dragme" add a, _x) + 10);
set (a, a++);
}
}
on (release) {
stopDrag ();
set (a, 1);
while (a<=20) {
removeMovieClip("_root.dragme" add a);
set (a, a+1);
}
}
Movie Duplication
on (release) {
duplicateMovieClip ("Line", "Line" add l, l);
setProperty ("Line" add l, _x, Number (getProperty ( "Line" add l, _x ))+Number ( 15+(getProperty ( "Line" add l, _width ) ) ));
l = Number ( l )+1;
}
what is wrong with this script???
when i press the button it duplicates the movie but when i press it secend time it does nothing!!!
i want it to duplicate the same movie on and on but it only duplicate it once.
Movie Duplication
Hi guys, first post so be gentle.
I'm trying to set up a menu system. I have a MC which I want to duplicate many times using DuplicateMovieClip. I then want to be able to recognise each movie clip when I click on them. eg when I click the first movie I want a variable to be set up with 1, the second movie to set the variable as 2 etc.
Please help me, I've searched the web but can't find out how to do this. I'm sure it's something simple but then again, so am I
Movie Duplication Error ?
hi friends ..
I'v created a movie which is having problem ... problem is when i c the preview the movie it shows the duplication, as i havnt given any action for duplication.
can u tell me why this occur?
http://www.geocities.com/romio3k/test1.zip (9k)
Duplication Of Movie Clips
Hey there, I cant seem to get codes right for duplication, so i deleted it and came here for help.
I need to duplicate an instance named "harpoon" after every 50 points (held by the "score" variable)
(so pretty much= whenever "score" reaches a multiple of 50, duplicate "harpoon")
Any possible way you guys could help?
Duplication Movie Problem....
This is the PHP file containing the variables. ( Variable Set #2 )
http://www.arsa-studio.com/ih/map3.php
// :: Intro ::
// In the PHP script, all the variables ends up
// having an index number at the end, for example " phpLocatorID5 "
// that index number is generated by increasing " i++ " in the
// while loop, so I can pull all the information from the database
// and assign different values to similar variables.
// FROM PHP ( echo "&phpLocatorID$i=$phpLocatorID&"; )
// :: Back to Flash ::
// The user opens the page and loads the .swf movie.
// The movie runs the PHP scrip in the server.
// after the script is done echoing the variables
// is time for the .swf file to load the variables and duplicate
// the same movie clip ( _root.navigation.main.map.locator )
// in different coordenates ( X and Y )
// :: Additional Info ::
// How many times do you need to duplicate the locator movieclip?
// The locator movie clip needs to be duplicated by the value of
// the variable named ( FinalCountNum )
// :: The Problem ::
// I need to duplicate and relocate the movie clips and assign
// different values ( loaded from PHP script ) to the following
// variables inside the FOR LOOP ( REMEMBER THE INDEX NUMBER,
// for the duplicated movie " Locator5 " assign all the variables
// ending in 5. - example phpLocatorID5 - phpLocatorRace5 - etc... )
Code:
// ======================= Duplicate locator and place them
// ======================= apart on the X & Y axis
for (i=1; i<=FinalCountNum; i++) {
// Create variables from PHP, these variables where loaded in
// the loading variables LOOP frame #2
var LocatorID= phpLocatorID; <--- Is missing the index number and I don't know how to do it ... my best guess is using the i++ count in the FOR LOOP
var LocatorRace= phpLocatorRace;
var LocatorX= phpLocatorX;
var LocatorY= phpLocatorY;
var LocatorInfo= phpLocatorInfo;
// ................. Duplicate movie clip
duplicateMovieClip(_root.navigation.main.map.locator, "locator"+i, i);
// ................. Organize the locator clones
setProperty("_root.navigation.main.map.locator"+i, _x, LocatorX);
setProperty("_root.navigation.main.map.locator"+i, _y, LocatorY);
} // Ends For Loop
// ======================= Ends Duplicate locator
Thank you!
Movie Duplication Prob
I'm not sure what I'm doing wrong here but I can't seem to get this to work...
Let's say I have a movieClip on the stage called "Bob" and I dynamically create another empty movieClip via AS and call it "Bob2". Now, how in the name of Zeus's butt-hole can I create a copy of "Bob" inside of "Bob2" ?
I've tried various duplicateMovieClip and attachMovie methods but none of them have worked so far.
Any ideas? Is it even possible?
Thanks for your time.
Drag Movie Clips After Duplication
Hello to the forum i hope this first post is not to ambiguous ,I have enclosed a Flash 8 file to help back up my ponderings.
I am trying to build an application which uses movieclips that are drag and droppable, i placed the actionscript within the movieclip object itself that enables the movie clipped to be dragged and dropped, yet i am unable to figure out how to make the movie clip duplicate first before being dragable.
So when i click my movie clip symbol it copies itself then the copy becomes dragable whilst the original stays in its place.
In this simplified example i have drawn a red circle that is dragable once clicked, i would like this circle to duplicate itself firstly when clicked, then that duplicate to be drag and dropable, with the original staying in its place, i would like thsi process to be unlimited. Thanks in advance Dak~
Drag Movie Clips After Duplication
Hello to the forum i hope this first post is not to ambiguous ,I have enclosed a Flash 8 file to help back up my ponderings.
I am trying to build an application which uses movieclips that are drag and droppable, i placed the actionscript within the movieclip object itself that enables the movie clipped to be dragged and dropped, yet i am unable to figure out how to make the movie clip duplicate first before being dragable.
So when i click my movie clip symbol it copies itself then the copy becomes dragable whilst the original stays in its place.
In this simplified example i have drawn a red circle that is dragable once clicked, i would like this circle to duplicate itself firstly when clicked, then that duplicate to be drag and dropable, with the original staying in its place, i would like this process to be unlimited. Thanks in advance Dak~
Making A Movie Clip In A Movie Clip Go To The Next Frame Of The Original Movie Clip
I have a movie clip (for simplicity I'll call it movie_a) in movie_a I have another movie clip movie_b.
in movie_a i have a button that when pressed makes movie_b play (it has a stop frame every once in a while so the button acts as a "next" button)
I want it so that when i get to the last frame of movie_b and press the button, it will go to the next frame of movie_a
I hope that doesn't confuse u and u can help me solve this problem, as i am stumped and I've tried everything I could think of (which isn't that much as I'm not too good with actionscript)
thnx
Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.
in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:
Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}
thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:
Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}
The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.
the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.
thanks!
Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.
I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.
For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.
I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:
Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.
any help would be great and I am anxiously waiting to get this solved!
Kevin
Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:
Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.
__________________________________________
this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________
- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.
- the movie clips are within the same library, not on the timeline or external library.
- Is this possible?
Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.
So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)
But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip
thaks
Vakarm
How To 'stop' A Movie Clip Within A Movie Clip Within A Movie Clip Loop
I've done searches, laughed, cried, and punched holes through the wall, but I can't figure this out.
I'm in Flash MX (pro) and I have a MovieClip on my main timeline (frame 1). Inside that clip is another animation (the static animation scrolling across the screen), and another inside of it of the static animation (6 characters on a train each animated uniquely).
Confused yet? Ha! OK, so I just want the damned animation on the main timeline to run once and then stop (or to 270 frames). I've tried:
myMovieClip.stop()
to no avail. I've tried attaching the script to the movie clip itself, and also to the frame.
Any suggestions?
Making A Draggable Movie Clip Control The Location Of Another Movie Clip
http://www.kineticz.net/jba/residental.jpg that is a picture of what i am trying to do. the white bar at the bottom is the draggable movie clip and the group of 3 pictures right above that is the movie clip that i am trying to control w/ the draggable clip. I am having trouble writing a script that will do this. any help you can give will be much appreciated.
A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?
I have been trying to do it for the last few days for a site I am working on.
I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.
What I have right now is on the button in my Menu Bar Movie Clip:
on (release) {
gotoAndPlay(285);
}
Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:
gotoAndPlay("Contact", 1);
Which is the Scene for the "Contact Us" Scene named "Contact"
One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.
Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.
If someone has a solution, it would be greatly appreciated.
Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.
Thanks in advance.
On Mouseover Show Movie Clip, On Mouseout Close Movie Clip *HELP*
Basically what I am trying to do is this...
I have a movie clip that is a name. When you put your mouseover the name I want another movie clip to display to the right of the name. This clip has a photo and bio of the person.
The photo and bio have an animation that fades it in and an animation to fade it out. I have 5 frames for the fade in, then stop frame, then 5 frames for the fade out.
What actionscript do I need to use to make that second movie clip load when a user mousesover the name (first movie clip) and to make the second half of the second movie clip play when the user removes their mouse from name (first movie clip).
NOTE: I tried using loadMovie and unLoad movie but I couldn't do it loading another swf. The reason being this is already an swf loaded inside a main movie. I guess you can't load an swf inside an swf that's already loaded inside an swf. I hope this all makes sense!
I appreicate all the help!
Thanks a lot!
Create An Empty Movie Clip Inside An Existing Movie Clip?
I'm making sort of a tabbed navigation scheme by reading the data for each tab in from an XML file. What I'm wondering is if it's possible to use createEmptyMovieClip() to make a new empty movie clip inside a movie clip that already exists on the stage.
Using
ActionScript Code:
m_anchor.loadMovie(bg_image);
works as I would expect. bg_image is just the relative path to an image file, and m_anchor is a movieclip already on the stage. However, doing a similar thing:
ActionScript Code:
m_anchor.createEmptyMovieClip("textbox", this.getNextHighestDepth());
and then drawing a shape (a rounded rectangle, which I then want to put text on top of) doesn't work. It works if I just say "this.createEmptyMovieClip" instead of attempting to create it inside the m_anchor clip, but if I do that, the "textbox" is created at the root level and I can't unload it along with everything else in the "m_anchor" clip. Is it possible to create a new empty movie clip inside of one that is already on the stage?
Thanks!
Load An Internal Movie Clip To An Empty Movie Clip On The Stage
Can any of you shed some light as to why this is not working:
on (release) {
emptyMC.attachMovie("mrimc","instance1",this.getNe xtHighestDepth());
}
what I want to have happen is when the user clicks a button it loads the mirmc into emptyMC on the stage.
I have double checked that my empty movie clip does indeed have an instance name of emptyMC and that the movie I want to load into does in fact have the name mrimc in the library. Any ideas?
Problem Getting Movie Clip Inside Of Movie Clip To Face Mouse
I used the code below to make a movie clip face the mouse, it works when I use it on a movie clip that's not embedded in another movie clip, but when I used it on an embedded movie clip, it's axis seems to change.
Attach Code
var stickGun:MovieClip = this.stick_holder.stickGun_mc;
//stick_holder.stick_mc.stickGun_mc
stage.addEventListener(Event.ENTER_FRAME, onMove);
//stick_holder.stick_mc.stickGun_mc.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
function onMove(event:Event):void {
// get the radian value of the angle between the clip and the mouse...
var myRadians:Number = Math.atan2(mouseY - stickGun.y, mouseX - stickGun.x);
// convert it to degrees...
var myDegrees:Number = Math.round((myRadians * 180 / Math.PI));
// get the horizontal and vertical distance between the clip and the mouse...
// rotate the clip toward the mouse...
stickGun.rotation = myDegrees;
}
Placing Actionscript Movie Clip Inside A Movie Clip Symbol
I'm loading an external image into an empty actionscript movie clip (holder1) using MovieClipLoader(); on frame one of my movie and is invisible. Then when the movie plays, there is an empty movie clip symbol (image1_mc) that is placed manually on the stage within another movie clip symbol (flash_mc), and is also on a bottom layer of a mask layer which is animated. Is it possible to place "holder1" inside of "image1_mc" so that I can treat it as if it were an embedded image? In other words, have the image in "holder1" inside of the manually placed movie clip symbol "image1_mc" so that I can use it like a regular symbol on the stage?
|